-->
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.  [ 3 posts ] 
Author Message
 Post subject: Recommended use of Hibernate collections with JSF?
PostPosted: Thu Dec 14, 2006 7:35 am 
Newbie

Joined: Thu Dec 14, 2006 6:42 am
Posts: 15
The common practice when coding for JSF is to implement collections using List implementations, to easily integrate with DataTables, even when you don't really need List semantics.

"Hibernate in Action" suggests the use of Set whenever you don't need List semantics.

So how do we make Hibernate and JSF work together nicely?
- Is it better to have a Set in Hibernate and convert it to List in the presentation
- Would it be better to have List everywhere?
- Should we use a custom hibernate type as suggested in another thread?
("Using a bag with set semantics"
http://forum.hibernate.org/viewtopic.php?t=960001&postdays=0&postorder=asc&start=0)
- Other options?

Thank you

Xtian


Top
 Profile  
 
 Post subject: Fewer options with MySQL
PostPosted: Fri Dec 22, 2006 12:00 pm 
Newbie

Joined: Thu Dec 14, 2006 6:42 am
Posts: 15
I recently found out that if you use MySQL the range of options is reduced: <idbag> is not supported.
Considering that <bag> is very inefficient, the choice is reduced to <set> and <list> only.

As nobody cares to give an opinion, I will answer myself suggesting the use of <list> when working with JSF and MySQL.

Xtian


Top
 Profile  
 
 Post subject: Credits
PostPosted: Fri Dec 22, 2006 12:04 pm 
Newbie

Joined: Thu Dec 14, 2006 6:42 am
Posts: 15
How come I can't credit myself? That's unfair.

Xtian


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.