Skip to content

Commit

Permalink
Trigger description is not localized (minor changes) jmix-framework#1844
Browse files Browse the repository at this point in the history
  • Loading branch information
fractal3000 committed Dec 21, 2023
1 parent e637a23 commit ee0e002
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class TriggerModel {

private String triggerGroup;

private String scheduleType;
private ScheduleType scheduleType;

private Date startDate;

Expand All @@ -41,14 +41,6 @@ public class TriggerModel {
@Positive
private Long repeatInterval;

public void setScheduleType(ScheduleType scheduleType) {
this.scheduleType = scheduleType == null ? null : scheduleType.getId();
}

public ScheduleType getScheduleType() {
return scheduleType == null ? null : ScheduleType.fromId(scheduleType);
}

public UUID getId() {
return id;
}
Expand All @@ -73,6 +65,14 @@ public void setTriggerGroup(String triggerGroup) {
this.triggerGroup = triggerGroup;
}

public void setScheduleType(ScheduleType scheduleType) {
this.scheduleType = scheduleType;
}

public ScheduleType getScheduleType() {
return scheduleType;
}

@Nullable
public Date getStartDate() {
return startDate;
Expand Down

0 comments on commit ee0e002

Please sign in to comment.