[Bug #1214] Fix issue changing Hibernate mapping for map inside CalendarData
Now capacityPerDay map is not lazy and it's loaded with the CalendarData. This fixes the problem when the load chart was printed. FEA: ItEr75S04BugFixing
This commit is contained in:
parent
f8e61b5ea1
commit
b87ea09c0f
2 changed files with 1 additions and 2 deletions
|
|
@ -119,7 +119,7 @@
|
|||
|
||||
<property name="code" access="property" not-null="true" unique="true"/>
|
||||
|
||||
<map name="capacityPerDay" table="capacity_per_day">
|
||||
<map name="capacityPerDay" table="capacity_per_day" lazy="false">
|
||||
<key column="base_calendar_id"/>
|
||||
<index column="day_id" type="integer" />
|
||||
<composite-element class="org.navalplanner.business.calendars.entities.Capacity">
|
||||
|
|
|
|||
|
|
@ -188,7 +188,6 @@ public class BaseCalendarModel extends IntegrationEntityModel implements
|
|||
|
||||
public static void forceLoadBaseCalendar(BaseCalendar baseCalendar) {
|
||||
for (CalendarData calendarData : baseCalendar.getCalendarDataVersions()) {
|
||||
calendarData.getHoursPerDay().size();
|
||||
if (calendarData.getParent() != null) {
|
||||
forceLoadBaseCalendar(calendarData.getParent());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue