Dear Members,
I have a problem with native queries with JPA and entity manager. I have to query databse to get some scalar values that does not belong to model/entities. Actually I call some stored procedures on Oracle DB.
I found that Hibernate returns an array list of java.lang.Object.
On the other hand, TopLink returns Vector of Vector as a result. I can not convert java.lang.Object to any java collection such as ArrayList, Vector and ...
If I want to use native queries without @SqlResultSet, what should I do?
I am using Hibernate Core 3.2.5.GA, Hibernate EntityManager 3.3.1.GA and Hibernate Annotations 3.3.0.GA.
Thanks.
|