question for JPA-Users, is the following somehow possible?
@Query(value = "SELECT * FROM Users u WHERE u.status = :sampleClass.status",
nativeQuery = true)
List<SampleClass> findBySampleClass(SampleClass sampleClass);
Notice the way I am trying to access SampleClass
in the @Query
annotation. Wasn't able to get this going, instead went for Criteria and constructed my query old-school.