fix JCache tests

This commit is contained in:
Steve Ebersole 2021-09-10 17:47:31 -05:00
parent f24b91da2a
commit 6af44dd6cf
2 changed files with 12 additions and 0 deletions

View File

@ -19,10 +19,12 @@ public class HolidayCalendar {
private Long id;
private String name;
// Date -> String
private Map holidays = new HashMap();
public HolidayCalendar init() {
name = "default";
DateFormat df = new SimpleDateFormat("yyyy.MM.dd");
try {
holidays.clear();
@ -35,6 +37,14 @@ public class HolidayCalendar {
return this;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Map getHolidays() {
return holidays;
}

View File

@ -16,6 +16,8 @@
<generator class="native"/>
</id>
<property name="name"/>
<map name="holidays" table="CALENDAR_HOLIDAYS" lazy="false">
<key column="CALENDAR_ID"/>
<map-key column="hol_date" type="date"/>