Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.x
Hi all,
I want to create an event listener (i.e. a PreInsertEventListener), being able to inspect the state before insertion. As the state[] only contains the values of the properties, I don't know what's the SECURE way to access to the properties (i.e. how to know whether property "a" is at position 2 in the array of values...???) (I don't think accessing in class field order is a SECURE way, because the VM doesn't impose any specific order, as specified in the Class documentation...).
PreInsertEvent
{
Object getEntity()
Serializable getId()
EntityPersister getPersister()
Object[] getState()
}
Thanks a lot in advance,
Kind Regards,
Carlos