Title:
Bug 76073:[JFERNANDES]Remoting calls made to a service which return ORM entities with lazy properties don't honor laziness
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): João Fernandes / João Fernandes (Joao Fernandes)
Created: 03/18/2009
Components: Flex/Flash, Flex remoting
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / Unknown
Locale/System: English / Platforms All
Vote Count: 9
Problem:
[JFERNANDES]Remoting calls made to a service which return ORM entities with lazy properties don't honor laziness.
there should be a way to configure how deep the remoting should send back to the client and different levels.
remoting-config.xml
<hierarchy-level>"entity|entity-and-pk|entity-and-children|full"</hierarchy-level>
Application.cfc
<cfset this.ormsettings['hierarchy-level'] = "entity|entity-and-pk|entity-and-children|full">
this could eventually be override at component level (target remoting cfc) or at function level. Of course a property marked as lazy wouldn't ever be fetched to be sent to the client.
Method:
1) Create an entity with a lazy many-to-one property.
2) invoke a service which return some entities.
3) check that the supposed lazy loaded entity is in fact fully loaded in flex side.
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037947
External Customer Info:
External Company:
External Customer Name: João Fernandes
External Customer Email: 4E9A42C244586146992015D5
External Test Config: 03/18/2009
Attachments:
Comments: