Hi,
I´m looking for something like a targetEntity property for JpaRepository.
Let´s say I have an entity like this:
Now I define a Repository:
But I´d like to do it like this:
Is this somehow possible or does anyone think this could be a meaningful addition to the JpaRepository?
I´m looking for something like a targetEntity property for JpaRepository.
Let´s say I have an entity like this:
Code:
public class RecipeEntity implements Recipe
Code:
@Repository
public interface RecipeRepository extends JpaRepository<RecipeEntity, Long>
Code:
@Repository(targetEntity=RecipeEntity.class)
public interface RecipeRepository extends JpaRepository<Recipe, Long>