mnimer / dphibernate

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

Can't translate from java List<Object[]> to ASObject #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I'm trying to use HibernateAdapter as default adapter in my project with
spring+hibernate framework. Hibernate returns List<Object[]> from hql but
the hibernate adapter returns ArrayCollection<null> objects to AS.

What is the expected output? What do you see instead?
Expecting to see ArrayCollection<Arrays> but it returns ArrayCollection<null>

What version of the product are you using? On what operating system?
dpHibernate1.0.11.jar

Please provide any additional information below.
I modified the HibernateSerializer's translate method to check for
isArray() and write the array similar to collection with an additional
"writeArray" method.

The above modification works and the array is translated fine.

Attached is the modified HibernateSerializer.java file. Let me know if this
is fine. 

Original issue reported on code.google.com by karthikk...@gmail.com on 24 Jul 2008 at 7:09

Attachments:

GoogleCodeExporter commented 9 years ago
Suspect this was fixed a while back.  Added test in 2.5 branch in r296

Original comment by martypit...@gtempaccount.com on 15 Mar 2011 at 2:56