Let me explain
In the data access layer I am doing
Set<FutGenInfo> futureGenScheduleList = new LinkedHashSet<FutGenInfo>();
Then populating thios from the query. The reason for using LinkedHashSet is to maintain the insertion order and my query is giving me the record in aparticular order. This object is paased to the controller and added to Model which is defined as below
Map<
String, Object> model = new HashMap<String, Object>();
I am doing
model.put("abc", futureGenScheduleSet);
Now while getting it I am doing Set<FutGenInfo> futureSet = (LinkedHashSet<FutGenInfo>) model.get("abc");