1 Reply Latest reply on Oct 17, 2009 9:26 AM by Nick Belaevski

    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