-->
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: Oracle Dialect Character Type Mapping is outdated
PostPosted: Fri Feb 14, 2014 11:27 am 
Newbie

Joined: Fri Feb 14, 2014 11:16 am
Posts: 1
Hello

In class org.hibernate.dialect.Oracle9iDialect the following method is declared:

Code:
protected void registerCharacterTypeMappings() {
   registerColumnType( Types.CHAR, "char(1 char)" );
   registerColumnType( Types.VARCHAR, 4000, "varchar2($l char)" );
   registerColumnType( Types.VARCHAR, "long" );
}


Refering to the Oracle documentation: http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#CNCPT012:

"Do not create tables with LONG columns. Use LOB columns (CLOB, NCLOB) instead. LONG columns are supported only for backward compatibility."

IMHO i consider this as a bug that should be changed.

Because of backward compatibility it might make sense not to modify it in this class, but introduce org.hibernate.dialect.Oracle11iDialect and make the fix there.

Thanks


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.