Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 f6dae56c
authored
Mar 07, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpa bugfixes
1 parent
e5cf2027
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
8 deletions
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
code/LanBortalDatabase/src/fi/insomnia/bortal/model/AccessRight.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/CompoEntry.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/DiscountInstance.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/PlaceGroup.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/User.java
code/LanBortalWeb/build/classes/fi/insomnia/bortal/view/UserView.class
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
View file @
f6dae56
No preview for this file type
code/LanBortalDatabase/src/fi/insomnia/bortal/model/AccessRight.java
View file @
f6dae56
...
@@ -38,7 +38,7 @@ public class AccessRight implements ModelInterface {
...
@@ -38,7 +38,7 @@ public class AccessRight implements ModelInterface {
@Column
(
name
=
"right_description"
)
@Column
(
name
=
"right_description"
)
private
String
description
;
private
String
description
;
@OneToMany
(
cascade
=
CascadeType
.
ALL
,
mappedBy
=
"
id
"
)
@OneToMany
(
cascade
=
CascadeType
.
ALL
,
mappedBy
=
"
accessRight
"
)
private
List
<
NewsGroup
>
newsGroups
;
private
List
<
NewsGroup
>
newsGroups
;
@OneToMany
(
mappedBy
=
"id"
)
@OneToMany
(
mappedBy
=
"id"
)
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/CompoEntry.java
View file @
f6dae56
...
@@ -75,7 +75,7 @@ public class CompoEntry implements ModelInterface {
...
@@ -75,7 +75,7 @@ public class CompoEntry implements ModelInterface {
@JoinColumn
(
name
=
"compos_id"
,
referencedColumnName
=
"compos_id"
,
nullable
=
false
)
@JoinColumn
(
name
=
"compos_id"
,
referencedColumnName
=
"compos_id"
,
nullable
=
false
)
@ManyToOne
(
optional
=
false
)
@ManyToOne
(
optional
=
false
)
private
Compo
compo
sId
;
private
Compo
compo
;
@JoinColumn
(
name
=
"creator"
,
referencedColumnName
=
"users_id"
)
@JoinColumn
(
name
=
"creator"
,
referencedColumnName
=
"users_id"
)
@ManyToOne
@ManyToOne
...
@@ -171,12 +171,12 @@ public class CompoEntry implements ModelInterface {
...
@@ -171,12 +171,12 @@ public class CompoEntry implements ModelInterface {
this
.
participants
=
compoEntryParticipantList
;
this
.
participants
=
compoEntryParticipantList
;
}
}
public
Compo
getCompo
sId
()
{
public
Compo
getCompo
()
{
return
composId
;
return
compo
;
}
}
public
void
setCompo
sId
(
Compo
composId
)
{
public
void
setCompo
(
Compo
composId
)
{
this
.
composId
=
composId
;
this
.
compo
=
composId
;
}
}
public
User
getCreator
()
{
public
User
getCreator
()
{
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/DiscountInstance.java
View file @
f6dae56
...
@@ -14,6 +14,8 @@ import javax.persistence.ManyToOne;
...
@@ -14,6 +14,8 @@ import javax.persistence.ManyToOne;
import
javax.persistence.NamedQueries
;
import
javax.persistence.NamedQueries
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
javax.persistence.Temporal
;
import
javax.persistence.TemporalType
;
import
javax.persistence.Version
;
import
javax.persistence.Version
;
/**
/**
...
@@ -32,6 +34,7 @@ public class DiscountInstance implements ModelInterface {
...
@@ -32,6 +34,7 @@ public class DiscountInstance implements ModelInterface {
private
Integer
id
;
private
Integer
id
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"timestamptz default now()"
)
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"timestamptz default now()"
)
@Temporal
(
TemporalType
.
TIMESTAMP
)
private
Date
createTime
=
new
Date
();
private
Date
createTime
=
new
Date
();
@JoinColumn
(
name
=
"account_events_id"
,
referencedColumnName
=
"account_events_id"
)
@JoinColumn
(
name
=
"account_events_id"
,
referencedColumnName
=
"account_events_id"
)
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/PlaceGroup.java
View file @
f6dae56
code/LanBortalDatabase/src/fi/insomnia/bortal/model/User.java
View file @
f6dae56
...
@@ -104,7 +104,7 @@ public class User implements ModelInterface {
...
@@ -104,7 +104,7 @@ public class User implements ModelInterface {
@ManyToMany
(
cascade
=
CascadeType
.
ALL
,
mappedBy
=
"users"
)
@ManyToMany
(
cascade
=
CascadeType
.
ALL
,
mappedBy
=
"users"
)
private
List
<
Role
>
roles
;
private
List
<
Role
>
roles
;
@OneToMany
(
mappedBy
=
"
id
"
)
@OneToMany
(
mappedBy
=
"
user
"
)
private
List
<
LogEntry
>
logEntryList
;
private
List
<
LogEntry
>
logEntryList
;
@OneToMany
(
mappedBy
=
"user"
)
@OneToMany
(
mappedBy
=
"user"
)
...
@@ -116,7 +116,7 @@ public class User implements ModelInterface {
...
@@ -116,7 +116,7 @@ public class User implements ModelInterface {
@OneToMany
(
mappedBy
=
"creator"
)
@OneToMany
(
mappedBy
=
"creator"
)
private
List
<
CompoEntry
>
compoEntryList
;
private
List
<
CompoEntry
>
compoEntryList
;
@OneToMany
(
mappedBy
=
"
groupC
reator"
)
@OneToMany
(
mappedBy
=
"
c
reator"
)
private
List
<
PlaceGroup
>
placeGroupList
;
private
List
<
PlaceGroup
>
placeGroupList
;
@OneToMany
(
mappedBy
=
"user"
)
@OneToMany
(
mappedBy
=
"user"
)
...
...
code/LanBortalWeb/build/classes/fi/insomnia/bortal/view/UserView.class
View file @
f6dae56
No preview for this file type
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