-->
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: Mapping Annotation Packages
PostPosted: Tue Dec 06, 2005 7:30 am 
Newbie

Joined: Tue Jul 19, 2005 9:19 am
Posts: 7
Hi
I have quite large object model that I am mapping using annotations and I dont really want to add each one in turn to the cfg.xml. I foud this http://www.hibernate.org/hib_docs/annot ... /ch01.html
which suggested that adding a line like

Code:
<mapping package="example.package.name"/>


would add all the classes in the package so I dont have to do one at a time.

But I couldnt get it to work and nothing is every picked up form this package. However everthing works fine if I add them one at a time.

I have a had a good look for some documentation on this but cant find anything. Can anyone help?
Cheers
Mike :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 1:38 pm 
Newbie

Joined: Mon Nov 01, 2004 6:46 am
Posts: 6
emmanuel wrote:
You have to declare the annotated classes.
package is here to declare an annotated package witch is not a package having annotated classes inside.


(See http://forum.hibernate.org/viewtopic.php?t=950142 for example)


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.