-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem with JPA Native queries in EntityManager
PostPosted: Sat Nov 10, 2007 11:06 am 
Newbie

Joined: Sat Nov 10, 2007 10:49 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.