-->
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: Changing name of hibernate_sequence
PostPosted: Wed Mar 07, 2007 8:47 am 
Newbie

Joined: Wed Mar 07, 2007 8:38 am
Posts: 1
Hello,

I've got two related questions on hibernate_sequence:

1. Is it possible to change the name of the default hibernate sequence (hibernate_sequence) to something else? I've searched wuite a lot now on forums/google/jira without success. Our customer has a naming policy on his Oracle sequences and hibernate_sequence doesn't fit :)

2. I'm aware of the possibility of naming the sequences with

Code:
<generator class="sequence">
    <param name="sequence">person_id_sequence</param>
</generator>


However, that forces one sequence per table. IMO in our application, that would not be needed (not that much expected load).

So my question is this:
are there any objections/drawbacks to use ONE sequence for all tables, using:

Code:
<generator class="sequence">
    <param name="sequence">mySequence</param>
</generator>


and just not create the default hibernate sequence (hibernate_sequence) at all? Is the default sequence needed for anything else by hibernate?

Thx for reading/replying.
christian


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.