JOOQ has no direct support for creating tables. You could do it as you would with JDBC, by executing the creation-SQL as a string on the raw connection or via DSLContext.execute(String).
The better way might be to use an additional library like FlyWay to handle the database scheme. You can even use Flyway to automatically generate JOOQ’s scheme mappings, so if you update the database scheme, the changes are automatically present in the mappings right when you build you plugin.
Oh, … . Well I am pretty new to this SQL . I just made my queries from SQLyog and copied them over.
FlyWay looks very promising . I look in to that as the schematics are possibly going to change if my plugin develops. Wow after watching some videos its exactly what I was looking for .