I have this model:
private long userId;
private long recipeId;
private int Score;
private int Favorites;
private int Followers;
I want that userId and recipeId be my primary key for insert or replace an object.
can I use a composite primary key? -> http://www.objectdb.com/java/jpa/entity/id#Composite_Primary_Key_
Thanks,