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 d1c474a8
authored
Mar 02, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dunno what
1 parent
24f2ee08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
code/MoyaDatabase/src/fi/codecrew/moya/model/ReaderEvent.java
code/MoyaWeb/src/fi/codecrew/moya/web/flow/IncomingView.java
code/MoyaDatabase/src/fi/codecrew/moya/model/ReaderEvent.java
View file @
d1c474a
package
fi
.
codecrew
.
moya
.
model
;
import
java.beans.Transient
;
import
java.util.Calendar
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.EnumType
;
import
javax.persistence.Enumerated
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.Lob
;
import
javax.persistence.ManyToOne
;
...
...
@@ -42,7 +43,7 @@ public class ReaderEvent extends GenericEntity {
private
String
notes
;
@JoinColumn
(
name
=
"printed_cards_id"
,
referencedColumnName
=
"id"
,
nullable
=
true
,
updatable
=
false
)
@ManyToOne
(
optional
=
false
)
@ManyToOne
()
private
PrintedCard
printedCard
;
@JoinColumn
(
name
=
"readers_id"
,
referencedColumnName
=
"id"
,
nullable
=
false
,
updatable
=
false
)
...
...
@@ -50,17 +51,18 @@ public class ReaderEvent extends GenericEntity {
private
Reader
reader
;
@JoinColumn
(
name
=
"event_users_id"
,
referencedColumnName
=
"id"
,
nullable
=
true
,
updatable
=
false
)
@ManyToOne
(
optional
=
false
)
@ManyToOne
()
private
EventUser
user
;
@JoinColumn
(
name
=
"places_id"
,
referencedColumnName
=
"id"
,
nullable
=
true
,
updatable
=
false
)
@ManyToOne
(
optional
=
false
)
@ManyToOne
()
private
Place
place
;
@JoinColumn
(
name
=
"products_id"
,
referencedColumnName
=
"id"
,
nullable
=
true
,
updatable
=
false
)
@ManyToOne
(
optional
=
false
)
@ManyToOne
()
private
Product
product
;
@Enumerated
(
EnumType
.
STRING
)
private
ReaderEventType
type
;
public
ReaderEvent
(
Date
eventTime
,
Reader
reader
,
String
value
)
{
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/flow/IncomingView.java
View file @
d1c474a
...
...
@@ -187,6 +187,9 @@ public class IncomingView extends GenericCDIView {
ReaderEvent
event
=
readerView
.
getReaderEvent
();
if
(
event
==
null
)
return
null
;
EventUser
user
=
event
.
getUser
();
memberlist
=
null
;
...
...
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