Skip to content
Merged
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 @@ -9,7 +9,6 @@

@Getter
public class UpcomingScheduleNotification implements Notification {
private Long legacyId;
private UUID id;
private Long ownerId;
private Long scheduleId;
Expand All @@ -19,16 +18,6 @@ public class UpcomingScheduleNotification implements Notification {

protected UpcomingScheduleNotification() {}

public UpcomingScheduleNotification(Long legacyId, UUID id, Long ownerId, Long scheduleId, String scheduleTitle, String scheduleStartTime, String idempotentKey) {
this.legacyId = legacyId;
this.id = id;
this.ownerId = ownerId;
this.scheduleId = scheduleId;
this.scheduleTitle = scheduleTitle;
this.scheduleStartTime = scheduleStartTime;
this.idempotentKey = idempotentKey;
}

public UpcomingScheduleNotification(UUID id, Long ownerId, Long scheduleId, String scheduleTitle, String scheduleStartTime, String idempotentKey) {
this.id = id;
this.ownerId = ownerId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@

@Getter
public class PushSubscription {
private Long legacyId;
private UUID id;
private Long memberId;
private String deviceId;
private String token;
private Instant modifiedAt;
protected PushSubscription() {}

public PushSubscription(Long legacyId, UUID id, Long memberId, String deviceId, String token, Instant modifiedAt) {
this.legacyId = legacyId;
public PushSubscription(UUID id, Long memberId, String deviceId, String token, Instant modifiedAt) {
this.id = id;
this.memberId = memberId;
this.deviceId = deviceId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
@Getter
@Setter
public class UpcomingScheduleNotificationEntity {
private Long id;

@Id
@JdbcTypeCode(SqlTypes.CHAR)
@Column(name = "public_id", length = 36)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public void deleteAllInBatch(List<UpcomingScheduleNotification> notifications) {

private UpcomingScheduleNotification toDomain(UpcomingScheduleNotificationEntity entity) {
return new UpcomingScheduleNotification(
entity.getId(),
entity.getPublicId(),
entity.getOwnerId(),
entity.getScheduleId(),
Expand All @@ -66,7 +65,6 @@ private UpcomingScheduleNotification toDomain(UpcomingScheduleNotificationEntity

private UpcomingScheduleNotificationEntity toEntity(UpcomingScheduleNotification domain) {
UpcomingScheduleNotificationEntity entity = new UpcomingScheduleNotificationEntity();
entity.setId(domain.getLegacyId());
entity.setPublicId(domain.getId());
entity.setOwnerId(domain.getOwnerId());
entity.setScheduleId(domain.getScheduleId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
@Getter
@Setter
public class PushSubscriptionEntity {
private Long id;

@Id
@JdbcTypeCode(SqlTypes.CHAR)
@Column(name = "public_id", length = 36)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public void deleteByMemberIdAndDeviceId(Long memberId, String deviceId) {

private PushSubscription toDomain(PushSubscriptionEntity entity) {
return new PushSubscription(
entity.getId(),
entity.getPublicId(),
entity.getMemberId(),
entity.getDeviceId(),
Expand All @@ -57,7 +56,6 @@ private PushSubscription toDomain(PushSubscriptionEntity entity) {

private PushSubscriptionEntity toEntity(PushSubscription domain) {
PushSubscriptionEntity entity = new PushSubscriptionEntity();
entity.setId(domain.getLegacyId());
entity.setPublicId(domain.getId());
entity.setMemberId(domain.getMemberId());
entity.setDeviceId(domain.getDeviceId());
Expand Down
Loading