meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
sap_hybris_commerce:sap_hybris_persistence_mechanism [2019/08/26 16:32] – [Localization of Hybris types and attributes] Antonio Robirosa | sap_hybris_commerce:sap_hybris_persistence_mechanism [2020/09/02 09:49] – deletion of products Antonio Robirosa | ||
---|---|---|---|
Line 91: | Line 91: | ||
* The field can only be written once (initial=true) | * The field can only be written once (initial=true) | ||
* The field must be removed when the parent Item is removed (partof=true) | * The field must be removed when the parent Item is removed (partof=true) | ||
+ | |||
+ | <WRAP center round important 100%> | ||
+ | Hybris don't trigger the remove interceptors when updating a partof relations. If a base product is updated with a **subset** of the variants which are on the database, **the missing variants will be removed** and you can't use a remove interceptor to prevent the deletion. This happens on SAP commerce 1905. \\ | ||
+ | To really prevent the removal of products from the database you need a database trigger like the following one for Microsoft SQL Server: | ||
+ | < | ||
+ | return jaloSqlScriptService.runDeleteOrUpdateStatement(" | ||
+ | |||
+ | </ | ||
+ | This code create database trigger preventing any removal of products. It depends on [[https:// | ||
+ | |||
+ | </ | ||
+ | |||
* The field is part of the secondary key and must be **unique** inside the cluster of servers (unique=true). A group of attributes could be unique. The validation is done by Hybris using Java code. As two threads may store two items with the same unique values on the database, you have to use database transactions to be sure that the fields are unique across the cluster of servers | * The field is part of the secondary key and must be **unique** inside the cluster of servers (unique=true). A group of attributes could be unique. The validation is done by Hybris using Java code. As two threads may store two items with the same unique values on the database, you have to use database transactions to be sure that the fields are unique across the cluster of servers | ||
* [[https:// | * [[https:// | ||
Line 312: | Line 324: | ||
====== General Recommendations ====== | ====== General Recommendations ====== | ||
+ | * Please read [[https:// | ||
+ | * Don't use the menu Backoffice > System > Types to modify the Hybris types on runtime because you changes will be lost after an update running system | ||
- | * Please read [[https:// | + | --Based on Hybris 6.5 |
- | + | ||
- | * Don't use the menu HMC > System > Types to modify the Hybris types on runtime because you changes will be lost after an update running system | + | |
- | + | ||
- | \\ Based on Hybris 6.3 | + | |
- | + | ||
- | <!-- | + | |
- | var jcomments=new JComments(64, | + | |
- | jcomments.setList%%(' | + | |
- | %%// | + | |
- | + | ||
- | + | ||
- | === Add comment === | + | |
- | + | ||
- | Name (required) | + | |
- | + | ||
- | | + | |
- | + | ||
- | | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | | + | |
- | + | ||
- | [[# | + | |
- | + | ||
- | [[# | + | |
- | + | ||
- | + | ||
- | + | ||
- | <!-- | + | |
- | function JCommentsInitializeForm() | + | |
- | { | + | |
- | var jcEditor = new JCommentsEditor%%(' | + | |
- | jcEditor.initSmiles%%('/ | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addSmile%%(' | + | |
- | jcEditor.addCounter(1000, | + | |
- | jcomments.setForm(new JCommentsForm%%(' | + | |
- | } | + | |
- | + | ||
- | if (window.addEventListener) {window.addEventListener%%(' | + | |
- | else if (document.addEventListener){document.addEventListener%%(' | + | |
- | else if (window.attachEvent){window.attachEvent%%(' | + | |
- | else {if (typeof window.onload==' | + | |
- | %%// | + | |
- | + | ||
- | + | ||
- | [[http:// | + | |
- | + | ||
- | * You are here: | + | |
- | * [[:|Home]] {{: | + | |
- | * Hybris' | + |