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 424fff02
authored
Mar 07, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model jpa fixes
1 parent
f6dae56c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
code/LanBortalDatabase/src/fi/insomnia/bortal/model/AccessRight.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/CardTemplate.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Location.java
code/LanBortal/EarContent/lib/LanBortalDatabase.jar
View file @
424fff0
No preview for this file type
code/LanBortalDatabase/src/fi/insomnia/bortal/model/AccessRight.java
View file @
424fff0
...
@@ -41,7 +41,7 @@ public class AccessRight implements ModelInterface {
...
@@ -41,7 +41,7 @@ public class AccessRight implements ModelInterface {
@OneToMany
(
cascade
=
CascadeType
.
ALL
,
mappedBy
=
"accessRight"
)
@OneToMany
(
cascade
=
CascadeType
.
ALL
,
mappedBy
=
"accessRight"
)
private
List
<
NewsGroup
>
newsGroups
;
private
List
<
NewsGroup
>
newsGroups
;
@OneToMany
(
mappedBy
=
"
id
"
)
@OneToMany
(
mappedBy
=
"
accessRight
"
)
private
List
<
RoleRight
>
roleRights
;
private
List
<
RoleRight
>
roleRights
;
public
Integer
getId
()
{
public
Integer
getId
()
{
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/CardTemplate.java
View file @
424fff0
...
@@ -48,7 +48,7 @@ public class CardTemplate implements ModelInterface {
...
@@ -48,7 +48,7 @@ public class CardTemplate implements ModelInterface {
@OneToMany
(
mappedBy
=
"cardTemplate"
)
@OneToMany
(
mappedBy
=
"cardTemplate"
)
private
List
<
Role
>
roles
;
private
List
<
Role
>
roles
;
@OneToMany
(
mappedBy
=
"
cardT
emplate"
)
@OneToMany
(
mappedBy
=
"
t
emplate"
)
private
List
<
PrintedCard
>
cards
;
private
List
<
PrintedCard
>
cards
;
@Version
@Version
...
...
code/LanBortalDatabase/src/fi/insomnia/bortal/model/Location.java
View file @
424fff0
...
@@ -34,7 +34,7 @@ public class Location implements ModelInterface {
...
@@ -34,7 +34,7 @@ public class Location implements ModelInterface {
@Column
(
name
=
"location_name"
,
nullable
=
false
)
@Column
(
name
=
"location_name"
,
nullable
=
false
)
private
String
name
;
private
String
name
;
@OneToMany
(
mappedBy
=
"
id
"
)
@OneToMany
(
mappedBy
=
"
location
"
)
private
List
<
Reader
>
readers
;
private
List
<
Reader
>
readers
;
@OneToMany
(
mappedBy
=
"currentLocation"
)
@OneToMany
(
mappedBy
=
"currentLocation"
)
...
...
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