Hi Peter,
That's an interesting thought, thanks for suggesting. Right now, you can
collect all Keys indirectly via the Schema.getTables() reference:
PUBLIC.getTables()
.stream()
.flatMap(t -> t.getKeys().stream())
.forEach(System.out::println);
It would certainly make sense for a Schema to provide access to all of its
keys directly. I have registered a feature request for this:
https://github.com/jOOQ/jOOQ/issues/5207
Thanks again for suggesting!
Lukas
2016-04-16 10:11 GMT+02:00 <[email protected]>:
> Hi,
>
> when using the GenerationTool it creates a concrete class of SchemaImpl
> and offers access to the schema programatically, like all tables. But I
> cannot find a reference to all keys. I may reflect on the Keys.class but
> not as nice as have a static method that retuirns a List of all keys. I
> cannot find the option (if any) in the GenerationTool configuration.
>
> Thank you, Peter
>
> --
> 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.
>
--
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.