Well, after some fiddling around I noticed that the entity object only had
@Entity(name = "table_name")
.After adding the
@Table(name = "table_name")
and removing the name from the @Entity it started working.
Also for the record it also worked if I used the complete class name in the query, ie
@Query("select c from com.package.ClassName c")
I have the same issue, but even though I follow your tip I'm still getting this problem. I have some integration tests with Spring and for some reason it does not find any entity classes on test-source folder.
ReplyDeleteMy entity classes are found and work fine on Eclipse but not in Ant script (all classes are in classpath properly). This is weird!