-->
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: Mapping an Entity with both annotations and a xml file
PostPosted: Sun Jun 10, 2007 8:36 am 
Newbie

Joined: Sun May 27, 2007 12:52 pm
Posts: 7
Is there a way to map an entity using both Annotations and a XML file at the same time?

It would be helpful when the Annotations are not enough to fully describe the mapping of an entity.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 10, 2007 11:43 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
I don't think it's possible. You need the Configuration implementation (AnnotationConfiguration for annotations based one) to build the SessionFactory.

Maybe you should precise what your needs are. I don't think there's a lot of places where annotations do not permit what XML does. If so, then just watch the hibernate jira to see if the feature you miss is logged (if not, file it).

What are you missing with annotations based Configuration ?

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 10, 2007 11:55 am 
Newbie

Joined: Sun May 27, 2007 12:52 pm
Posts: 7
batmat wrote:
I don't think it's possible. You need the Configuration implementation (AnnotationConfiguration for annotations based one) to build the SessionFactory.

Maybe you should precise what your needs are. I don't think there's a lot of places where annotations do not permit what XML does. If so, then just watch the hibernate jira to see if the feature you miss is logged (if not, file it).

What are you missing with annotations based Configuration ?




I need to specify the name of an entity in a relationship. I've posted this (http://forum.hibernate.org/viewtopic.php?t=976022) describing the problem.


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.