title: Error: org.apache.jasper.JasperException: Unable to compile class for JSP, How fix it?
body: <p>I encouter following error:</p>
  
  <blockquote>
    <p>org.apache.jasper.JasperException: Unable to compile class for JSP:</p>
  
  <pre><code>An error occurred at line: 8 in the jsp file: /student/StudentError.jsp
  The method println6(String) is undefined for the type PrintStream
  5:              &lt;p&gt;&lt;b&gt;Stack trace:&lt;/b&gt;&lt;/p&gt;
  6:              &lt;%
  7:                      Exception exp = (Exception)request.getAttribute("javax.servlet.error.exception");
  8:                      System.out.println6(exp.getMessage()+"&lt;br/&gt;");
  9:                      StackTraceElement [] elements = exp.getStackTrace();
  10:                     for(int i=0;i&lt;elements.length;i++){
  11:                             System.out.println(elements[i].toString()+"&lt;br/&gt;");
  
  
  Stacktrace:
          at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
          at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:199)
          at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:446)
          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
          at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
          at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:801)
          at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
          at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:595)
          at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1126)
          at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1060)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
          at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:200)
          at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:75)
          at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:209)
          at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:267)
          at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1217)
          at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1005)
          at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:952)
          at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)
          at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
          at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
          at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:801)
          at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
          at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
          at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1126)
          at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1060)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
          at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
          at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
          at org.eclipse.jetty.server.Server.handle(Server.java:509)
          at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:288)
          at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:240)
          at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:539)
          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:620)
          at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:540)
          at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  </blockquote>
  
  <p><strong>Here file JavaClazzWeb-servlet.xml</strong></p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:context="http://www.springframework.org/schema/context"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
          xsi:schemaLocation="http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
          http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
          http://www.springframework.org/schema/context
          http://www.springframework.org/schema/context/spring-context-4.0.xsd "&gt;
          &lt;!-- &lt;bean id="xsltViewResolver" class="org.springframework.web.servlet.view.xslt.XsltViewResolver"&gt; 
              &lt;property name="order" value="1"/&gt; &lt;property name="viewClass" value ="org.springframework.web.servlet.view.xslt.XsltView"/&gt; 
              &lt;property name="sourceKey" value="data"/&gt; &lt;property name="suffix" value=".xsl"/&gt; 
              &lt;property name="prefix" value="/xsl/"/&gt; &lt;/bean&gt; &lt;bean id="studentDAO" class="edu.java.spring.dao.StudentDAO"&gt; 
              &lt;property name="dataSource" ref="dataSource"/&gt; &lt;property name ="insertSQL" 
              value="insert into student(name,age) values(?,?)"/&gt; &lt;/bean&gt; &lt;bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"&gt; 
              &lt;property name="targetObject"&gt; &lt;ref bean="studentDAO" /&gt; &lt;/property&gt; &lt;property 
              name="targetMethod"&gt; &lt;value&gt;createTableIfNotExist&lt;/value&gt; &lt;/property&gt; &lt;property 
              name="arguments"&gt; &lt;list&gt; &lt;value&gt;student&lt;/value&gt; &lt;value&gt;create table student( 
              id bigint primary key generated always as identity(start with 1,increment 
              by 1), name varchar(1000), age integer ) &lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt; --&gt;
          &lt;context:component-scan base-package="edu.java.spring.controller" /&gt;
          &lt;mvc:annotation-driven /&gt;
          &lt;mvc:resources location="/avatar/" mapping="/avatar/**" /&gt;
  
          &lt;bean
              class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
              &lt;property name="order" value="3" /&gt;
              &lt;property name="suffix" value=".jsp" /&gt;
              &lt;property name="prefix" value="/student/" /&gt;
          &lt;/bean&gt;
          &lt;bean id="multipartResolver"
              class="org.springframework.web.multipart.commons.CommonsMultipartResolver"&gt;
              &lt;property name="maxUploadSize" value="100000"&gt;&lt;/property&gt;
          &lt;/bean&gt;
  
          &lt;bean id="xsltViewResolver"
              class="org.springframework.web.servlet.view.ResourceBundleViewResolver"&gt;
              &lt;property name="order" value="2" /&gt;
              &lt;property name="basename" value="views" /&gt;
          &lt;/bean&gt;
  
          &lt;bean id="tilesViewResolver"
              class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
              &lt;property name="order" value="1" /&gt;
              &lt;property name="viewClass"
                  value="org.springframework.web.servlet.view.tiles3.TilesView" /&gt;
          &lt;/bean&gt;
  
          &lt;bean id="tilesConfigurer"
              class="org.springframework.web.servlet.view.tiles3.TilesConfigurer"&gt;
              &lt;property name="definitions"&gt;
                  &lt;list&gt;
                      &lt;value&gt;/WEB-INF/tiles/definitions.xml&lt;/value&gt;
                  &lt;/list&gt;
              &lt;/property&gt;
          &lt;/bean&gt;
  
          &lt;bean id="studentDao" class="edu.java.spring.dao.impl.StudentHibernateDaoImpl" /&gt;
          &lt;bean id="sessionFactory"
              class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt;
              &lt;property name="dataSource" ref="dataSource" /&gt;
  
              &lt;property name="hibernateProperties"&gt;
                  &lt;props&gt;
                      &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.DerbyDialect&lt;/prop&gt;
                      &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
                  &lt;/props&gt;
  
              &lt;/property&gt;
              &lt;property name="packagesToScan" value="edu.java.spring.model" /&gt;
          &lt;/bean&gt;
          &lt;bean id="dataSource"
              class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
              &lt;property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver" /&gt;
              &lt;property name="url"
                  value="jdbc:derby:D:\PROJECTSPRING\studentdb;create=true" /&gt;
              &lt;property name="username" value="" /&gt;
              &lt;property name="password" value="" /&gt;
          &lt;/bean&gt;
  
          &lt;bean
              class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"&gt;
              &lt;property name="exceptionMappings"&gt;
                  &lt;props&gt;
                      &lt;prop key="java.lang.Exception"&gt;StudentError&lt;/prop&gt;
                  &lt;/props&gt;
              &lt;/property&gt;
  
          &lt;/bean&gt;
          &lt;bean id="studentMapper" class="edu.java.spring.model.StudentMapper" /&gt;
      &lt;/beans&gt;
  </code></pre>
  
  <p>Here file StudentController </p>
  
  <pre><code>@Controller
  public class StudentController {
  //  @RequestMapping(value = "/student/add", method = RequestMethod.POST)
  //  public String addStudent(@Valid Student student,ModelMap model){
  //      model.addAttribute("name", student.getName());
  //      model.addAttribute("age", student.getAge());
  //      return "StudentView";
  //  }
      @RequestMapping(value="/student/form",method = RequestMethod.GET )
      public ModelAndView student(){
          return new ModelAndView("StudentForm", "command", new Student());
      }
      @Autowired
      public StudentHibernateDaoImpl studentDAO;
  </code></pre>
  
  <p><b> Here file Class StudentHibernateDaoImpl </b></p>
  
  <pre><code>public class StudentHibernateDaoImpl implements StudentDAO {
      @Autowired
      public LocalSessionFactoryBean sessionFactory;
      @Override
      public void shutdown() {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public void insert(Student student) {
          // TODO Auto-generated method stub
  
      }
  
      @Override
      public List&lt;Student&gt; listStudents() {
          // TODO Auto-generated method stub
          Session session = sessionFactory.getObject().openSession();
          Query query = (Query) session.createQuery("from Student");
          try {
              return (List&lt;Student&gt;)query.getResultList();
          } finally {
              // TODO: handle finally clause
              session.close();
          }
      }
  </code></pre>
  
  <p>Here file Class StudentDao </p>
  
  <pre><code>public interface StudentDAO {
      public void shutdown();
      public void insert(Student student);
      public List&lt;Student&gt; listStudents();
      public Student loadStudent(int id);
      public void update(Student student);
      public void delete(Integer id);
      public List&lt;Student&gt; searchStudent(String name);
  
  
  }
  </code></pre>
  
  <p><b> Here file POM.xml</b></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;edu.java.spring&lt;/groupId&gt;
    &lt;artifactId&gt;springDAT-MVC&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;springDAT-MVC Maven Webapp&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;3.8.1&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;4.0.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;
          &lt;version&gt;4.0.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;4.0.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
          &lt;version&gt;4.0.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.validation&lt;/groupId&gt;
          &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
          &lt;version&gt;1.1.0.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
      &lt;version&gt;5.0.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
          &lt;version&gt;2.5&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
      &lt;version&gt;4.2.4.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.derby&lt;/groupId&gt;
          &lt;artifactId&gt;derby&lt;/artifactId&gt;
          &lt;version&gt;10.12.1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
      &lt;groupId&gt;jstl&lt;/groupId&gt;
      &lt;artifactId&gt;jstl&lt;/artifactId&gt;
      &lt;version&gt;1.2&lt;/version&gt;
  &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
          &lt;version&gt;1.9.13&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.lowagie&lt;/groupId&gt;
          &lt;artifactId&gt;itext&lt;/artifactId&gt;
      &lt;version&gt;4.2.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
          &lt;artifactId&gt;poi&lt;/artifactId&gt;
          &lt;version&gt;3.13&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.sf.jasperreports&lt;/groupId&gt;
          &lt;artifactId&gt;jasperreports&lt;/artifactId&gt;
          &lt;version&gt;5.5.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
      &lt;groupId&gt;org.apache.tiles&lt;/groupId&gt;
      &lt;artifactId&gt;tiles-extras&lt;/artifactId&gt;
      &lt;version&gt;3.0.5&lt;/version&gt;
  &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-fileupload&lt;/groupId&gt;
          &lt;artifactId&gt;commons-fileupload&lt;/artifactId&gt;
          &lt;version&gt;1.3.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
      &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
      &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
      &lt;version&gt;4.3.8.Final&lt;/version&gt;
  &lt;/dependency&gt;
  
  
      &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
      &lt;version&gt;4.0.5.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  
  
  
  
  
  
  
  
    &lt;/dependencies&gt;
    &lt;build&gt;
      &lt;finalName&gt;springDAT-MVC&lt;/finalName&gt;
      &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.12.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;skipTests&gt;true&lt;/skipTests&gt;
                      &lt;argLine&gt;-Xmx2524m&lt;/argLine&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                      &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                      &lt;fork&gt;true&lt;/fork&gt;
                      &lt;compilerArgs&gt;
                          &lt;arg&gt;-XDignore.symbol.file&lt;/arg&gt;
                      &lt;/compilerArgs&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
                  &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;9.3.0.M1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;jvmArgs&gt;-Xmx1048m -Xms536m
                          -XX:PermSize=128m -XX:MaxPermSize=512m&lt;/jvmArgs&gt;
                      &lt;reload&gt;manual&lt;/reload&gt;
                      &lt;systemProperties&gt;
                          &lt;systemProperty&gt;
                              &lt;name&gt;lib&lt;/name&gt;
                              &lt;value&gt;${basedir}/target/spring-mvc/WEB-INF/lib&lt;/value&gt;
                          &lt;/systemProperty&gt;
                      &lt;/systemProperties&gt;
                      &lt;scanIntervalSeconds&gt;3&lt;/scanIntervalSeconds&gt;
                      &lt;connectors&gt;
                          &lt;connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"&gt;
                              &lt;port&gt;8080&lt;/port&gt;
                              &lt;maxIdleTime&gt;60000&lt;/maxIdleTime&gt;
                          &lt;/connector&gt;
                      &lt;/connectors&gt;
                      &lt;contextPath&gt;/&lt;/contextPath&gt;
                      &lt;webAppSourceDirectory&gt;${basedir}/src/main/webapp&lt;/webAppSourceDirectory&gt;
                      &lt;webXml&gt;${basedir}/src/main/webapp/WEB-INF/web.xml&lt;/webXml&gt;
                      &lt;classesDirectory&gt;${basedir}/target/classes&lt;/classesDirectory&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
  
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Here file Student</p>
  
  <pre><code>package edu.java.spring.model;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  import javax.persistence.Table;
  import javax.persistence.UniqueConstraint;
  import javax.validation.constraints.Size;
  import javax.xml.bind.annotation.XmlAttribute;
  import javax.xml.bind.annotation.XmlElement;
  import javax.xml.bind.annotation.XmlRootElement;
  
  import org.hibernate.validator.constraints.NotBlank;
  import org.hibernate.validator.constraints.Range;
  @XmlRootElement(name="item")
  @Entity
  @Table(name = "student",uniqueConstraints={@UniqueConstraint(columnNames="Id")})
  public class Student {
  //  @NotBlank
  //  @Size(min=2,max=100,message ="Age value is invalid")
      private String name;
  
  
      private int id;
  //  @Range(min=1,max=150)
  
  
  private int age;
       @XmlAttribute
        @Id
  
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name ="id", unique=true,nullable =false)
      public int getId() {
          return id;
      }
      public void setId(int id) {
          this.id = id;
      }
      @XmlElement
      @Column(name = "Name",nullable = false,length = 200)
      public String getName() {
          return name;
      }
      public void setName(String name) {
          this.name = name;
      }
      @XmlElement
      @Column(name = "age",nullable = false)
      public int getAge() {
          return age;
      }
      public void setAge(int age) {
          this.age = age;
      }
  
  
  }
  </code></pre>