how to stop extending jpa repository to every class in java

Solutions on MaxInterview for how to stop extending jpa repository to every class in java by the best coders in the world

showing results for - "how to stop extending jpa repository to every class in java"
Juan Diego
09 Apr 2019
1@NoRepositoryBean
2public interface Dao<T extends JpaObject> extends JpaRepository<T, Long> {
3}
4
Alex
18 Jan 2018
1public interface JpaRepository<T extends Serializable, ID extends Serializable> {
2    public <S extends T> S save(S object);
3}
4
Maya
16 Feb 2017
1@Repository
2public interface GenericDao extends Dao<JpaObject> {
3}
4
Thiago
24 Jul 2019
1@MappedSuperclass
2public class JpaObject {
3    @Id
4    @GeneratedValue
5    private Long id;
6    (.... created, last updated, general stuff here....)
7}
8
similar questions