Hi,
At my company we are using Jooq since a long time ago.
I am now migrating an old application from Java 8 to Java 11, and I was
trying to bump a 3.11 version of Jooq to the latest open-source available
for Java 11 (3.16)
As I was saying in the title, we only use Jooq for its DSL query generator,
but we are not using the code generator.
I am seeing that with the prior version, Jooq mapped automatically String
into Enums, but since the upgrade it doesn't. I suppose by calling its
valueOf() method.
Type type = record.getValue("loc_type", Type.class);
The statement above worked fine with Java 8 and Jooq 3.11, however now with
Java 11 and Jooq 3.16 I get:
*org.jooq.exception.DataTypeException: Cannot cast from class
java.lang.Object (instance type: class java.lang.String to class
java.lang.Object*
Is there any way to globally activate the mapping of Strings to Enums as a
setting for all the application?
thanks in advance
Guillem
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jooq-user/97c0f6b7-3a72-4dc2-b776-155ba77475b9n%40googlegroups.com.