Hibernate for 3.x? New Typeconversion?

Hi,
i got 2 questions:

1. Will the Hibernate extension be fixed for use with Liquibase 3.x anytime soon?

2. We used to extend the converter classes for some databases i.e. MSSQLTypeConverter, OracleTypeConverter.
      So that our developers could just write “String(50)”, “BigDecimal(11,3)” etc. in the changeSets.
      Additionally we have a properties file for all our typedefinitions, where we map the javatype to each databasetype.
      If the dev doesn’t specify a length then the one from our props is taken.
      For example:

  1. #boolean
    boolean.liquibase: boolean
    boolean.ora: number
    boolean.mssql: tinyint
    boolean.length: 1,0
  2. #BigDecimal
    BigDecimal.liquibase: BigDecimal
    BigDecimal.ora: number
    BigDecimal.mssql: numeric
    BigDecimal.length: 19,2
      How can we achieve something like that with 3.x, because the conversion process seems totally different now?



I haven’t gotten to the hibernate extesion with 3.0 yet, but it looks like there is a pull request coming that will hopefully get it updated: http://forum.liquibase.org/topic/maven-hibernate


Interesting idea with the properties file. The type conversion is different in 3.0, the way to do it now is to create liquibase.datatype.LiquibaseDataType extensions. Each data type has its own class like liquiblase.datatype.core.VarcharType but if you create a subclass of the ones you need to control and return a higher value than LiquibaseDataType.PRIORITY_DATABASE Liquibase will use your class instead. 


You would override the toDatabaseDataType(Database database) method and set parameters to be the default values if not set ad then call super.toDatabaseDataType(database)


Nathan