I am just wondering what is used to generate the hashCode in the following 
example code for createTable


        DSLContext create = DSL.using (connection, SQLDialect.DERBY);

        long val = create.createTable("tableName")
                    .column("first", SQLDataType.BIT)
                    .column("second", SQLDataType.TINYINT)
                    .hashCode();

The reason for asking is that I am looking to combine JOOQ DDL capability 
with Flyway's schema management capabilities and this is best done by 
providing Flyway a checksum of each schema modification. This means that 
the hashCode should only be generated from the SQL statement that is to be 
executed rather than the wider information maintained by the DSLContext. 

If .hashCode in this situation does combine wider information I can just 
generate my own from the getSQL, but it would be good to know.

The idea behind all of this is to use JOOQ's cross dialect capabilities to 
handle a couple of different database targets, rather than having to 
integrate yet another tool/library/definition stricture to do the the job.


Thanks

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to