-->
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.  [ 3 posts ] 
Author Message
 Post subject: more complex substitutions possible?
PostPosted: Fri May 07, 2004 4:48 pm 
Beginner
Beginner

Joined: Thu Sep 04, 2003 5:38 pm
Posts: 29
In hibernate 2 I want to have it send:
{call nextval('foo')}
instead of
select nextval('foo)

The susbstitutions setting seems to do simple things, but I would need something more complex.

Or change the dialect, which looks like a source code change?

Before you ask, I need this for clustering (so this command will get propogated out to all servers as a write instead of read).

rick


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 08, 2004 7:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This is not possible currently. And besides, this sounds like a really strange clustering strategy to me.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 08, 2004 8:26 am 
Beginner
Beginner

Joined: Thu Sep 04, 2003 5:38 pm
Posts: 29
You mean it's not possible with the substitutions setting, but is there any other way to change what a dialect does, or is it get out the source and change it?

It's a pretty normal clustering issue. selects don't get propogated to all nodes, so you need to make it a write which will (in a mirroring setup). I'm working with c-jdbc and making it a call will cause it to be seen as a write.


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