-->
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: mapping self
PostPosted: Fri May 28, 2004 11:36 am 
Regular
Regular

Joined: Tue Feb 24, 2004 11:42 am
Posts: 56
Hi
I have a table like the following

table statefromto with following columns and data
statefrom---------stateto
Unissued Unissued
Unissued Issued
Issued Quoted
Issued Cancelled

What i would like to do is as follows.

It need to be mentioned here that the primary key here is a combination of the the two columns.

What i would to do is when i use load(class,object) where if the statefrom is Unissed it should return me a collection of stateto containing all the rows for Unissed which will basically contain Unissed and Issued.
I want to use lazy and do not want to use HQL.Can anybody help me please on this issue how to define the mapping file to return me a collection bag or list. Thanks in advance.

Gopal Saha


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.