-->
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: hibernate mapping - key for java.util.Map
PostPosted: Sat May 27, 2006 7:39 pm 
Newbie

Joined: Sat May 27, 2006 5:14 am
Posts: 1
Location: Minsk
Kind time of day!

There was a question if is there is in bean a field extentions type Map and in it some objects will be added and it is necessary, that they were accessible on the known key certain beforehand, for example, that bean UserGroupBean were accessible on a key "UserGroup", etc.

In mapping I specify:

<map name="extentions" table="UserGroup" lazy="false" inverse="false">
<key column="UserId" />
<map-key type="java.lang.String" <!-??? How to let know Hib., what object it is necessary to lay down on a key "UserGroup"???->/>
<many-to-many class="com.bsu.entity.user.UserGroupBean" column="GroupId" />
</map>


How to let know Hibernate, what object it is necessary to lay down on a key "UserGroup"?

_________________
...develop with pleasure.


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.