1@NoRepositoryBean
2public interface Dao<T extends JpaObject> extends JpaRepository<T, Long> {
3}
4
1public interface JpaRepository<T extends Serializable, ID extends Serializable> {
2 public <S extends T> S save(S object);
3}
4
1@MappedSuperclass
2public class JpaObject {
3 @Id
4 @GeneratedValue
5 private Long id;
6 (.... created, last updated, general stuff here....)
7}
8