Implementing the Interceptor interface requires me to map Object arrays of current/future state onto the properties of my persistent objects. Why represent the state as Object arrays, rather than, say, a Map from (property name)->(property value), similar to the Distributed Objects pattern? or perhaps even instances of the persistent class?
http://www.hibernate.org/161.html
Has anyone developed any good patterns to assist/automate this mapping? To date, I have simply implemented some utility methods that build up a maps of (property name)->(Object[] index) for each persistent class... I am betting that the order of the properties in the Object array are static once the mapping files are loaded.
Thanks!