-->
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: Map<Entity, Float> ?
PostPosted: Mon Nov 10, 2008 9:05 am 
Newbie

Joined: Wed Feb 20, 2008 7:16 am
Posts: 3
Hibernate version: 3.3.0.GA

Hibernate Annotations version: 3.4.0.GA


@Entity class Term
{...}

@Entity class Topic
{ ...
@CollectionOfElements
@MapKeyManyToMany
Map<Term, Float> relevance;
...}

Does anyone know how I can persist/annotate a Map from an annotated entity to a float value?

Using @CollectionOfElements with @MapKeyManyToMany yields the correct table structure. Querying (e.g. "topic.relevance") , however, retrieves only the value-element of the map (i.e. a list of float).

Does anyone know how I can solve this?

ANY help is appreciated.


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.