Title:
Bug 83994:(Watson Migration Closure)Trying to set the component class with the key "__type__" on an array of structs returned using HQL with a map() method does not work as expected
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Mary Jo Sminkey / Mary Jo Sminkey (Mary Jo Sminkey)
Created: 08/31/2010
Components: ORM Support
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
Trying to set the component class with the key "__type__" on an array of structs returned using HQL with a map() method does not work as expected.
Method:
You can use Hibernates map() method to return an array of structs with HQL when using a SELECT for only certain properties. Normally you can add a key with the name "__type__" with a value of the component class, so that when passing the data to Flex ColdFusion will automatically translate the struct to a typed object (valueObject). However, this does not work when the struct has been returned from the ColdFusion ORM via HQL. An untyped object is passed instead. The struct has to be manually rebuilt in order to work properly.
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041972
External Customer Info:
External Company:
External Customer Name: Mary Jo Sminkey
External Customer Email: 054227314463B683992015D5
External Test Config: 08/31/2010
Attachments:
Comments: