Skip to main content



      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 14:30 Go to next message
Eclipse UserFriend
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 09:36 Go to previous message
Eclipse UserFriend
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.
Previous Topic:ORA-03137 error while using eclipselink 1.1.1
Next Topic:Adapting to existing database
Goto Forum:
  


Current Time: Fri Jul 25 11:20:00 EDT 2025

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

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

Back to the top