Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
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 c4d1cc2c
authored
Sep 22, 2016
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
productoption database entitys
1 parent
d0d50029
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
0 deletions
code/moya-database/src/main/java/fi/codecrew/moya/model/ProductOption.java
code/moya-database/src/main/java/fi/codecrew/moya/model/ProductOptionGroup.java
code/moya-database/src/main/java/fi/codecrew/moya/model/ProductOption.java
0 → 100644
View file @
c4d1cc2
/*
* Copyright Codecrew Ry
*
* All rights reserved.
*
* This license applies to any software containing a notice placed by the
* copyright holder. Such software is herein referred to as the Software.
* This license covers modification, distribution and use of the Software.
*
* Any distribution and use in source and binary forms, with or without
* modification is not permitted without explicit written permission from the
* copyright owner.
*
* A non-exclusive royalty-free right is granted to the copyright owner of the
* Software to use, modify and distribute all modifications to the Software in
* future versions of the Software.
*
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package
fi
.
codecrew
.
moya
.
model
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
/**
* Group for lectures, so you can set limits how many of these the user can
* choose
*/
@Entity
@Table
(
name
=
"product_options"
)
public
class
ProductOption
extends
GenericEntity
implements
Cloneable
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"name"
)
private
String
name
;
@Column
(
name
=
"price_change"
)
private
Integer
priceChange
;
public
Integer
getPriceChange
()
{
return
priceChange
;
}
public
void
setPriceChange
(
Integer
priceChange
)
{
this
.
priceChange
=
priceChange
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
code/moya-database/src/main/java/fi/codecrew/moya/model/ProductOptionGroup.java
0 → 100644
View file @
c4d1cc2
/*
* Copyright Codecrew Ry
*
* All rights reserved.
*
* This license applies to any software containing a notice placed by the
* copyright holder. Such software is herein referred to as the Software.
* This license covers modification, distribution and use of the Software.
*
* Any distribution and use in source and binary forms, with or without
* modification is not permitted without explicit written permission from the
* copyright owner.
*
* A non-exclusive royalty-free right is granted to the copyright owner of the
* Software to use, modify and distribute all modifications to the Software in
* future versions of the Software.
*
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package
fi
.
codecrew
.
moya
.
model
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Table
;
/**
* Group for lectures, so you can set limits how many of these the user can
* choose
*/
@Entity
@Table
(
name
=
"product_option_groups"
)
public
class
ProductOptionGroup
extends
GenericEntity
implements
Cloneable
{
private
static
final
long
serialVersionUID
=
1L
;
@Column
(
name
=
"name"
)
private
String
name
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
}
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