Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customizing Hibernate Dialects

 
iain coghill
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the source? This sort of change should be fairly easy.
 
iain coghill
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No worries. We all have "duh" moments!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic