Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8755c1e7
authored
May 21, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
database -changes
1 parent
9025e382
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BootstrapBean.java
code/MoyaDatabase/src/fi/codecrew/moya/model/Role.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/BootstrapBean.java
View file @
8755c1e
...
...
@@ -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
...
...
code/MoyaDatabase/src/fi/codecrew/moya/model/Role.java
View file @
8755c1e
...
...
@@ -76,6 +76,9 @@ public class Role extends GenericEntity {
@ManyToOne
@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"
,
...
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment