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 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;
...
@@ -13,6 +13,7 @@ import javax.persistence.Entity;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Lob
;
import
javax.persistence.ManyToMany
;
import
javax.persistence.ManyToMany
;
import
javax.persistence.NamedQueries
;
import
javax.persistence.NamedQueries
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.NamedQuery
;
...
@@ -62,12 +63,15 @@ public class User implements ModelInterface {
...
@@ -62,12 +63,15 @@ public class User implements ModelInterface {
private
boolean
active
;
private
boolean
active
;
@Column
(
name
=
"password"
)
@Column
(
name
=
"password"
)
@Lob
private
String
password
;
private
String
password
;
@Column
(
name
=
"lastname"
)
@Column
(
name
=
"lastname"
)
@Lob
private
String
lastname
;
private
String
lastname
;
@Column
(
name
=
"firstnames"
)
@Column
(
name
=
"firstnames"
)
@Lob
private
String
firstnames
;
private
String
firstnames
;
@Column
(
name
=
"birthday"
)
@Column
(
name
=
"birthday"
)
...
@@ -75,30 +79,39 @@ public class User implements ModelInterface {
...
@@ -75,30 +79,39 @@ public class User implements ModelInterface {
private
Calendar
birthday
;
private
Calendar
birthday
;
@Column
(
name
=
"nick"
)
@Column
(
name
=
"nick"
)
@Lob
private
String
nick
;
private
String
nick
;
@Column
(
name
=
"email"
)
@Column
(
name
=
"email"
)
@Lob
private
String
email
;
private
String
email
;
@Column
(
name
=
"address"
)
@Column
(
name
=
"address"
)
@Lob
private
String
address
;
private
String
address
;
@Column
(
name
=
"zip"
)
@Column
(
name
=
"zip"
)
@Lob
private
String
zip
;
private
String
zip
;
@Column
(
name
=
"postal_code"
)
@Column
(
name
=
"postal_code"
)
@Lob
private
String
postalCode
;
private
String
postalCode
;
@Column
(
name
=
"town"
)
@Column
(
name
=
"town"
)
@Lob
private
String
town
;
private
String
town
;
@Column
(
name
=
"phone"
)
@Column
(
name
=
"phone"
)
@Lob
private
String
phone
;
private
String
phone
;
@Column
(
name
=
"female"
)
@Column
(
name
=
"female"
)
@Lob
private
Boolean
female
;
private
Boolean
female
;
@Column
(
name
=
"login"
)
@Column
(
name
=
"login"
)
@Lob
private
String
login
;
private
String
login
;
@OneToMany
(
cascade
=
CascadeType
.
ALL
,
mappedBy
=
"voter"
)
@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