fix JCache tests
This commit is contained in:
parent
f24b91da2a
commit
6af44dd6cf
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in New Issue