tracker issue : CF-3040910

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 82017:(Watson Migration Closure)You cannot retrieve a member of a struct-based collection where the key is an integer using any of the built-in ColdFusion methods for referring to a member of a struct

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Bob Silverberg / Bob Silverberg (Bob Silverberg)

Created: 02/08/2010

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: Japanese / Mac 10 All

Vote Count: 0

Problem:

You cannot retrieve a member of a struct-based collection where the key is an integer using any of the built-in ColdFusion methods for referring to a member of a struct.
Method:

IntkeyParent.cfc:component persistent="true" {property name="PId" fieldtype="id" generator="native";property name="Children" fieldtype="one-to-many" cfc="IntKeyChild" fkcolumn="PId" type="struct" structkeycolumn="aNumber" structkeytype="int" singularname="Child";}IntKeyChild.cfc:component persistent="true" {property name="CId" fieldtype="id" generator="native";property name="aNumber" ormtype="int";}IntKeyTest.cfm:<cfscript>ormReload();c = new IntKeyChild();c.setANumber(1);entitySave(c);p = new IntKeyParent();p.addChild(1,c);entitySave(p);writeDump(p);ormFlush();writeDump(p);ormCloseSession();P1 = entityLoadByPK("IntKeyParent",1);C1 = P1.getChildren()[1];</cfscript>
Result:

Element 1 is undefined in a Java object of type class org.hibernate.collection.PersistentMap.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3040910

External Customer Info:
External Company:  
External Customer Name: Bob Silverberg
External Customer Email: 5AD606C248A4C7F0992015A9
External Test Config: 02/08/2010

Attachments:

Comments: