-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JPA entity generation possible (as part of a build)?
PostPosted: Fri Jun 08, 2012 7:02 pm 
Newbie

Joined: Wed Sep 14, 2011 12:36 am
Posts: 4
1. Generate JPA entities as part of the build (Ant, Maven or Gradle - any)?
2. Ability to specify database connection info from which to build the entities?
3. Ability to specify a class to extend for each entity?
4. Is IDE independent (we use IntelliJ)?
5. Is not hibernate based? (we use EclipseLink as the JPA provider)
6. Automatically handles all relationship types (one to many, many to one, many to many, etc)
7. With SQL Server & MySQL the primary key / id column is self incrementing (in old .hbm.xml this is 'native'
8. With PostgreSQL & Oracle the primary key / id column is populated from a named sequence.

We want to generate as part of the build because we need to maintain two sets of .java files because
of 7,8 (unless there are other solutions - JPA does not entirely abstract the db, but it gets close).

We have three databases, use the old .hbm.xml hibernate way (not JPA) and wish to move to JPA, but
creating all the entity beans would be a pain (300+ tables)

thanks

J.V.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.