[jboss-user] [EJB 3.0] - Re: Getter for LAZY property gets called on every commit

markus.doering do-not-reply at jboss.com
Tue Nov 27 05:25:11 EST 2007


Ok, i have it working with a "nicer" solution.
I don't wanted to change my complete data structure and i don't think storing all byte[]'s in another bean is a good solution.

The @Basic(fetch=FetchType.LAZY) is working correctly with hibernate, but only if you use bytecode instrumantation as described here:
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#performance-fetching-lazyproperties

this is very important if you use lots of or lagre byte[]'s.

hope this helps someone else getting the same problem.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107990#4107990

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107990



More information about the jboss-user mailing list