mnimer / dphibernate

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

Lazy properties don't set to an Actionscript entity #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create server using Spring, Hibernate and any database.
2. Create client using Flex, Actionscript 
3. On the server side create an entity User with different properties and a 
property Role as well
4. Create on the server side the entity Role.
5. Make collection of Role in the entity User and set Lazy to it.
6. Configure the brige between the server and the client using dpHibernate (as 
in the sample spring_sample1) and in the article "Get start".
7. Create a table where you'll be able to see the output and get user's role 
list from the server.
8. Run your application.
9. At first touching loadDPProxy request would be initialized with Proxy object 
Role ( as many requests will be initialized as big collection is) 

What is the expected output? What do you see instead?
Expected to see the user's role collection, instead I see that a responce has 
all filled entities. But my entity on the client side is still empty. 

What version of the product are you using? On what operating system?
dpHibernate 1.0.17, Windows 7

Please provide any additional information below.
Looks like setProperties() method from HibernateManaged.as doesn't work 
correctly with custom properties. I think so because "proxyKey" and 
"proxyInitialized" fields are change there state after lazy-loading and it 
works. I see the filled object in the responce. 

Original issue reported on code.google.com by Larisa.P...@gmail.com on 18 Aug 2010 at 2:08

GoogleCodeExporter commented 9 years ago
Please retest in 2.0RC6.  This sounds like a configuration issue.

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