Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
22 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,10 +47,10 @@ public class OrgRole extends GenericEntity {
@ManyToMany
(
mappedBy
=
"parents"
)
private
List
<
OrgRole
>
children
=
new
ArrayList
<
OrgRole
>();
@Column
(
nullable
=
false
)
@
Join
Column
(
nullable
=
false
)
@ManyToOne
()
private
EventOrganiser
eventOrganizer
;
@OneToMany
private
List
<
Role
>
eventRoles
;
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/voting/VotingCompoAddEntryView.java
View file @
267cc60
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
voting
;
import
java.util.Calendar
;
import
javax.ejb.EJB
;
import
javax.enterprise.context.RequestScoped
;
import
javax.faces.bean.ManagedBean
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
org.primefaces.model.UploadedFile
;
import
fi.insomnia.bortal.beans.VotingBeanLocal
;
import
fi.insomnia.bortal.model.Compo
;
import
fi.insomnia.bortal.model.CompoEntry
;
import
fi.insomnia.bortal.model.CompoEntryFile
;
@ManagedBean
@RequestScoped
public
class
VotingCompoAddEntryView
{
@EJB
VotingBeanLocal
votingBean
;
@NotNull
private
String
name
;
private
String
notes
;
private
String
screenMessage
;
@NotNull
private
UploadedFile
uploadedFile
;
private
Integer
compoId
;
public
UploadedFile
getUploadedFile
()
{
return
uploadedFile
;
}
public
void
setUploadedFile
(
UploadedFile
uploadedFile
)
{
this
.
uploadedFile
=
uploadedFile
;
}
public
String
getScreenMessage
()
{
return
screenMessage
;
}
public
void
setScreenMessage
(
String
screenMessage
)
{
this
.
screenMessage
=
screenMessage
;
}
public
String
getNotes
()
{
return
notes
;
}
public
void
setNotes
(
String
notes
)
{
this
.
notes
=
notes
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
void
send
()
{
CompoEntry
compoEntry
=
new
CompoEntry
();
compoEntry
.
setName
(
name
);
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/voting/VotingCompoListView.java
View file @
267cc60
package
fi
.
insomnia
.
bortal
.
web
.
cdiview
.
voting
;
import
java.util.List
;
import
javax.ejb.EJB
;
import
javax.faces.bean.ManagedBean
;
import
javax.faces.bean.RequestScoped
;
import
javax.enterprise.context.RequestScoped
;
import
javax.inject.Named
;
import
fi.insomnia.bortal.beans.VotingBeanLocal
;
import
fi.insomnia.bortal.model.Compo
;
import
fi.insomnia.bortal.web.cdiview.GenericCDIView
;
@ManagedBean
@Named
@RequestScoped
public
class
VotingCompoListView
extends
GenericCDIView
{
/**
*
*/
private
static
final
long
serialVersionUID
=
4166316634472472472L
;
@EJB
private
VotingBeanLocal
votbean
;
boolean
curEntries
=
false
;
boolean
maxParts
=
false
;
public
List
<
Compo
>
getCompos
()
{
return
votbean
.
getCompoList
();
}
...
...
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