-->
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.  [ 3 posts ] 
Author Message
 Post subject: Can HibernateEntityManager be used with JBoss
PostPosted: Mon Oct 16, 2006 12:58 pm 
Newbie

Joined: Mon Oct 16, 2006 12:04 pm
Posts: 2
Hi

After reading a lot in the reference documentation on both hibernate and Jboss I how not found out the following.

Question 1
Can HibernateEntityManager be used instead of the EntityManager used as default in JBoss 4.0.4 ? (org.jboss.ejb3.entity.TransactionScopedEntityManager
in my case)

Question 2
If yes, would it be better to use Hibernate EntityManager since the persistance storage is done with Hibernate ?

Regards
abq


Top
 Profile  
 
 Post subject: Re: Can HibernateEntityManager be used with JBoss
PostPosted: Mon Oct 16, 2006 4:22 pm 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
abq wrote:
Hi
Question 1
Can HibernateEntityManager be used instead of the EntityManager used as default in JBoss 4.0.4 ? (org.jboss.ejb3.entity.TransactionScopedEntityManager
in my case)


You can do the following:
Code:
EntityManager em;

((HibernateEntityManager)em.getDelegate())


abq wrote:
Question 2
If yes, would it be better to use Hibernate EntityManager since the persistance storage is done with Hibernate ?


You are already using it - under the hood.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 17, 2006 2:25 am 
Newbie

Joined: Mon Oct 16, 2006 12:04 pm
Posts: 2
Thank you very much for your reply.

I guess that one doesnt need to know all the stuff going on under the hood as long as it works :)

abq


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.