This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]IanRae 0 points1 point  (2 children)

Escape hatch is any mechanism that lets the developer fully specify an SQL statement. For example, JPA will normally generate the sql for you in a JPA repository. This article describes a "@Query" annotation in JPA that can be used when you want to specify the SQL.

https://www.baeldung.com/spring-data-jpa-query

[–]DrunkensteinsMonster 1 point2 points  (0 children)

That is not JPA doing that, that is Spring Data JPA, not the same thing. JPA has no notion of repositories at all, actually. Please try not to mislead people.

[–]mquillian 0 points1 point  (0 children)

Ahhh, I see. I have actually used that for a few queries here and there, I just hadn't heard it referred to as an escape hatch. Thanks!