-->
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: what is different between OracleDialect and Oracle9Dialect?
PostPosted: Sun Feb 01, 2004 10:44 pm 
Newbie

Joined: Tue Jan 13, 2004 1:37 am
Posts: 11
when I switch Oracle 8.1.7 to 9.2.0, it seems need not change hibernate dialect, it works normally. So what is different, why hibernate use two type of dialect in kinds of version Oracle?


Top
 Profile  
 
 Post subject: Re: what is different between OracleDialect and Oracle9Diale
PostPosted: Mon Feb 02, 2004 3:34 am 
Newbie

Joined: Tue Jan 27, 2004 3:26 pm
Posts: 18
bennyfong wrote:
when I switch Oracle 8.1.7 to 9.2.0, it seems need not change hibernate dialect, it works normally. So what is different, why hibernate use two type of dialect in kinds of version Oracle?


Actually OracleDialect extends Oracle9Dialect and overides createOuterJoinFragment() (since Oracle 8 has its own notations of outer joins (+), 9 has 'join keyword'), and createCaseFragment (uses oracle 'decode' to emulate 'case' statement AFAIR). See source code, it's good quality and pretty self explaining. It's why I prefer open source - you can always refer to source code and see what's going under the hood.

Artur


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Mon Feb 02, 2004 4:25 am 
Newbie

Joined: Tue Jan 13, 2004 1:37 am
Posts: 11
Thanks


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.