-->
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: HashMap instead of Set by Reveng
PostPosted: Thu Sep 08, 2011 4:58 am 
Newbie

Joined: Thu Sep 08, 2011 4:44 am
Posts: 2
I'm currently trying to generate the POJO-classes from our database in JDK5 form, without the hbm.xml configuration files.

Hibernate generates for each many-to-one relation a java.util.Set and I want to force it to create a HashMap with the table primary key as a map-key for comfort by getting objects from the collection.

Is there such a configuration in hibernate? I tried to implement a custom Strategy for the reverse engineering, but i don't see the possibility to do that there.


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.