2018-03-20 11:35 GMT+01:00 <[email protected]>: > Maybe it does, need to contemplate it a little. I do not want to leak my > db schema to the outside world (yet the outside world is contrained by it, > so there is a fine line there somewhere). I think I need to extend the > JavaGenerator. >
Sure, let me know if you need any help with that > Looking at https://github.com/jOOQ/jOOQ/blob/master/jOOQ-codegen/ > src/main/java/org/jooq/util/JavaGenerator.java#L4740, why only validate > the length of a String? I use byte[] fields (BINARY(int)), that I'd like to > check too. > That's a very good idea. I've created a feature request for this: https://github.com/jOOQ/jOOQ/issues/7340 In fact, all types that "have a length" apply. We can check that via DataType.hasLength(): https://www.jooq.org/javadoc/latest/org/jooq/DataType.html#hasLength-- Thanks, 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.
