Hi All,
I have a repository that extends JpaRepository. I have a custom query that depends on the value of an enumeration. I would prefer not to hard code the enumeration into the query and have Spring pick it up automatically. How can I accomplish something like this:
Thanks!Code:// Gets this user's finished jobs @Query("select j from SyncJob j where j.ownerId = ?1 and status = " + Status.FINISHED) public SyncJob findFinishedJobs(long ownerId);
Doug


Reply With Quote