diff --git a/hibernate-jcache/src/test/java/org/hibernate/orm/test/jcache/domain/HolidayCalendar.java b/hibernate-jcache/src/test/java/org/hibernate/orm/test/jcache/domain/HolidayCalendar.java index f6defcf8c5..a20cc2e562 100644 --- a/hibernate-jcache/src/test/java/org/hibernate/orm/test/jcache/domain/HolidayCalendar.java +++ b/hibernate-jcache/src/test/java/org/hibernate/orm/test/jcache/domain/HolidayCalendar.java @@ -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; } diff --git a/hibernate-jcache/src/test/resources/hibernate-config/domain/HolidayCalendar.hbm.xml b/hibernate-jcache/src/test/resources/hibernate-config/domain/HolidayCalendar.hbm.xml index 76ec3727ca..49d94c8f04 100644 --- a/hibernate-jcache/src/test/resources/hibernate-config/domain/HolidayCalendar.hbm.xml +++ b/hibernate-jcache/src/test/resources/hibernate-config/domain/HolidayCalendar.hbm.xml @@ -16,6 +16,8 @@ + +