hybris

Hybris widget connection through socket id

夙愿已清 提交于 2020-02-05 03:20:34
问题 I'm trying to create a widget that can communicate with another one through sockets. I've followed the documentation from here but I couldn't understand how their example works. I've created the definition.xml where I've defined the inputs/outputs, mychat.zul and the controller . But I couldn't find anywhere in the platform the tag <widget-connection> to see that the widget is actually connecting the inputs/outputs to something.. or isn't this the purpose of the tag above? I've added the

CatalogVersion with catalogId 'xxxProductCatalog' and version 'Staged' not found

Deadly 提交于 2020-01-16 19:47:19
问题 i follow that tutorial https://wiki.hybris.com/pages/viewpage.action?pageId=294094418&showComments=true first i changed impex names to mystore name. Then i went to hac console and updated only my extension, mystoreinitialdata. But it gives those errors: Creating project data for mystoreinitialdata ... Begin importing common data for [mystoremystoreinitialdata] Begin importing product catalog data for [xxx] Begin importing content catalog data for [xx] Begin synchronizing Product Catalog [xxx]

SAP Hybris的Convertor, Populator, Facade和DTO这几个概念是如何协同工作的

荒凉一梦 提交于 2020-01-13 02:01:09
Hybris里极其重要的概念。 之前的issue谈到了Hybris MVC里的M指的是DTO,JSP作为V显示DTO的value,而DB层的Model和DTO的结构不一致。 那么,数据从DB读取之后,需要经过一个转换,写入到DTO。执行这个转换的role,就是Convertor+Populator。 注:DTO是软件设计里一个common的概念,不是Hybris特有。定义见 wiki Hybris官方定义 (1) Facade: A facade is a software design pattern that abstracts from an underlying implementation and offers an alternate, often reduced and less complex interface. (2) DTO:Data Transfer Objects (DTOs) are objects created to only contain values and have no business logic except for getter and setter methods. Using DTOs, you can “combine” Hybris items - for example, this document adds price-

SAP SADL和SAP Hybris DTO

血红的双手。 提交于 2020-01-11 07:24:31
When you need a simpler or more convenient format for some of the data to display in JSPs 上面是从help.hybris.com摘录出来的原话,解释为什么我们需要DTO. 简单来说,就是因为Service Layer定义的model格式和UI需要的格式不是完全一样,如果UI直接消费Service Layer的model,代码写起来非常难看,而且会产生UI layer和service layer的强耦合。 更general地说,可以把DTO看成SADL的实现方式之一,处于BO(service layer) 和UI layer之间, 作为UI(consumer layer)消费Service layer的桥梁: Hybris的DTO通常以data.java结尾,在我安装的6.5.0.0.23546这一版本里一共有445个DTO: 一个DTO例子: 在CRM Genil layer的实现里,虽然没有明文提出DTO的概念,但是从Genil layer这些方法的signature能看出这种DTO的思路其实也是蕴含在其中的:把数据从genil layer的format CRMT_PRODIL_DATA转换成UI layer的COMT_PRODUCT_MAINTAIN_UI. CL_CRM_PRODIL

SAP Hybris Commerce product读取的调试截图

回眸只為那壹抹淺笑 提交于 2020-01-10 07:58:04
通过debugger观察到Product facade调用ProductService,Service又调用DAO通过flexible search去DB根据product code 358639取数据。 类似SE16,也可以直接在Hybris Admin console里执行执行flexible search: 搜到1条记录: 从DB里取出的product数据和在debugger里观察到的一致。可以看看Hybris里product有哪些重要的field: 要获取更多Jerry的原创文章,请关注公众号"汪子熙": 来源: CSDN 作者: 汪子熙 链接: https://blog.csdn.net/i042416/article/details/103841776

Flexible Search Query UNION

别说谁变了你拦得住时间么 提交于 2020-01-07 07:59:25
问题 I would like to add a UNION to this query , Where exactly Should I put any UNION (doesn't matter the code of the UNION , I just want to know where can I put it) in the following Flexible Search Query (I'm not familiar with the Syntax) SELECT DISTINCT {o:pk} FROM ( {{ SELECT MAX({h.startTime}) AS startTime FROM {CronJobHistory AS h JOIN CronJobResult AS r ON {h.result} = {r.pk} } WHERE {h.cronJobCode} = 'ordersCronJob' AND {r.code} = 'SUCCESS' }} ) LAST, ( {{ SELECT MAX({h.startTime}) AS

Flexible Search Query UNION

有些话、适合烂在心里 提交于 2020-01-07 07:59:13
问题 I would like to add a UNION to this query , Where exactly Should I put any UNION (doesn't matter the code of the UNION , I just want to know where can I put it) in the following Flexible Search Query (I'm not familiar with the Syntax) SELECT DISTINCT {o:pk} FROM ( {{ SELECT MAX({h.startTime}) AS startTime FROM {CronJobHistory AS h JOIN CronJobResult AS r ON {h.result} = {r.pk} } WHERE {h.cronJobCode} = 'ordersCronJob' AND {r.code} = 'SUCCESS' }} ) LAST, ( {{ SELECT MAX({h.startTime}) AS

Hybris Commerce里的持久层

流过昼夜 提交于 2020-01-07 06:35:38
SAP的product都是DB provider无关的,application developer最多用Open SQL直接操作表。 Netweaver里支持的DB provider在这张表DBCON的DBMS字段里能看到: Hybris里也有和CRM WebUI里的API layer起同样作用的layer - API layer, 封装了对DB的操作。 Hybris里类似SAP CRM这种持久层layer的实现是很多以DAO( Data Access Object)结尾的java class完成的,相当于上图SAP CRM Business layer层的function module: 随便点开一个DAO看其实现,里面也是拼SQL然后fire到DB去: Hybris支持下列不同类型的数据库: hybris开发我们一般使用HSQLDB: 一个轻量级的纯Java开发的开放源代码的关系数据库系统 要获取更多Jerry的原创文章,请关注公众号"汪子熙": 来源: CSDN 作者: 汪子熙 链接: https://blog.csdn.net/i042416/article/details/103841802

How can customize addons in hybris?

 ̄綄美尐妖づ 提交于 2020-01-05 08:33:08
问题 I want to customize an existing addon in Hybris by adding and changing some jsp files, but I coudn't find any document how can I do this. I can do this by copying existing addon to custom folder, but I don't know that it is a good solution. 回答1: Why do you want to add files to an existing addon? Why not create a new one with the new functionality? That way you don't have to mess around in hybris' codebase. If you just want to add new functionality, just implement it in a new addon using new

Hybris OOTB bean is not being injected

为君一笑 提交于 2020-01-05 08:29:11
问题 Debugging , I see that the attribute customPopulators of OOTB class: de.hybris.platform.cmsfacades.cmsitems.converter.DefaultCMSItemConverter Isn't being injected (however the other attributes are being injected) despite of being well configured via XML. <alias name="defaultCMSItemConverter" alias="cmsItemConverter"/> <bean name="defaultCMSItemConverter" parent="baseCMSItemConverter"> <property name="attributeStrategyConverter" ref="cmsAttributeStrategyConverter"/> <property name=