Skip to content
Advertisement

Tag: spring-data-jpa

native query join in spring data

I have the class: I want to know if it’s possible to use a native query join in spring data JPA and if the result of query was correctly mapped into entities like the above example. Can someone show me a complete example to user this. I must to use a native query in my case and I am not

Unexpected empty result using spring query method

I am building an application with a REST API using spring boot and JPA connected to a MySQL database. To search for names in the User class I have implemented a query method: List< User > findByFirstnameLike( String name ); This method only returns a result on an exact match, which is not what I wanted. Have I misunderstood something

Advertisement