Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Set JPA entities at runtime(is it possible to set classes at compile time without hack?)
icon5.gif  Set JPA entities at runtime [message #514341] Sun, 14 February 2010 19:30 Go to next message
Filipp A. is currently offline Filipp A.Friend
Messages: 49
Registered: February 2010
Member
Hi all,
is it possible, in eclipselink 2.0, to set entity classes at compile time?

for eclipse 1.x it was possible with some hack ( http://java.randgestalten.de/index.php/2009/02/set-jpa-entit ies-at-runtime/).

thanks!
Re: Set JPA entities at runtime [message #517923 is a reply to message #514341] Tue, 02 March 2010 14:36 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

EclipseLink has always supported auto discovery of the entity classes in JSE. Just set,

<exclude-unlisted-classes>false</exclude-unlisted-classes>

The jar where the persistence.xml is defined will be search for any entity classes. You can also include your entities in a seperate jar and use the <jar> tag.


James : Wiki : Book : Blog : Twitter
Previous Topic:ORA-03137 error while using eclipselink 1.1.1
Next Topic:Adapting to existing database
Goto Forum:
  


Current Time: Tue Mar 19 11:07:09 GMT 2024

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

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

Back to the top