-->
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.  [ 2 posts ] 
Author Message
 Post subject: Views and userdefined sql types- OR mapping
PostPosted: Wed Nov 23, 2005 2:51 pm 
Newbie

Joined: Mon Nov 21, 2005 2:59 pm
Posts: 1
I am developing a hibernate project plase help me how to implement in the following senario

1. i have table1 say " USER" with some columns

2. Table2 say "USER_DETAILS" with some columns and this table has reference to first table (USER).

3. Then i have created a user defined SQl type object say(T_USER_DETAILS) which have some of the columns like in "USER_DETAILS" table.

4. Then i have created a view which have some of the columns of table1("USER") and also have a column which have a type "T_USER_DETAILS"( which was created at point 3)


5. The stored procedure will return view object

6. This query will return multiple rows.

In this senario, without user defined object(T_USER_DETAILS) in view, i am able to fetch data.

if view does have user defined sqltype column(T_USER_DETAILS) it gives an error
org.hibernate.type.SerializationException: could not deserialize


Please let me know how to map java objects to User defined data type object in oracle.

if any body have idea please let me know.

Thanks in advance

Sairam


Top
 Profile  
 
 Post subject: Re: Views and userdefined sql types- OR mapping
PostPosted: Fri Dec 02, 2005 9:25 pm 
Newbie

Joined: Tue Nov 22, 2005 11:57 am
Posts: 5
sairam wrote:
3. Then i have created a user defined SQl type object say(T_USER_DETAILS) which have some of the columns like in "USER_DETAILS" table.


What do you mean by that? Have you implemented
org.hibernate.usertype.UserType ? If so, please let me see it.

cheers,
spunky


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

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.