Descriptor Initialization and Hibernation

i has the following bulldozer mapping:

      com.company.xx.xx.model.MyClass com.company.xx.xx.model.MyClassToMap

in the field <B> in the field

client <b> client

I am loading MyClass with sleep mode. But I have a lazy download for the client. I do not download everything from the client. But the mapping wants to display all the attributes from the client, so that a lazy initilization exception is thrown.

How can I show dozer only to display the client, and not for all fields from the client?

+3
source share
2 answers

, null . , Hibernate.isInitialized null, .

http://dozer.sourceforge.net/documentation/customconverter.html .

+2

<mapping wildcard="false">, Dozer

0

All Articles