Ask questions and see you at October, 4th, 8.PM. CET: https://youtube.com/c/bienadam/
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
Hi Adam!
What is your recommendation relative to write jpa queries using native
sql queries, jpql (both as named queries) or criteriaquery?
Currently, my approach is using
.find
for simple queries; for complex queriesI'm using psql to write (and test) the queries and later copy the query as a
native named query. Obviously the downside is the definition of the
SqlResultSetMapping
annotation. Do you think that this is a good approach oryou can give me a better option?
Some tips for reduce the boilerplate with the definition of entities?
Thanks for share your thoughts and experience!
Regards,
Juan Picca.