Is it correct sql query inside jpa repository interface method annotation?
I have a library with books, readers and reservations. I need to select all book reservations by book title. Am I doing it correctly:
A book may have many reservations as well as users which are readers who borrow it. Should I refer to the string
title
using ?1
when using native sql query?
In jpql it would be the case. And is my query correct for my task?2 Replies
⌛
This post has been reserved for your question.
Hey @Tomasm21! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Post Closed
This post has been closed by <@312509109863710732> for the following reason:
I found out myself that I am doing it right. Also chatgpt conformed it.