Yep it is obvious becoz hibernate didn't handle the list index's column; therefore the value must be null for every lm_access_rule instance; and therefore the "identifier" is "already attached" (assume the first null value is acceptable, but the 2nd null value means a duplicate)
So the problem goes back to ... why hibernate couldn't increment the "idx" field.
elch78 wrote:
Hi,
Regarding your first error
1) org.springframework.orm.hibernate3.HibernateSystemException: a different object with the same identifier value was already associated with the session
this error occurs if you try to attach an object to the persistence context with an identifier that is alread attached. I had this case several times recently. Check your code if the object you are trying do persist ist loaded earlier. This can happen without loading it explicitly by traversing the object graph, where the object may be included.
cheers
elch