Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 267cc600
authored
May 13, 2012
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
column -> joincolumn..
1 parent
6645ef86
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/OrgRole.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/voting/VotingCompoAddEntryView.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/voting/VotingCompoListView.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/OrgRole.java
View file @
267cc60
...
@@ -47,7 +47,7 @@ public class OrgRole extends GenericEntity {
...
@@ -47,7 +47,7 @@ public class OrgRole extends GenericEntity {
@ManyToMany
(
mappedBy
=
"parents"
)
@ManyToMany
(
mappedBy
=
"parents"
)
private
List
<
OrgRole
>
children
=
new
ArrayList
<
OrgRole
>();
private
List
<
OrgRole
>
children
=
new
ArrayList
<
OrgRole
>();
@Column
(
nullable
=
false
)
@
Join
Column
(
nullable
=
false
)
@ManyToOne
()
@ManyToOne
()
private
EventOrganiser
eventOrganizer
;
private
EventOrganiser
eventOrganizer
;
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/voting/VotingCompoAddEntryView.java
View file @
267cc60
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
voting
;
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
voting
;
import
java.util.Calendar
;
import
javax.ejb.EJB
;
import
javax.ejb.EJB
;
import
javax.enterprise.context.RequestScoped
;
import
javax.enterprise.context.RequestScoped
;
import
javax.faces.bean.ManagedBean
;
import
javax.faces.bean.ManagedBean
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
org.primefaces.model.UploadedFile
;
import
org.primefaces.model.UploadedFile
;
import
fi.insomnia.bortal.beans.VotingBeanLocal
;
import
fi.insomnia.bortal.beans.VotingBeanLocal
;
import
fi.insomnia.bortal.model.Compo
;
import
fi.insomnia.bortal.model.CompoEntry
;
import
fi.insomnia.bortal.model.CompoEntry
;
import
fi.insomnia.bortal.model.CompoEntryFile
;
import
fi.insomnia.bortal.model.CompoEntryFile
;
...
@@ -36,24 +31,31 @@ public class VotingCompoAddEntryView {
...
@@ -36,24 +31,31 @@ public class VotingCompoAddEntryView {
public
UploadedFile
getUploadedFile
()
{
public
UploadedFile
getUploadedFile
()
{
return
uploadedFile
;
return
uploadedFile
;
}
}
public
void
setUploadedFile
(
UploadedFile
uploadedFile
)
{
public
void
setUploadedFile
(
UploadedFile
uploadedFile
)
{
this
.
uploadedFile
=
uploadedFile
;
this
.
uploadedFile
=
uploadedFile
;
}
}
public
String
getScreenMessage
()
{
public
String
getScreenMessage
()
{
return
screenMessage
;
return
screenMessage
;
}
}
public
void
setScreenMessage
(
String
screenMessage
)
{
public
void
setScreenMessage
(
String
screenMessage
)
{
this
.
screenMessage
=
screenMessage
;
this
.
screenMessage
=
screenMessage
;
}
}
public
String
getNotes
()
{
public
String
getNotes
()
{
return
notes
;
return
notes
;
}
}
public
void
setNotes
(
String
notes
)
{
public
void
setNotes
(
String
notes
)
{
this
.
notes
=
notes
;
this
.
notes
=
notes
;
}
}
public
String
getName
()
{
public
String
getName
()
{
return
name
;
return
name
;
}
}
public
void
setName
(
String
name
)
{
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
}
}
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/voting/VotingCompoListView.java
View file @
267cc60
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
voting
;
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
voting
;
import
java.util.List
;
import
java.util.List
;
import
javax.ejb.EJB
;
import
javax.ejb.EJB
;
import
javax.faces.bean.ManagedBean
;
import
javax.enterprise.context.RequestScoped
;
import
javax.faces.bean.RequestScoped
;
import
javax.inject.Named
;
import
javax.inject.Named
;
import
fi.insomnia.bortal.beans.VotingBeanLocal
;
import
fi.insomnia.bortal.beans.VotingBeanLocal
;
import
fi.insomnia.bortal.model.Compo
;
import
fi.insomnia.bortal.model.Compo
;
import
fi.insomnia.bortal.web.cdiview.GenericCDIView
;
import
fi.insomnia.bortal.web.cdiview.GenericCDIView
;
@ManagedBean
@Named
@Named
@RequestScoped
@RequestScoped
public
class
VotingCompoListView
extends
GenericCDIView
{
public
class
VotingCompoListView
extends
GenericCDIView
{
/**
*
*/
private
static
final
long
serialVersionUID
=
4166316634472472472L
;
private
static
final
long
serialVersionUID
=
4166316634472472472L
;
@EJB
@EJB
...
...
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