Let's say have a table with the following columns: STATUS - SUBMITTED - USER_ID
I would like query the repository interface in order to get the row that was SUBMITTED last by a certain USER_ID.
I know there is findByUserId(long userId) and findFirstByOrderBySubmittedDesc(), but I have no clue how to combine them.
How do I combine these two methods?