tracker issue : CF-3040879

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

Bug 81909:add ReadOnly attribute to cfproperties="one-to-many"

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 02/01/2010

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Minor / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

add ReadOnly attribute to cfproperties="one-to-many".ReadOnly == !Mutable in Hibernate*, while we can currently use ReadOnly on <cfcomponent> level in CF9, we cannot use in <cfproperty fieldtype="one-to-many">. However,  mutable is allowed for collection mapping (see point 14): http://docs.jboss.org/hibernate/stable/core/reference/en/html/collections.html#collections-mapping* "readonly" is a bad name 'cause readonly=true can still insert.  The word Immtable better reflects the original meaning of the functionality.
Method:

It'd be nice if this works:<cfproperty name="cars" fieldType="one-to-many" type="array" cfc="car" readonly="true">
Result:

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

Watson Bug ID:	3040879

External Customer Info:
External Company:  
External Customer Name: Henry Ho
External Customer Email: 237A22C24921EDF5992015B9
External Test Config: 02/01/2010

Attachments:

Comments: