Hey,
I am using hibernate to get at a collection of entities persisted in the database. I also created a custom collection class that i want to use to add additional behavior when objects are being added to the collection within hibernate. The Query.list method is returning an ArrayList. Is there anyway I can tell hibernate to use my custom collection when building the collection.
Some code to clarify
Code:
CorporateActionList entityList;
if(paramValues == null || paramValues.length == 0){
entityList = (CorporateActionList) hibernateTemplate.findByNamedQuery(namedQuery); //always returns arraylist
What facility is available to inform spring/hibernate that I would like a collection of type CorporateActionList to be returned?
Thanks.
Roy