2018-03-19 17:24 GMT+01:00 Bear Giles <[email protected]>: > Yes, the forcedType should go a long way towards cleaning up our code. > You should probably mention it in the javadoc for DataType, Binding, and > Converter. :-) >
That is a very good idea! I've created a feature request for this: https://github.com/jOOQ/jOOQ/issues/7331 > What did you have in mind? The connection details and schema are provided > by the user at runtime so our options are limited but we could set up an > empty schema if necessary. Would that generate the standard classes with > converters we specify or is it all hidden in schema-specific calls? Or were > you thinking of setting a runtime flag? > The idea is that generated code is really just a convenience for something you can create dynamically at runtime: DataType<MyType> type = SQLDataType.VARCHAR.asConvertedDataType(new MyTypeConverter()); Field<MyType> field = field(name("my_table", "my_field"), type); I hope this clarifies the idea a bit. Lukas -- 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.
