-->
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.  [ 4 posts ] 
Author Message
 Post subject: Using composite keys: Duplicate Import
PostPosted: Mon Feb 16, 2004 7:18 am 
Newbie

Joined: Mon Feb 16, 2004 7:11 am
Posts: 13
Hey everybody!

I'm using Hibernate as a wonderful alternative (if not advance) for entity beans. I just some minutes ago encoutered the following problem:

I created a composite key-class and mapped in as a <composite-id> in another hibernate-mapping. When trying to load the webapp then, it gave me a mapping-exception saying that I have a "double import".

I searched the old forums and found a solution here: http://forum.hibernate.org/old//876098.html
When a set auto-import to "false" it also works on me. But my key-class is not an inner-type. It is just the same package.

My question is: Why is this my solution??
Reading the documentation says something about "unqualified classnames in query-language", but I cannot relate this to my problem.

Thx for help!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 16, 2004 10:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Inner type or not it should work I guess.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 16, 2004 10:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
And after that use the fully qualified name in your queries and associations

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 4:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
You might need to understand the use of:

Code:
<hibernate-mapping auto-import="false">


check the doco


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