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 179dcf58
authored
Mar 12, 2010
by
Juho Juopperi
Committed by
Juho Juopperi
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user text fields into Lob
1 parent
fe7ec9b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/User.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/User.java
View file @
179dcf5
...
...
@@ -13,6 +13,7 @@ import javax.persistence.Entity;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Lob
;
import
javax.persistence.ManyToMany
;
import
javax.persistence.NamedQueries
;
import
javax.persistence.NamedQuery
;
...
...
@@ -62,12 +63,15 @@ public class User implements ModelInterface {
private
boolean
active
;
@Column
(
name
=
"password"
)
@Lob
private
String
password
;
@Column
(
name
=
"lastname"
)
@Lob
private
String
lastname
;
@Column
(
name
=
"firstnames"
)
@Lob
private
String
firstnames
;
@Column
(
name
=
"birthday"
)
...
...
@@ -75,30 +79,39 @@ public class User implements ModelInterface {
private
Calendar
birthday
;
@Column
(
name
=
"nick"
)
@Lob
private
String
nick
;
@Column
(
name
=
"email"
)
@Lob
private
String
email
;
@Column
(
name
=
"address"
)
@Lob
private
String
address
;
@Column
(
name
=
"zip"
)
@Lob
private
String
zip
;
@Column
(
name
=
"postal_code"
)
@Lob
private
String
postalCode
;
@Column
(
name
=
"town"
)
@Lob
private
String
town
;
@Column
(
name
=
"phone"
)
@Lob
private
String
phone
;
@Column
(
name
=
"female"
)
@Lob
private
Boolean
female
;
@Column
(
name
=
"login"
)
@Lob
private
String
login
;
@OneToMany
(
cascade
=
CascadeType
.
ALL
,
mappedBy
=
"voter"
)
...
...
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