Great Sebastian! I have a question. I have my query sql: " select p.* from pcr_perfil p order by( select count(ppu.id_usu_perfil) from pcr_perfil_usuario ppu where ppu.id_perfil = p.id_perfil ) asc " that's works fine in sql. Question. How to make that query from panache quarkus? Please can anyone translate it to panache query?
Well, in general you can directly execute native SQL queries, i.e. you can paste that into your code (e.g. with entity manager). But it might make sense to consider rewriting this query, in JPA query language in fact.
Thanks perfect video. do we have something like JPARepository in Quarkus that make most of queried available out of the box or we have to always use plain SQL?
do I have to use panache or other ORM framwork? I tried to inject a datasouce manually but it showed the UnsatisfiedResolutionException..
No both should work. See here: quarkus.io/guides/datasource#named-datasource-injection
Good tips! We actually don't need Postman, plain shellscript is waaay more efficient, nice ^^
How about using liquibase with context / label for test environments testdata?
Haven't really used it as such, but yes, can surely work. What was your experience with it?
Can we create only one Entity for two database ( with same attributes ) in the project
Yes, that should work
@@SebastianDaschnerIT how can u explain... or share any github link for reference
Great Sebastian! I have a question. I have my query sql: " select p.* from pcr_perfil p order by( select count(ppu.id_usu_perfil) from pcr_perfil_usuario ppu where ppu.id_perfil = p.id_perfil ) asc
" that's works fine in sql. Question. How to make that query from panache quarkus? Please can anyone translate it to panache query?
Well, in general you can directly execute native SQL queries, i.e. you can paste that into your code (e.g. with entity manager). But it might make sense to consider rewriting this query, in JPA query language in fact.
Thanks perfect video. do we have something like JPARepository in Quarkus that make most of queried available out of the box or we have to always use plain SQL?
th-cam.com/video/pDSKwYiV_Ns/w-d-xo.html :)
Awesome vid :D