• Post Reply Bookmark Topic Watch Topic
  • New Topic

collection mapping using set and retain order how to ?

 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


above is the code to map onetomany relation , I want to retain the order inside java.util.Set eaAuditPrograms so I used LinkedHashSet its still not retaining order when I display list of eaAuditPrograms in UI (web page ) the list order keeps changing upon refresh , please suggest me how I can retain the order and use a set
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!