Hi,
I am trying to initalize a list of Field<?> objects using JOOQ 3.01 using
DSL.field("nameoffield") but keep getting the following exception
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at se.seb.mb.bootstrap.Bootstrap.main(Bootstrap.java:100)
at Bootstrap.main(Bootstrap.java:6)
Caused by: org.jooq.exception.SQLDialectNotSupportedException: Type class
java.lang.Object is not supported in dialect SQL99
at org.jooq.impl.DefaultDataType.getDataType(DefaultDataType.java:640)
at org.jooq.impl.DefaultDataType.getDataType(DefaultDataType.java:590)
at org.jooq.impl.DSL.getDataType(DSL.java:8502)
at org.jooq.impl.DSL.field(DSL.java:2935)
at org.jooq.impl.DSL.field(DSL.java:2878)
at org.jooq.impl.DSL.field(DSL.java:2850)
at se.seb.mb.persistence.DirectDbFacade.<init>(DirectDbFacade.java:923)
at Fcc.main(Fcc.java:22)
I guess I need to specify the class type for the DSL.field
However in JOOQ 2.6 i was using Factory.field without the class type and I
did not have this problem.
How can I get around this problem in JOOQ 3?
Regards
Pelle
--
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/groups/opt_out.