-->
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: Duplicate class names
PostPosted: Mon Jan 09, 2006 7:09 am 
Beginner
Beginner

Joined: Tue Aug 30, 2005 9:40 am
Posts: 29
Hi,

In Hibernate can we mention duplicate class names, if the classes are in different packages.

Example:

com.my.test.Person.java

com.my.test2.Person.java

Can I load these two classes by specifying the package name in the hibernate mapping file.

I tried but I am getting error, is there a way to load these two classes.


Thanks in advance

Regards,
Srinivas


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 7:14 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
This should work.
Can you post your mapping files
and the part of your code which fails ?

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 09, 2006 7:53 am 
Beginner
Beginner

Joined: Tue Aug 30, 2005 9:40 am
Posts: 29
Thanks !!

It works

We have to put auto-import tag in hibernate-mapping tag

Regards,
Srinivas


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.