-->
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: pb avec 2 hibernateSessionFactory
PostPosted: Fri Feb 12, 2010 3:34 pm 
Newbie

Joined: Fri Feb 12, 2010 3:29 pm
Posts: 2
J'ai une application qui utilise 2 mapping distincts pour une même base de donnée selon que l'on est en consultation seule ou en MAJ dans la BDD.

Pour mon webservice de modification de la BDD, je veux réutiliser du code qui utilise la premiere session factory de consultation.

J'ai donc 2 sessionFactory avec des fichiers de mappings différents.
Lors des mise a jour de la base de données j'ai des erreurs "not-null reference null or transient ...".
J'ai l'impression qu'il y a un probleme entre ces 2 sessionFactory.

Est-ce-possible de faire cela?

Merci,


Top
 Profile  
 
 Post subject: Re: pb avec 2 hibernateSessionFactory
PostPosted: Fri Feb 12, 2010 5:37 pm 
Newbie

Joined: Fri Feb 12, 2010 3:29 pm
Posts: 2
no reponse???

The goal is to modify mappings (lazy, cascade...) but have the same classes/persistent.

it's possible?


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.