Hi Dennis,

I really appreciate the help. Right now we are exposing a read only view of our object model via some hand crafted XML output - I can see the value in using this and it works wonderfully when not connected to hibernate.

I've attached the JiBX compiled classes for UserImpl and Producer. About the proxy... I know this is Hibernate specific but I was thinking that somewhere in the JiBX binding code that when returning back Objects either from direct calls to the fields or via the get/ set methods that the object is then inspected to see if it is a Hibernate proxy... if it is it calls ((HibernateProxy) proxy).getHibernateLazyInitializer ().getImplementation(); to get the actual class. Maybe I could specify in the bind mapping that the object that is being returned is of a proxy type and then when JiBX generates it's bytecode enhancements it could call the getImplementation() method.

-matt


Attachment: JiBX_piece_bindingProducer_access.class
Description: Binary data

Attachment: JiBX_piece_bindingUserImpl_access.class
Description: Binary data


Reply via email to