File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Customizing Hibernate Dialects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Customizing Hibernate Dialects" Watch "Customizing Hibernate Dialects" New topic
Author

Customizing Hibernate Dialects

iain coghill
Greenhorn

Joined: Apr 19, 2009
Posts: 11
I wish to use Apache Derby 10.7 as my DBMS. Previous releases of Derby did not support a BOOLEAN data type, causing Hibernate to map booleans to 'smallint'. Release 10.7 now supports BOOLEAN, so how hard is it to subclass org.hibernate.dialect.DerbyDialect to get Hibernate to utilise BOOLEAN? I had a look at the Javadoc but I am not sure where to start
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have you looked at the source? This sort of change should be fairly easy.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
iain coghill
Greenhorn

Joined: Apr 19, 2009
Posts: 11
Paul Sturrock wrote:Have you looked at the source? This sort of change should be fairly easy.


Duh! You are quite right, it was easy. Very! Thanks.

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

No worries. We all have "duh" moments!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Customizing Hibernate Dialects
 
Similar Threads
CloneNotSupportedException does not require try block or throws clause
Suitable database for desktop application
Not-unique unique column
apache derby
Tomcat Error: Requested Resoure is not available