This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!

Darius Juodokas

+ Follow
since Dec 02, 2017
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Darius Juodokas

Hey ya all!

So I've been working on my tiny little project based on the usual: Spring, JPA, AOP and Hibernate. And I ran into a rather weird case... JPA Repo method  cannot find one of my entity  fields.

without @Query annotation app fails with exc:

Datamodel looks smth like:

And if I comment out the second @Fetch(FetchMode.SUBSELECT) (over "floor" field), the exc looks even funnier:

So my question is.. What's wrong with my JPA method name and why doesn't it work without a native qry specified?

And why does Hibernate suddenly does not see a field without @Fetch(SUBSELECT) annotation, even though it DOES see it (see exc message)?

(the first question is more important to me; the second one -- just curious)