[jboss-user] [JBoss Tools Users] - Post subject: POJO generator from SQL query

Kuba P. do-not-reply at jboss.com
Sat Oct 17 10:31:34 EDT 2009


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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260894#4260894

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260894



More information about the jboss-user mailing list