Hi Max,
Thank you for your message.
If you in the generator configuration haven't set <records>false</records>,
then the jOOQ code generator should automatically be generating
UpdatableRecordImpl subclasses for all your tables. You should then be able
to use these classes instead of your CustomRecord subclasses.
I hope this answers your question.
Knut
On Wednesday, September 11, 2019 at 9:54:07 PM UTC+2, Max Kremer wrote:
>
> I'm trying to perform some simple CRUD operations with JPA annotated Pojos.
>
> I've run into the need of returning the generated id (Identity columns)
> for records that are inserted. Seems that the best way to do this is with
> UpdateableRecord
>
> To date we've been using CustomRecord and its hasn't really come up
>
>
> public class SpendEventRecord extends CustomRecord<SpendEventRecord> {
>
> But I can't figure out how to create UpdatebleRecord instances based on my
> pojos.
>
> Related:
>
> https://stackoverflow.com/questions/50627182/jooq-after-executeinsert-need-to-know-the-auto-generated-id
>
> https://stackoverflow.com/questions/43552078/jooq-exclude-id-field-when-inserting-from-pojo
>
> https://stackoverflow.com/questions/8127378/jooq-insert-query-with-returning-generated-keys
>
--
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/07252554-85e8-41b8-8167-dfbea2797aaa%40googlegroups.com.