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 6f520986
authored
Oct 31, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Poll didnt go to database
1 parent
eef66dcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Poll.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Poll.java
View file @
6f52098
...
...
@@ -6,6 +6,7 @@ import java.io.Serializable;
import
java.util.Calendar
;
import
java.util.List
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.FetchType
;
import
javax.persistence.Lob
;
...
...
@@ -27,11 +28,18 @@ public class Poll extends GenericEventChild implements Serializable {
private
static
final
long
serialVersionUID
=
-
5655775315722028984L
;
@Temporal
(
TIMESTAMP
)
@Column
(
name
=
"opening_time"
,
nullable
=
false
)
private
Calendar
begin
=
Calendar
.
getInstance
();
@Temporal
(
TIMESTAMP
)
@Column
(
name
=
"closing_time"
,
nullable
=
false
)
private
Calendar
end
=
Calendar
.
getInstance
();
@Column
(
name
=
"name"
,
nullable
=
false
)
private
String
name
;
@Lob
@Column
(
name
=
"description"
,
nullable
=
true
)
private
String
description
;
@OneToMany
(
mappedBy
=
"poll"
,
fetch
=
FetchType
.
EAGER
)
...
...
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