Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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....)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stop #extending #jpa #repository #class #java
ADD COMMENT
Topic
Name
8+5 =