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....)
}
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....)
}
how to stop extending jpa repository to every class in java
@NoRepositoryBean
public interface Dao<T extends JpaObject> extends JpaRepository<T, Long> {
}
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);
}
how to stop extending jpa repository to every class in java
@Repository
public interface GenericDao extends Dao<JpaObject> {
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us