title: convert SQL table to java bean class
body: <p>I'm working in web application using a huge number of SQL tables. I need to create for each table a java bean class. I'm searching for a tool that can convert  SQL table to a java bean class. It will help to save time.</p>
  
  <p>Here is an example: </p>
  
  <p>studentTable (studentId, firstname, lastname, yearLevel) </p>
  
  <pre><code>--&gt;
  
  public class Student {
      @Id
      @Column
      @GeneratedValue(strategy=GenerationType.AUTO)
      private int studentId;
      @Column
      private String firstname;
      @Column
      private String lastname;
      @Column
      private int yearLevel;
  
      public Student(){}
      public Student(int studentId, String firstname, String lastname,
              int yearLevel) {
          super();
          this.studentId = studentId;
          this.firstname = firstname;
          this.lastname = lastname;
          this.yearLevel = yearLevel;
      }
      public int getStudentId() {
          return studentId;
      }
      public void setStudentId(int studentId) {
          this.studentId = studentId;
      }
      public String getFirstname() {
          return firstname;
      }
      public void setFirstname(String firstname) {
          this.firstname = firstname;
      }
      public String getLastname() {
          return lastname;
      }
      public void setLastname(String lastname) {
          this.lastname = lastname;
      }
      public int getYearLevel() {
          return yearLevel;
      }
      public void setYearLevel(int yearLevel) {
          this.yearLevel = yearLevel;
      }
  }
  </code></pre>
  
  <p>Do you have any idea about such tool.</p>