-->
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.  [ 4 posts ] 
Author Message
 Post subject: Can't use other users sequences in oracle9i
PostPosted: Sun Jan 08, 2006 6:59 am 
Newbie

Joined: Wed Dec 28, 2005 2:44 pm
Posts: 8
I'm trying to use a sequence defined by other user for key-generating, and hibernate can't find it. I checked where it looks and found it runs 'select sequence_name from user_sequences' and searches the list it creates from the ResultList (this SQL is defined in the dialect, in getQuerySequencesString method).

Can anyone tell me how can I use other user's sequences properly?
(If it matters, hibernate.hbm2ddl.auto is set to validate in my application).

Hibernate version:3.1

Name and version of the database you are using:oracle9i


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 11:06 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
you can extends oracle dialect


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 1:48 pm 
Newbie

Joined: Wed Dec 28, 2005 2:44 pm
Posts: 8
I know I can do this. This is actually what I'm doing. I was just wandering if there is any better way (I don't like the idea of creating a new dialect). Is this a bug? Will it change in any version in the near future?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 08, 2006 2:09 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
i think that it isn't bug - if you try select all sequence you have problem if two user have same sequence name
you can make your UID generator , too


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.