JPA java code generation

后端 未结 10 2043
囚心锁ツ
囚心锁ツ 2020-12-23 02:24

I am specifically looking for JPA code generation technique

First, what are all the project could generate JPA compliant code? (Eg. HibernateTools)

Second, I

10条回答
  •  忘掉有多难
    2020-12-23 02:47

    I've used Dali Persistence Eclipse Plugin, The tool is available for download via the Indigo Java EE SR1 update site.

    After the plugin is installed, to make a reverse engineering of your DB, you need to create a new JPA project, set database connection, launch the automated download of JPA runtime (in my case Eclipse Link), then start the generation process.

    During the code generation process you're asked to provide details on table mappings and generated classes. At the end of the generation the code is clean.

提交回复
热议问题