Search code examples
javacode-generation

Any way to generate POJOs of a database?


is there anyway to generate POJOs from selected tables of a database? I'm working on a jsf/primefaces/mybatis project which has at least 40 tables and it's really time consuming.


Solution

  • Normally IDEs contains tools for that purpose. For example, in Eclipse: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jpt.doc.user%2Ftasks021.htm

    Here for JDeveloper: http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_11/jdtut_11r2_11.html