Digest for jooq-user@googlegroups.com - 3 updates in 2 topics

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Digest for jooq-user@googlegroups.com - 3 updates in 2 topics

http://groups.google.com/group/jooq-user/topics mailing list
[hidden email]: Dec 04 08:27AM -0800

Hi everybody,
 
I'm using Spring Boot 2.0 M7 (which drags JOOQ 3.10.1)for my service.
 
The problem is that the latest version for JOOQ Maven code gen (seems to be
3.9.6) generates incompatible classes which breaks at compilation time.
i.e:
 
"..tables.records.AuthenticationModeRecord is not abstract and does not
override abstract method component7() in org.jooq.Record7"
 
Is that a known issue?
 
Regards,
 
Bruno
Hilco Wijbenga <[hidden email]>: Dec 05 08:02AM -0800

On Mon, Dec 4, 2017 at 8:27 AM, bruno.barin via jOOQ User Group
> i.e:
 
> "..tables.records.AuthenticationModeRecord is not abstract and does not
> override abstract method component7() in org.jooq.Record7"
 
Actually, the latest version (on Maven Central) is 3.10.2 and there is
a corresponding version of the Maven plugin for each jOOQ version. So
upgrade your maven plugin to 3.10.1 and all should be well.
[hidden email]: Dec 04 11:43AM -0800

I'm using model API without code generation and trying to achieve SQL code
with the following condition:
 
WHERE visitor_device in (?)::visitor_device[]
 
where visitor_device is Postgres enum type. Example java code is:
Set<DeviceType> s = EnumSet.of(MOBILE);
query.addConditions(field("visitor_device").in(devices));
 
where custom enum DeviceType implements org.jooq.EnumType.
 
jOOQ correctly obtain enum value using EnumType.getLiteral() method for
bind parameter, but the generated array is not cast:
WHERE visitor_device in (?)
It's not a problem if I would need to use String literal directly like this:
 
Set<DeviceType> s = singleton("mobile");
query.addConditions(field("visitor_device").in(devices));
However I still don't know how I can do the casting to enum array.
 
Many thanks!
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to [hidden email].