I'm using spring CrudRepository
throughout my application.
Now I want to also create one for an @Entity
that does not have an @Id
. Is that possible at all?
//probably ID is always required?
public interface Repository<T, ID extends Serializable>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…