-->
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: How to update Oracle object types ?
PostPosted: Wed Jun 09, 2010 11:11 am 
Newbie

Joined: Wed Apr 28, 2010 11:55 am
Posts: 13
We have inherited a DB with user defined object types (eg: 'address' containing city, state zip et.al.).

This zip column can be retrieved from Oracle by setting the column as follows:
@Column(name = "SHIP_TO.zip")

However, you cannot update using this.

Does anyone know how to update Oracle user defined object types in Hibernate ?

Thanks,
Craig.


Top
 Profile  
 
 Post subject: Re: How to update Oracle object types ?
PostPosted: Wed Jun 09, 2010 11:30 am 
Newbie

Joined: Wed Apr 28, 2010 11:55 am
Posts: 13
I found out that it will work if the columns are prefixed with a table identifier in the SQL.

So, this would work:

update tbl_xxx t set t.SHIP_TO.zip = '33333' where cust_id = 2549;

The question now becomes:

How do I get Hibernate to generate table qualifiers on the update statements ?


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.