简体   繁体   中英

Generating Entire JPA Layer (Including finders with Dynamic Queries)

Can someone suggest a JPA Layer generator similar to NetBeans but which generates a complete layer by which i can search for any field or any combination of any fields on a particular table from the get-go.

I've tried Eclipse / NetBeans / Oracle Enterprise Pack - maybe i'm using the wrong options?

I used to use FireStorm DAO for the old DAO patterns - which was awesome and i was ready to go from day 1.

I would really like something that creates the whole thing.

ie findByDynamicSelect(String sql, Object[] sqlParams)

Or am i missing the point completely? I get the feeling i am...

Two possibilities come to my head:

  • Spring Roo generates entities and DAOs using commands. It does not generate every finder by every field, though and it mixes entities with DAOs which might not be acceptable to everyone and it leaves a dependency on AspectJ (which can be removed with extra work).

  • Spring-Data-JPA (formerly Hades) is not really a generator but it was my choice for a current project. After generating entities with Netbeans, we use this API to avoid rewriting common code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM