-->
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.  [ 1 post ] 
Author Message
 Post subject: problem of mapping two abstract class
PostPosted: Wed Jan 12, 2005 2:35 am 
Newbie

Joined: Wed Jan 12, 2005 12:48 am
Posts: 1
Hibernate version:2.1.6

i have two abstract class:AbstractClient and AbstractCard.
AbstractClient has two child class:PersonalClient and GroupClient
AbstractCard has two child class:NormalCard and SpecialCard

relationship of AbstrcatClient and AbstractCard is one to many. in AbstractCard has a HashSet of AbstractCard. I map two abstract class using subclass.

The problem is insert procedure is correct.but when i get a PersonalClient instance and get its AbstractCard collection, the size of HashSet always show 1. There should be many records in my database.

Who meet the same problem. Thanks for any help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.