-->
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: How to create new persistence unit?
PostPosted: Mon Jun 04, 2007 2:09 pm 
Regular
Regular

Joined: Wed May 02, 2007 2:42 pm
Posts: 101
Hey,

I am working in Jboss.

I have persistence.xml and in the file i create persistence unit that is mapped to a data source and a schema.

I want to create in run time a new persistence unit and factory , that is mapped to another data source and schema.

I need it because i want to create copy of this unit in different schema for each user that register to the system.

My questions are:
How can i create new persistence unit at run time?

How can i save the new persistence unit that i created to the persistence.xml or to another file in order have them in case the server is crashed?

Can i create a data source that map to a data base url and not mapped to schema and in the persistence unit properties give the schema connection url ?

Thank tou very much


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.