Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Customizing JPA entity generation
Customizing JPA entity generation [message #817029] Fri, 09 March 2012 14:51 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 13
Registered: November 2011
Junior Member
Hello,

I would like to customize how my JPA entities are generated by Eclipse. For instance I sometimes don't want bidirectional relationships and would like to be able to have more control over this aspect of JPA entities generation.

I noticed another problem with Eclipse: I have tinyint(1) data type in mysql and eclipse maps this to a byte java type instead of boolean. How can I configure eclipselink so that it maps tinyint(1) to boolean?

Regards,

Julien.
Re: Customizing JPA entity generation [message #825177 is a reply to message #817029] Tue, 20 March 2012 15:18 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

EclipseLink is the JPA runtime, it does not generate classes from table, I think you want the Eclipse Dali forum.


James : Wiki : Book : Blog : Twitter
Re: Customizing JPA entity generation [message #825181 is a reply to message #825177] Tue, 20 March 2012 15:19 Go to previous message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 13
Registered: November 2011
Junior Member
Thanks James.
Previous Topic:Query work in 2.0.1 but don't in 2.3.2
Next Topic:Shared cache returning same object (identity) to different sessions?
Goto Forum:
  


Current Time: Thu Dec 18 15:31:36 GMT 2014

Powered by FUDForum. Page generated in 0.02629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software