Hi Venkat,

Indeed, there had been a previous feature request that would allow adding
custom behaviour to Record and UpdatableRecord objects:

Add listener API to Record / UpdatableRecord
https://github.com/jOOQ/jOOQ/issues/2010

The above is related to:

Add org.jooq.Trigger to support custom callbacks to be configured
https://github.com/jOOQ/jOOQ/issues/1691

Both listener APIs would add much flexibility to jOOQ in real world
applications like yours, where you'd like to inject custom behaviour into
common jOOQ behaviour.

Note that in the short run, you might be able to work around missing
listener APIs through writing database triggers, or by hiding ID generation
behind a custom DAO layer's insert() methods.

Cheers
Lukas

2013/6/27 Venkat Sadasivam <[email protected]>

> Hi Lukas:
>
> When I work work with *Record.java objects it would be nice it can
> automatically generate id based on sequence.
>
> Regards,
> Venkat
>
>
> On Thursday, 27 June 2013 01:57:44 UTC-4, Lukas Eder wrote:
>
>> Hi Venkat,
>>
>> Yes, the jOOQ code generator generates objects for your database
>> sequences, which you can then use through standalone calls or within your
>> SQL statements:
>> http://www.jooq.org/doc/3.0/**manual/sql-execution/sequence-**execution<http://www.jooq.org/doc/3.0/manual/sql-execution/sequence-execution>
>>
>> This would correspond to the JPA annotation you've cited.
>>
>> Cheers
>> Lukas
>>
>>
>> 2013/6/27 Venkat Sadasivam <[email protected]>
>>
>>> Does jOOQ support sequence based id generator?
>>>
>>> @GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
>>> "EmployeeSeq")
>>>
>>> --
>>> 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 jooq-user+...@**googlegroups.com.
>>>
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> 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.
>
>
>

-- 
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.


Reply via email to