简体   繁体   English

Hybris 树液使用 Spring?

[英]Hybris sap use Spring?

I all,我都,

I have experience with oracle atg and now i want to merge to hybris sap, so i have some questions about hybris.我有使用 oracle atg 的经验,现在我想合并到 hybris sap,所以我有一些关于 hybris 的问题。

For development, does hybris uses spring, that means when i develop an hybris application do i use spring ioc, spring mvc and spring security (@autowired, @controller, @service...) or just like atg the usage of spring is done in the background and when i use angular with hybris do i have to use spring (@RESTController) and for data access do i have to use hibernate or does it have his own methods?对于开发,hybris 是否使用 spring,这意味着当我开发 hybris 应用程序时,我是使用 spring ioc、spring mvc 和 spring 安全性(@autowired、@controller、@service...)还是就像 atg 一样使用 spring在后台,当我将 angular 与 hybris 一起使用时,我是否必须使用 spring (@RESTController) 并且对于数据访问,我是否必须使用 hibernate 还是它有自己的方法? And do we have to use spring boot and spring data with it?我们是否必须使用 spring boot 和 spring 数据?

I haven't got knowledge about oracle ATG.我对 oracle ATG 一无所知。 Hybris is a platform which has a lot of module. Hybris 是一个有很多模块的平台。 Some modules developed with spring (xml based config), for example web services and customer ui (store front).一些使用 spring(基于 xml 的配置)开发的模块,例如 Web 服务和客户 ui(店面)。 Hybris has own ORM, so spring data not used. Hybris 有自己的 ORM,所以没有使用 spring 数据。 Hybris using a lot of technologies, some of them: Hybris 使用了很多技术,其中一些:

  • Spring春天
  • Apache Solr阿帕奇Solr
  • ZK Framework零知识框架
  • Apache Ant阿帕奇蚂蚁
  • Apache Tomcat Apache Tomcat
  • Junit朱尼特
  • JQuery查询

Also we use a lot of languages for this technologies:此外,我们为这项技术使用了很多语言:

  • Html html
  • Java爪哇
  • Javascript Javascript
  • Flex Query弹性查询
  • Bean shell豆壳
  • Groovy常规
  • Jsp jsp
  • Lucene琉森
  • Cron定时任务

You can use other frameworks look like React for store front with developing custom controls.您可以使用其他类似于 React 的框架来开发自定义控件。 But hybris has a lot of out of the box functions for managing ui and customization on the fly.但是 hybris 有许多开箱即用的功能,可用于即时管理 ui 和自定义。 These functionalities may be not usable with different framework or it needs a lot of work.这些功能可能不适用于不同的框架或需要大量工作。

I don't know about ATG, but in hybris there are many modules using which you can quickly setup a live production website within 4-6 months.我不知道 ATG,但在 hybris 中有许多模块,您可以使用它们在 4-6 个月内快速建立一个实时制作网站。

Front-End:前端:

  • JSP, JSTL, EL JSP、JSTL、EL
  • Javascript, HTML, CSS Javascript、HTML、CSS
  • Bootstrap引导程序
  • jQuery jQuery

Backend:后端:

  • Java for handling and writing the logic用于处理和编写逻辑的 Java
  • Spring Core, Spring MVC, Spring Security Spring 核心、Spring MVC、Spring 安全
  • Spring EL弹簧EL

Database :数据库

More than 6 databases are supported: - SAP - HANA - HSQLDB - MySQL - SQL Server - Oracle - PostgreSQL and many are added支持 6 个以上的数据库:- SAP - HANA - HSQLDB - MySQL - SQL Server - Oracle - PostgreSQL 并且添加了许多数据库


For searching:用于搜索:

Hybris has its own search engine. Hybris 有自己的搜索引擎。

Lucene, Apache Solr Lucene、Apache Solr

Now you can use Google cloud search as well.现在您也可以使用 Google 云搜索。


For scripting:对于脚本:

  • beanshell豆壳
  • JavaScript JavaScript
  • Groovy常规

Please keep an eye on the Hybris Commerce roadmap.请密切关注 Hybris Commerce 路线图。 Thin Angular.JS based UI is probably the future.基于 Angular.JS 的薄 UI 可能是未来。

UI development is typically done in Hybris Commerce using the Hybris Commerce WCMS framework, and extending or creating new pages, widgets, etc. The stuff provided out-of-the-box in accelerators and extensions is very feature rich. UI 开发通常在 Hybris Commerce 中使用 Hybris Commerce WCMS 框架完成,并扩展或创建新页面、小部件等。加速器和扩展中提供的开箱即用的东西功能非常丰富。 Angular is already in there, if you know where to look.如果你知道在哪里看,Angular 已经在那里了。

Hybris Commerce also provides OCC (Omni Commerce Connect) REST API extension. Hybris Commerce 还提供 OCC(Omni Commerce Connect)REST API 扩展。 REST endpoints are automatically generated at compile time. REST 端点在编译时自动生成。 This is very mature, and has been the primary integration strategy for native mobile commerce apps and separate digital asset management (DAM) tools.这是非常成熟的,并且一直是原生移动商务应用程序和独立数字资产管理 (DAM) 工具的主要集成策略。

More ideas: https://hybrismart.com/2016/09/03/angularjs-v-2-and-hybris/更多想法: https : //hybrismart.com/2016/09/03/angularjs-v-2-and-hybris/

The basis of Hybris is mostly spring mvc, so yes, you can use spring mvc annotations for mapping, mostly all the code in hybris is done using the spring standard, including autowiring, annotations and xml files. Hybris 的基础主要是 spring mvc,所以是的,你可以使用 spring mvc annotations 进行映射,hybris 中的所有代码大部分都是使用 spring 标准完成的,包括自动装配、注释和 xml 文件。 Unlike ATG where you have formhandlers, droplets etc to deal with UI and backend connection, Hybris uses the facade design pattern.与 ATG 不同,ATG 使用表单处理程序、液滴等来处理 UI 和后端连接,Hybris 使用外观设计模式。 That is,也就是说,

  • You have a facade layer that acts as a sort of barrier between your request handling logic and your service logic.您有一个外观层,它充当请求处理逻辑和服务逻辑之间的某种屏障。
  • Therefore, variables used in the service layer (Model Objects) are not carried forward to the request handling layer and separate variables are used (Data Objects)因此,服务层中使用的变量(模型对象)不会被传递到请求处理层,而是使用单独的变量(数据对象)

Regarding database, Hybris has its own ORM, and they are called as Models and items, the concept is similar to repositories in ATG.关于数据库,Hybris 有自己的 ORM,它们被称为模型和项,概念类似于 ATG 中的存储库。 For example, to create a new item entry, add the same to an items.xml file, providing the name of the model, the table used for persisting and the various attributes (corresponding to the fields in the table).例如,要创建一个新的条目条目,将相同的条目添加到 items.xml 文件,提供模型的名称、用于持久化的表和各种属性(对应于表中的字段)。 So when you run ant all for building your application, Hybris uses this mapping to create a model class for your item, this is basically a pojo class, that has getters and setters for all your attributes.所以当你运行 ant all 来构建你的应用程序时,Hybris 使用这个映射为你的项目创建一个模型类,这基本上是一个 pojo 类,它具有所有属性的 getter 和 setter。 So if you save a model object, you will be persisting the data in the database.所以如果你保存一个模型对象,你将把数据保存在数据库中。

To query the data, there is a special query language called as flexible search,it is nearly same as sql but with a few syntax differences, so instead of querying tables, you query items, much like using RQL in ATG.为了查询数据,有一种称为灵活搜索的特殊查询语言,它与 sql 几乎相同,但有一些语法差异,因此不是查询表,而是查询项目,就像在 ATG 中使用 RQL 一样。 You can also access data using model objects.您还可以使用模型对象访问数据。

Relations too can be created using items.也可以使用项目创建关系。

Hope this gives you a more clearer picture.希望这能给你一个更清晰的画面。

to Start with Hybris, you need to be good at java,jsp,html,css.要开始使用 Hybris,你需要擅长 java、jsp、html、css。 And framework such as Spring and Hibernate.以及Spring、Hibernate等框架。 Last but not the least:you should good in any Query language,which helps you lot while coding in Hybris, because hybris have there own language called as Flexible Search Query .最后但并非最不重要的一点:你应该擅长任何查询语言,这对你在 Hybris 中编码有很大帮助,因为 hybris 有自己的语言,称为灵活搜索查询

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM