How to prevent eclipse-link from loading lazy fetched attributes ? [message #1067563] |
Tue, 09 July 2013 07:03  |
Eclipse User |
|
|
|
Hi
My project features a 3-tiered architecture (Glassfish 3.1.2.2, Eclipse-Link 2.3.3, Swing stand-alone client). I use JNDI and remote interfaces to access my EJB facades to communicate with the MySQL database.
For the purpose of lazy-fetching/-loading attributes of my @Entity-classes I use static weaving.
In order to reduce network traffic, I want to map the partially loaded entities to corresponding data-transfer-object (DTO). This is done on the facades.
My problem is, that the mapper does invoke all getter/setters of the entities and thus loads the un-fetched attributes. But I don't want them to be loaded during the mapping process in order to keep the transfered objects as small as possible.
Is there a way to prevent eclipse-link from fetching indirection lists ?
Many thanks for your help in advance!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04636 seconds