-->
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<[Enum], Boolean> mit Annotations mappen (2)
PostPosted: Tue Apr 13, 2010 5:46 pm 
Newbie

Joined: Tue Apr 13, 2010 5:38 pm
Posts: 2
Hallo zusammen,

ich muss die richtige Annotation für folgendes Konstrukt finden

Code:
private Map<HashFunctionName, String> hashvalues;


Es gab schon bereit einen ähnlichen Threan https://forum.hibernate.org/viewtopic.php?f=10&t=982765
Leider nutzen sie dort als Lösung
Code:
@MapKey(columns = @Column(name = "my_column_name", nullable = false), type=@Type(type="org.hibernate.type.EnumType",parameters={@org.hibernate.annotations.Parameter(name="enumClass",value="my.enum.class.Name")}))


Es gibt aber so ein @MapKey nicht mehr, es gibt nur @MapKey mit (columns = @Column(name = "some_name"), targetElement = SomeClass.class).
Dabei werden die Enum-Werte als byte code gespeichert. Ich möchte aber String oder Integer haben.
Weiß jemand, wie es geht?
Vielen Dank in Voraus


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.