Hello,
Spring data JPA is really awesome :)
BUT i've got some question :
I've more than one entity manager in my project. How inject the correct entity manager in a JpaRepository?
My configuration display the generated SQL into log. I noticed that the query don't use binding. Why ? :confused:
EDIT:
I think i found a bug:
If you have 2 entities :
Parent {int id; ...}
Child{String name; @ManyToOne(...) Parent parent;...}
In JpaRepository<Child, ...>
Method findByName(String name); generate "select .... from Child where name=?" It is correct
Method findByParentId(int id); generate "select ... from Child where child.parentId=id" (no binding...)
