-->
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.  [ 2 posts ] 
Author Message
 Post subject: Adding new entities to the persistence unit
PostPosted: Tue Feb 23, 2010 9:08 pm 
Newbie

Joined: Tue Feb 23, 2010 8:54 pm
Posts: 2
Hey guys,

Im working on a project using hibernate with JPA that needs to make custom entities.

The code of those entities is on a db and I have already compiled and loaded them. But now I need to add them to the persistence unit at runtime.

They are in a folder mapped in the persitance.xml (<jar-file>folder</jar-file> )

I thought the persistance unit would take those new entities automatically but that didn't happen and now I need a little help.

Hope you guys can assist me.


Top
 Profile  
 
 Post subject: Re: Adding new entities to the persistence unit
PostPosted: Wed Feb 24, 2010 10:11 am 
Newbie

Joined: Tue Feb 23, 2010 8:54 pm
Posts: 2
I don't even know if that is possible, but I believe it is.

Help is welcome


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

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.