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 d6de95c1
authored
Oct 31, 2010
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of dev.intra.insomnia.fi:/data/bortal
2 parents
3c16842b
6f520986
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Poll.java
code/LanBortalWeb/src/fi/insomnia/bortal/view/PollView.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Poll.java
View file @
d6de95c
...
@@ -6,6 +6,7 @@ import java.io.Serializable;
...
@@ -6,6 +6,7 @@ import java.io.Serializable;
import
java.util.Calendar
;
import
java.util.Calendar
;
import
java.util.List
;
import
java.util.List
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.FetchType
;
import
javax.persistence.FetchType
;
import
javax.persistence.Lob
;
import
javax.persistence.Lob
;
...
@@ -27,11 +28,18 @@ public class Poll extends GenericEventChild implements Serializable {
...
@@ -27,11 +28,18 @@ public class Poll extends GenericEventChild implements Serializable {
private
static
final
long
serialVersionUID
=
-
5655775315722028984L
;
private
static
final
long
serialVersionUID
=
-
5655775315722028984L
;
@Temporal
(
TIMESTAMP
)
@Temporal
(
TIMESTAMP
)
@Column
(
name
=
"opening_time"
,
nullable
=
false
)
private
Calendar
begin
=
Calendar
.
getInstance
();
private
Calendar
begin
=
Calendar
.
getInstance
();
@Temporal
(
TIMESTAMP
)
@Temporal
(
TIMESTAMP
)
@Column
(
name
=
"closing_time"
,
nullable
=
false
)
private
Calendar
end
=
Calendar
.
getInstance
();
private
Calendar
end
=
Calendar
.
getInstance
();
@Column
(
name
=
"name"
,
nullable
=
false
)
private
String
name
;
private
String
name
;
@Lob
@Lob
@Column
(
name
=
"description"
,
nullable
=
true
)
private
String
description
;
private
String
description
;
@OneToMany
(
mappedBy
=
"poll"
,
fetch
=
FetchType
.
EAGER
)
@OneToMany
(
mappedBy
=
"poll"
,
fetch
=
FetchType
.
EAGER
)
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/view/PollView.java
View file @
d6de95c
...
@@ -83,6 +83,8 @@ public class PollView extends GenericView {
...
@@ -83,6 +83,8 @@ public class PollView extends GenericView {
boolean
ret
=
true
;
boolean
ret
=
true
;
// TODO: VALIDOI POLLIVASTAUKSET!
return
ret
;
return
ret
;
}
}
...
...
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