mnimer / dphibernate

Automatically exported from code.google.com/p/dphibernate
0 stars 0 forks source link

ListColelctionViews not filling correctly #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Flex VOs use ListCollectionView instead of ArrayList
2. Do a Hibernate create() on the server side

What is the expected output? What do you see instead?
Expected to save to database

Get Exception:
Error: Unknown Property: 'prototype'. at
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/
proxy::getProperty()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collectio
ns\ListCollectionView.as:694]
at
net.digitalprimates.persistence.hibernate::HibernateManaged$/manageChildHibernat
eObjects()[C:\Users\mnimer\Development\development\dpHibernate
-
google\flexLibrary\flex-src\net\digitalprimates\persistence\hibernate\HibernateM
anaged.as:106]

What version of the product are you using? On what operating system?
dpHibernate1.0.1.swc

Please provide any additional information below.
In HibernateManaged.as:manageChildHibernateObjects() change ArrayCollection
to ListCollectionView

else if ( object is ArrayCollection ) {
                for ( var i:int=0;i<object.length; i++ ) {
                    manageChildHibernateObjects( object[ i ], object, String( i ), ro ) 
                }

Original issue reported on code.google.com by dam6...@gmail.com on 6 Jan 2009 at 5:22

GoogleCodeExporter commented 9 years ago
Mike, can you look at this.

Original comment by mni...@gmail.com on 6 Jan 2009 at 5:53

GoogleCodeExporter commented 9 years ago
Confirmed this is an issue.  Will look at adding a fix.

Original comment by martypit...@gtempaccount.com on 9 Jul 2010 at 3:17

GoogleCodeExporter commented 9 years ago
This is still an issue, and should be fixed before 2.0 Release

Original comment by martypit...@gtempaccount.com on 15 Mar 2011 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by martypit...@gtempaccount.com on 15 Mar 2011 at 3:40

GoogleCodeExporter commented 9 years ago
Upon further investigation - I'm moving this to Won'tFix:

* Most List<?> are serialized by BlazeDS -> Flex as an ArrayCollection.
* Persisting collections from Flex -> BlazeDS has significantly changed since 
this defect was opened (are should support all IList implementations)
* Fixing the edge cases in 2.x introduces significant complexity.
* The way collections are handled in 3.x is changing signficiantly, making 
fixing this defect not worthwhile.

Original comment by martypit...@gtempaccount.com on 22 Mar 2011 at 1:17