-->
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: Annotations and hibernate.cfg.xml
PostPosted: Fri Oct 29, 2010 3:17 pm 
Newbie

Joined: Mon Jun 01, 2009 10:53 am
Posts: 6
Is it possible to use annotations in classes and hibernate.cfg.xml? Maybe this sounds crazy but let me try to explain why I want to do that.

I'm stuck with oc4j 10.1.3 : (

Lol, any way I'm stuck with this container and I'm using hibernate + seam. But when I use JPA EntityManager I can't undeploy my app from OC4J and deploy it again, it just does not happen. Seam is not able to instantiate the EntityManager component anymore, unless I restart the conteiner...

So my solution was to use Seam Managed Hibernate Session, using it this does not happen anymore. But now I'm unable to make it work with the annotations that I already have in my entity classes...

Please, let me know if it is possible to make Hibernate recognize my annotated entity classes using hibernate.cfg.xml

Thanks!


Top
 Profile  
 
 Post subject: Re: Annotations and hibernate.cfg.xml
PostPosted: Wed Nov 03, 2010 7:44 am 
Newbie

Joined: Mon Jun 01, 2009 10:53 am
Posts: 6
Great forum!

AnnotationConfiguration() .configure().buildSessionFactory();


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.