fix JCache tests
This commit is contained in:
parent
f24b91da2a
commit
6af44dd6cf
|
@ -19,10 +19,12 @@ public class HolidayCalendar {
|
||||||
|
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
private String name;
|
||||||
// Date -> String
|
// Date -> String
|
||||||
private Map holidays = new HashMap();
|
private Map holidays = new HashMap();
|
||||||
|
|
||||||
public HolidayCalendar init() {
|
public HolidayCalendar init() {
|
||||||
|
name = "default";
|
||||||
DateFormat df = new SimpleDateFormat("yyyy.MM.dd");
|
DateFormat df = new SimpleDateFormat("yyyy.MM.dd");
|
||||||
try {
|
try {
|
||||||
holidays.clear();
|
holidays.clear();
|
||||||
|
@ -35,6 +37,14 @@ public class HolidayCalendar {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
public Map getHolidays() {
|
public Map getHolidays() {
|
||||||
return holidays;
|
return holidays;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
<generator class="native"/>
|
<generator class="native"/>
|
||||||
</id>
|
</id>
|
||||||
|
|
||||||
|
<property name="name"/>
|
||||||
|
|
||||||
<map name="holidays" table="CALENDAR_HOLIDAYS" lazy="false">
|
<map name="holidays" table="CALENDAR_HOLIDAYS" lazy="false">
|
||||||
<key column="CALENDAR_ID"/>
|
<key column="CALENDAR_ID"/>
|
||||||
<map-key column="hol_date" type="date"/>
|
<map-key column="hol_date" type="date"/>
|
||||||
|
|
Loading…
Reference in New Issue