-->
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: Default schema not applying to sequences
PostPosted: Thu Dec 11, 2008 5:27 am 
Newbie

Joined: Thu Dec 11, 2008 5:13 am
Posts: 4
EDIT: nevermind guys, I figured this was a bug that was resolved in the more recent versions of Hibernate...


Hi all.

As the title says, I'm having a problem with the default schema not being applied to sequences.

I specified the default schema using the hibernate.default_schema property in the hibernate.properties file.

The sequence name is specified in the mapping file as follows:

Code:
      <id name="id" column="id_myitems" type="java.lang.Long">
         <generator class="sequence">
            <param name="sequence">sq_myitems</param>
         </generator>   
    </id>



The default schema works fine for the tables, but I see that it keeps using the username as the schema for the sequences.

I know I can just hardcode the schema in the mapping file, but for me that is not an option for maintenability reasons.

I'm using Hibernate 2.? and DB2 9.5.

Any help would be appreciated.[/code]


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.