Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
public class AppException extends RuntimeException {
public AppException(String message) {
private static final long serialVersionUID = 7701205683797441915L;

public AppException(String message) {
super(message);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
@ResponseStatus(HttpStatus.BAD_REQUEST)
public class BadRequestException extends RuntimeException {

public BadRequestException(String message) {
private static final long serialVersionUID = 8080239336966682711L;

public BadRequestException(String message) {
super(message);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

@ResponseStatus(HttpStatus.NOT_FOUND)
public class ResourceNotFoundException extends RuntimeException {
private String resourceName;
private static final long serialVersionUID = -3670306963854166388L;
private String resourceName;
private String fieldName;
private Object fieldValue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
@Entity
@Table(name = "polls")
public class Poll extends UserDateAudit {
@Id
private static final long serialVersionUID = -8416404242020324624L;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
})
})
public class User extends DateAudit {
@Id
private static final long serialVersionUID = -7054738240930572707L;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
})
})
public class Vote extends DateAudit {
@Id
private static final long serialVersionUID = -5578989888687444296L;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
)
public abstract class DateAudit implements Serializable {

@CreatedDate
private static final long serialVersionUID = 2393672420511675415L;

@CreatedDate
private Instant createdAt;

@LastModifiedDate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
)
public abstract class UserDateAudit extends DateAudit {

@CreatedBy
private static final long serialVersionUID = -5668994881302355970L;

@CreatedBy
private Long createdBy;

@LastModifiedBy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
import java.util.stream.Collectors;

public class UserPrincipal implements UserDetails {
private Long id;
private static final long serialVersionUID = -394792056682796726L;

private Long id;

private String name;

Expand Down