Commit 8755c1e7 by Tuukka Kivilahti

database -changes

1 parent 9025e382
...@@ -149,6 +149,7 @@ public class BootstrapBean implements BootstrapBeanLocal { ...@@ -149,6 +149,7 @@ public class BootstrapBean implements BootstrapBeanLocal {
"user_images", "user_images",
"user_notes", "user_notes",
"users")); "users"));
dbUpdates.add(new String[] { "ALTER TABLE roles ADD COLUMN select_childrens_count integer DEFAULT null;" });
} }
@EJB @EJB
......
...@@ -76,6 +76,9 @@ public class Role extends GenericEntity { ...@@ -76,6 +76,9 @@ public class Role extends GenericEntity {
@ManyToOne @ManyToOne
@JoinColumn(name = EVENT_ID_COLUMN, nullable = false) @JoinColumn(name = EVENT_ID_COLUMN, nullable = false)
private LanEvent event; private LanEvent event;
@Column(name = "select_childrens_count", nullable = true)
private int selectChildrensCount;
@ManyToMany @ManyToMany
@JoinTable(name = "roles_provided_by_org_roles", @JoinTable(name = "roles_provided_by_org_roles",
...@@ -206,4 +209,12 @@ public class Role extends GenericEntity { ...@@ -206,4 +209,12 @@ public class Role extends GenericEntity {
this.orgRoles = orgRoles; 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!