-->
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: embed oracle type creation SQL with schemaexport?
PostPosted: Thu Feb 22, 2007 5:21 pm 
Newbie

Joined: Mon Oct 16, 2006 9:18 am
Posts: 4
Is there a way to ensure the existence of an Oracle object type as part of the generated schema?

I have the following SQL statements to create PROPERTY_ARRAY, a SQL3 object:

create or replace type PROPERTY as object
(
PROPERTY_KEY VARCHAR2(256),
PROPERTY_VALUE VARCHAR2(4000)
);

create or replace type PROPERTY_ARRAY is VARRAY(1000) of PROPERTY;

I also implemented a Hibernate user type that maps to this object. Everything is working fine, except that I have to execute the above script prior to executing the generated hibernate schema. I wonder whether there is a cleaner way to automatically execute the above script before executing the rest of my schema. The ideal solution would be to incorporate the script into hibernate-generated schema directly.

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.