-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to specify create HashMap assotiation instead Set
PostPosted: Thu Mar 03, 2011 6:00 pm 
Newbie

Joined: Thu Mar 03, 2011 5:41 pm
Posts: 1
Hello,

I have been searching for an option to create hbm.xml with list or map instead set. It looks like isn´t available. Is´t true? How can i achieve this?

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: How to specify create HashMap assotiation instead Set
PostPosted: Wed Mar 09, 2011 9:35 am 
Senior
Senior

Joined: Tue Aug 04, 2009 7:45 am
Posts: 124
Cfg2HbmTool#getTag(Property property) returns the template name i.e. "list", "bag", "map" etc.
Provide your Cfg2HbmTool subclass to return your template name or use custom "list.ftl" template instead of standard one.
How to attach your Cfg2HbmTool implementation or custom template read documentaion. See for example http://docs.jboss.org/tools/2.1.0.Beta1 ... ools/html/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.