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 19207f5a
authored
Oct 25, 2012
by
Antti Tönkyrä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
foodwave created
1 parent
21870786
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
code/LanBortalDatabase/src/fi/insomnia/bortal/model/FoodWaveTemplate.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodWaveView.java
code/LanBortalDatabase/src/fi/insomnia/bortal/model/FoodWaveTemplate.java
View file @
19207f5
...
...
@@ -7,6 +7,7 @@ package fi.insomnia.bortal.model;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.persistence.CascadeType
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.JoinColumn
;
...
...
@@ -42,7 +43,7 @@ public class FoodWaveTemplate extends GenericEntity {
@Column
(
name
=
"template_description"
)
private
String
description
;
@ManyToMany
(
mappedBy
=
"foodWaveTemplates"
)
@ManyToMany
(
mappedBy
=
"foodWaveTemplates"
,
cascade
=
CascadeType
.
ALL
)
private
List
<
Product
>
products
;
@OneToMany
(
mappedBy
=
"template"
)
...
...
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/shop/FoodWaveView.java
View file @
19207f5
...
...
@@ -82,6 +82,7 @@ public class FoodWaveView extends GenericCDIView {
currentProduct
=
new
Product
();
currentProduct
.
setProductFlags
(
ts
);
currentProduct
.
setEvent
(
eventbean
.
getCurrentEvent
());
}
public
void
addProductToTemplate
()
{
...
...
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