2 Replies Latest reply on Nov 5, 2009 10:29 AM by OLga Chikvina

    Post subject: POJO generator from SQL query

    Jakub Pawlowski Newbie

      Hi,

      Is this possible to generate in JBoss Tools (or using Eclipse any plugin) POJO class from SQL query e.g.

      SELECT e.first_name,
       e.last_name,
       e.salary,
       d.department
       FROM emp e,
       dept d
       WHERE e.deptno = d.deptno


      I need paste this query into any tool and generate POJO class like this:

      public class Employee{
      
       public Employee(){}
      
       private String firstName;
       private String lastName;
       private Number salary
       private String department;
      
       /* getters and setters here*/
      }


      Kuba