Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is it safe to use LinkedHashSet for collections in entity  RSS feed

 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am wondering is there any problem using LinkedHashSet for any collection mapping in an entity , the reason I am asking is all the examples I saw uses HashSet and never saw LinkedHashSet , I want to retain order and no duplicates .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!