Fixed Hibernate relationship to store project label filtering preferences
FEA: ItEr77S15FilteringEnhancements
This commit is contained in:
parent
2df2af8000
commit
bd5914b011
2 changed files with 11 additions and 2 deletions
|
|
@ -240,4 +240,12 @@
|
|||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="add-projects_filter_label_id-column-to-user_table"
|
||||
author="ltilve">
|
||||
<comment>Add column to store label reference for default project filtering</comment>
|
||||
<addColumn tableName="user_table">
|
||||
<column name="projects_filter_label_id" type="BIGINT" />
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@
|
|||
<one-to-one name="worker" property-ref="user"
|
||||
class="org.libreplan.business.resources.entities.Worker" />
|
||||
|
||||
<one-to-one name="projectsFilterLabel" class="org.libreplan.business.labels.entities.Label" />
|
||||
|
||||
<property name="projectsFilterPeriodSince" column="projects_filter_period_since"/>
|
||||
|
||||
<property name="projectsFilterPeriodTo" column="projects_filter_period_to"/>
|
||||
|
|
@ -73,6 +71,9 @@
|
|||
|
||||
<property name="resourcesLoadFilterPeriodTo" column="resources_load_filter_period_to"/>
|
||||
|
||||
<many-to-one name="projectsFilterLabel" cascade="none"
|
||||
column="projects_filter_label_id" />
|
||||
|
||||
</class>
|
||||
|
||||
<class name="Profile" table="profile_table">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue