Hallo,
I so far wasn't able to find a method to persist a Collection of Objects. I only managed to persist one single instance of an object like:
session.save(MyObjectInstance);
But I have an Array of these objects. When trying to persist an ArrayList of "MyOBjectInstance"Objects I get the following exception:
net.sf.hibernate.MappingException: No persister for: java.util.ArrayList
Isn't here a default persister for ArrayLists or for any other kind of Collection? If here is one, where do I have to configure this persister.
What is your suggested approach solving the problem, iterating over the ArrayList and saving each record individually or is there an other alternative to solve this problem?
Thank you very much
jan
|