I have defined objects as proxy, so lazy loading is enabled.
example:
Code:
/**
* @hibernate.class table="INSTRUMENT_TBL" proxy="com.domainmodel.Instrument"
* @jboss-net.xml-schema urn="Excom2:Instrument"
*/
public class InstrumentStatic implements java.io.Serializable {
public Long instrumentId;
..... etc......
How can I achieve loading all the object graph using generic code?
Because Hibernate.initialize(instrument) does not initialize all object graph. I would like to have method that initialize all object graph - the only one method (general) usable for all potential objects.
Thanks lot