devonfw-forge / devonfw-microservices

Apache License 2.0
2 stars 7 forks source link

JPA Reference implementation #24

Open maybeec opened 3 years ago

maybeec commented 3 years ago

devonfw uses spring data + queryDSL with reflection

tkit utilizes DAOs

How to combine? What will be the proposed solution for the future on GraalVM? Will the throw away queryDSL or switch to code generation? Is there support of spring data for quarkus? Will we choose it again over DAOs?

GuentherJulian commented 2 years ago

I think this one can be closed @maybeec. We adapted the devon4j repository and query guides, so that the matches with Spring and Quarkus. We also created a separate guide showing the QueryDsl integration of devon4j for Spring (https://github.com/devonfw/devon4j/blob/master/documentation/spring/guide-querydsl-spring.asciidoc). So to summarize we recommend Spring Data and QueryDsl also for Quarkus. Is there anything further to do for this issue?

maybeec commented 2 years ago

Where can I find now how to utilize queryDSL with Quarkus? I cannot see it unfortunately!?

GuentherJulian commented 2 years ago

We have at least changed the part about dynamic queries in the query guide, so that this part is valid for both Spring and Quarkus using Querydsl with generated metaclasses (no devon4j module, this is described in the separate guide). But you are right, I think we should also mention how to integrate querydsl and querydsl annotation processor and maybe how to create expressions in more detail.

GuentherJulian commented 2 years ago

Created https://github.com/devonfw/devon4j/issues/482 to extend the guide