Protected annotation
Protected
JPA allows Protected as constructor of entity to prevent other ways of creating new object. This can be replaced with Lombok’s @NoArgsConstructor.
@NoArgsConstructor(access = AccessLevel.PROTECTED)
JPA allows Protected as constructor of entity to prevent other ways of creating new object. This can be replaced with Lombok’s @NoArgsConstructor.
@NoArgsConstructor(access = AccessLevel.PROTECTED)