-->
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 a relation between 2 entities with an in-between obj
PostPosted: Wed Oct 11, 2006 7:39 am 
Newbie

Joined: Tue Oct 10, 2006 10:36 am
Posts: 7
Hello,


I am in a situation I can't find a mapping for. I have a utility class TimeLine that contains a Map. This map contains references to Persistent Object.
Example :

Code:
class TimeLine {
private Map<Date, Object>
}

class Customer {
private TimeLine<Date, Contract>
}

class Contract {
//attributes here.
}

I've succesfully mapped the following system :
Code:
class Customer {
private Map<Date, Contract>
}

which has nothing tough, but I can't find a mapping that introduces the TimeLine object without persisting it (it's not an entity). The problem is that TimeLine introduces an object between the 2 entities, and I can't find a way to to this. I can't find a documentation entry that describes this case. A solution would be to tell hibernate not to see the TimeLine object and directly use its Map attribute ?

Can someone help me ?

Thank you
Dom


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.