Answers for "how to stop extending jpa repository to every class in java"

0

how to stop extending jpa repository to every class in java

@MappedSuperclass
public class JpaObject {
    @Id
    @GeneratedValue
    private Long id;
    (.... created, last updated, general stuff here....)
}
Posted by: Guest on May-05-2021
0

how to stop extending jpa repository to every class in java

@NoRepositoryBean
public interface Dao<T extends JpaObject> extends JpaRepository<T, Long> {
}
Posted by: Guest on May-05-2021
0

how to stop extending jpa repository to every class in java

public interface JpaRepository<T extends Serializable, ID extends Serializable> {
    public <S extends T> S save(S object);
}
Posted by: Guest on May-05-2021
0

how to stop extending jpa repository to every class in java

@Repository
public interface GenericDao extends Dao<JpaObject> {
}
Posted by: Guest on May-05-2021

Code answers related to "how to stop extending jpa repository to every class in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language