Marshalling objects with Lazy Joins in MOxy [message #897566] |
Tue, 24 July 2012 14:09 |
John Dugo Messages: 13 Registered: October 2011 |
Junior Member |
|
|
I having some problems with LAZY OneToOne and ManyToOne joins in moxy. When marshalling the Entity Objects with lazy joins, the joined objects are only sent across if the Lazy Join has been instantiated. This isn't a problem with OneToMany joins.
As a workaround, I have to manually invoke the Lazy getters before I marshall the entities, however this is cumbersome. Is the a way I can avoid doing this?
We are using MOxy only for our testing framework, which is why we want to lazy joins to always be invoked. But in production we still want to have the performance advantage of using LAZY initialization. (if you are wondering why we dont just switch to using EAGER)
[Updated on: Tue, 24 July 2012 14:22] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.44598 seconds