For the record, the question was cross-posted here, I suspect:
https://stackoverflow.com/q/79076446/521799

On Friday, October 11, 2024 at 10:09:41 AM UTC+2 Lukas Eder wrote:

> Assuming you want to use reflective mapping, I think the 
> DefaultRecordMapper describes all your options well enough, including 
> aliasing or JPA annotations:
>
> https://www.jooq.org/javadoc/latest/org.jooq/org/jooq/impl/DefaultRecordMapper.html
>
> The key to understanding here is that there's no such thing as "without 
> any ambiguity" when you map to POJOs, because POJOs do not have any notion 
> of table/column association to them.
>
>
>
> On Fri, Oct 11, 2024 at 10:07 AM Humaid Kidwai <humaid....@gmail.com> 
> wrote:
>
>> I went through the relevant GitHub issues discussing this problem since 
>> 2015 but I still do not understand how can I fetch columns into 
>> corresponding generated POJOs without any ambiguity? The last option is to 
>> alias every column but that will make the code not only prone to errors if 
>> I miss aliasing a field somewhere across the large codebase but also make 
>> the codebase very dirty 
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jooq-user/3509a8f1-ef34-42b9-9ef6-d5bbbf575552n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jooq-user/3509a8f1-ef34-42b9-9ef6-d5bbbf575552n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/433fdee3-a43f-46da-8ab5-d9493cb37c6cn%40googlegroups.com.

Reply via email to