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


Reply With Quote
