Commit 8755c1e7 by Tuukka Kivilahti

database -changes

1 parent 9025e382
......@@ -149,6 +149,7 @@ public class BootstrapBean implements BootstrapBeanLocal {
"user_images",
"user_notes",
"users"));
dbUpdates.add(new String[] { "ALTER TABLE roles ADD COLUMN select_childrens_count integer DEFAULT null;" });
}
@EJB
......
......@@ -77,6 +77,9 @@ public class Role extends GenericEntity {
@JoinColumn(name = EVENT_ID_COLUMN, nullable = false)
private LanEvent event;
@Column(name = "select_childrens_count", nullable = true)
private int selectChildrensCount;
@ManyToMany
@JoinTable(name = "roles_provided_by_org_roles",
joinColumns = { @JoinColumn(name = "role_id", referencedColumnName = Role.ID_COLUMN) },
......@@ -206,4 +209,12 @@ public class Role extends GenericEntity {
this.orgRoles = orgRoles;
}
public int getSelectChildrensCount() {
return selectChildrensCount;
}
public void setSelectChildrensCount(int selectChildrensCount) {
this.selectChildrensCount = selectChildrensCount;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!