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 537fd8cb
authored
Oct 02, 2016
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
findById -> reload
1 parent
39fad5da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
code/moya-beans-client/ejbModule/fi/codecrew/moya/beans/ProductBeanLocal.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/ProductBean.java
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/ProductView.java
code/moya-beans-client/ejbModule/fi/codecrew/moya/beans/ProductBeanLocal.java
View file @
537fd8c
...
...
@@ -91,4 +91,6 @@ public interface ProductBeanLocal {
ProductOption
findOptionById
(
Integer
id
);
void
deleteProductOptionGroup
(
ProductOptionGroup
group
);
Product
reload
(
Product
product
);
}
code/moya-beans/ejbModule/fi/codecrew/moya/beans/ProductBean.java
View file @
537fd8c
...
...
@@ -655,5 +655,10 @@ public class ProductBean implements ProductBeanLocal {
}
@Override
public
Product
reload
(
Product
product
)
{
return
productFacade
.
reload
(
product
);
}
}
code/moya-web/src/main/java/fi/codecrew/moya/web/cdiview/shop/ProductView.java
View file @
537fd8c
...
...
@@ -259,7 +259,7 @@ public class ProductView extends GenericCDIView {
productOptionGroup
=
null
;
// flush product, I liek id's for everyone
product
=
prodbean
.
findById
(
product
.
getId
()
);
product
=
prodbean
.
reload
(
product
);
return
"/product/edit"
;
}
...
...
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