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.
|