-->
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: pb with same class name over different packages
PostPosted: Mon May 03, 2004 4:06 am 
Newbie

Joined: Mon May 03, 2004 3:53 am
Posts: 2
Hi,

is it possible to persist 2 class Cat, from 2 different packages?
( data.Cat & data.inheritance.PerSubclass.Cat )
I have tried to map those classes ( in 2 different tables ), but I have the following error :


Mapping resource: data/Cat.hbm.xml
Mapping class: data.Cat -> CATS
Mapping joined-subclass: data.DomesticCat -> DomesticCat
Mapping resource: data/inheritance/PerSubclass/Cat.hbm.xml
Could not compile the mapping document
[schemaexport] net.sf.hibernate.MappingException: duplicate import: Cat

It's ok when I rename data.inheritance.PerSubclass.Cat to data.inheritance.PerSubclass.Cat2.


Regards,

Fran


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 03, 2004 5:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
<hibernate-mapping auto-import="false">


as per the docs.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 03, 2004 6:11 am 
Newbie

Joined: Mon May 03, 2004 3:53 am
Posts: 2
is it possible to set this property via XDoclet ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 03, 2004 7:22 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No I don't think so

_________________
Emmanuel


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.