-->
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: Help with Oracle Object Types
PostPosted: Wed Feb 21, 2007 5:09 am 
Newbie

Joined: Wed Feb 21, 2007 4:56 am
Posts: 1
I am using Hibernate Version 3

Accessing an Oracle 10g database.

In the project I am currently working on, I need to call a stored procedure which returns an Oracle object type and then persist this for the application.

I have set up the userType using a mixture of http://www.hibernate.org/261.html and Java Persistence with Hibernate.

I have also set up a sql-query to call the stored procedure within my mapping document which, itself, is called from within a DAO.

The issue I have is in mapping the returned object type to a class as I do not have a table to reference, nor do I have an id column. I keep getting an "wrong number or types of arguments in call to" error when I call the stored procedure which - I'm pretty confident in saying - is down to how I have mapped the class and return type.

In short, I would like to know how to map the class without having to use an id column, or whether there is some other method I could use instead of class.


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.