-->
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: Hibernate One to many in java class Set with class name
PostPosted: Fri Jan 09, 2015 10:08 am 
Newbie

Joined: Fri Jan 09, 2015 9:51 am
Posts: 2
Hi guys,
Sorry I'm quite new in hibernate.
I use eclipse hibernate plug-in to generate java classes from DB and I faced an issue that the one-to-many column giving Set DataType but without class name mean that
private Set students= new HashSet(0); <-- the code that I get
instead of
private Set<Student> students= new HashSet(0); <--- The code that I want

If there any config can configure Set with class name while using eclipse to do auto generate the Set type with class name of java classes??

Please help... Thank you.


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.