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 4fcb0870
authored
Feb 08, 2014
by
Juho Salli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing CardCode class.
1 parent
add711cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
code/MoyaDatabase/src/fi/codecrew/moya/model/CardCode.java
code/MoyaDatabase/src/fi/codecrew/moya/model/CardCode.java
0 → 100644
View file @
4fcb087
package
fi
.
codecrew
.
moya
.
model
;
import
javax.persistence.Entity
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.Table
;
import
org.eclipse.persistence.annotations.OptimisticLocking
;
import
org.eclipse.persistence.annotations.OptimisticLockingType
;
@Entity
@Table
(
name
=
"card_code"
)
@OptimisticLocking
(
type
=
OptimisticLockingType
.
CHANGED_COLUMNS
)
public
class
CardCode
extends
GenericEntity
{
private
static
final
long
serialVersionUID
=
307145499023412008L
;
private
ReaderType
type
;
private
String
code
;
public
static
final
String
EVENT_ID_COLUMN
=
"event_id"
;
@ManyToOne
@JoinColumn
(
name
=
EVENT_ID_COLUMN
,
nullable
=
false
)
private
LanEvent
event
;
@ManyToOne
()
@JoinColumn
(
name
=
"printed_cards_id"
)
private
PrintedCard
printedCard
;
public
ReaderType
getType
()
{
return
type
;
}
public
void
setType
(
ReaderType
type
)
{
this
.
type
=
type
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
LanEvent
getEvent
()
{
return
event
;
}
public
void
setEvent
(
LanEvent
event
)
{
this
.
event
=
event
;
}
public
PrintedCard
getPrintedCard
()
{
return
printedCard
;
}
public
void
setPrintedCard
(
PrintedCard
printedCard
)
{
this
.
printedCard
=
printedCard
;
}
}
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