I don't think we should invest a ton of time in weird (and very incomplete)
querying utilities that solve problems that are very easy to solve with...
a query! See also:
https://blog.jooq.org/to-dao-or-not-to-dao

Of course, there's a very slight chance of the community convincing me
otherwise (e.g. with an issue on github and with 372 upvotes on the issue),
always keeping in mind that queries are extremely powerful, and
"repositories" / "DAOs" are very dumb

On Tue, Oct 22, 2024 at 9:58 AM Simon Martinelli <[email protected]>
wrote:

> Good point! That could be the case, yes. So it’s perfect as it is.
>
> Another question:
>
> It generates fetchRange, which is great. But most Spring Data users are
> used to having paging with a Pageable.
> Could this be a useful addition? I know that this will bind it to Spring
> Data so maybe this must be a separate module?
>
>
> https://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/domain/Pageable.html
>
>
>
> On 22 Oct 2024, at 09:48, Lukas Eder <[email protected]> wrote:
>
>
>
> On Tue, Oct 22, 2024 at 9:42 AM Simon Martinelli <
> [email protected]> wrote:
>
>> I'm a bit confused.
>>
>> To get the Spring DAOs I need to configure
>>
>> <springAnnotations>true</springAnnotations>
>> <springDao>true</springDao>
>> <daos>true</daos>
>>
>> Why? I mean if I don't set daos=true only the AbstractSpringDAOImpl
>> would be generated.
>> I was assuming that daos and springDao (why is one in pluarl and one in
>> singular) would not generate the same DAOs.
>>
>
> The springDao flag as per the Javadoc and documentation in the XSD does:
>
> "Generate an AbstractSpringDAOImpl as a base class for other DAO classes,
> containing @Transactional annotations, etc."
>
>
>> But it looks like springDao is a configuration for daos.
>> IMO springDaos (to make it consistent) should generate the daos without
>> the need to add daos=true.
>>
>
> There's a non-zero (though not far beyond 1) percent chance that someone
> would want to generate *only* the AbstractSpringDAOImpl, no?
>
> --
> 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/CAB4ELO6-9RRPx87Qx9u2ouXUtPjP3N6e0%3DXTe7kA7BJXJj_Ubw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jooq-user/CAB4ELO6-9RRPx87Qx9u2ouXUtPjP3N6e0%3DXTe7kA7BJXJj_Ubw%40mail.gmail.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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jooq-user/DDA67C8B-09D5-431E-888B-855414A28615%40gmail.com
> <https://groups.google.com/d/msgid/jooq-user/DDA67C8B-09D5-431E-888B-855414A28615%40gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/CAB4ELO4e_N7MF4apm5oTRL2f1Qbb00D_uYYwxPVnBbrvbBM4Og%40mail.gmail.com.

Reply via email to