本文介绍了SAP Hana开发中的OData与XSJS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SAP Hana studio开发应用程序,我对为什么要使用XSODATA和为什么要使用XSJS感到困惑.为什么不能仅使用XSODATA文件执行所有数据库事务?我得到XSJS是在服务器端的,但是如果我正在执行基本的CRUD操作,我可以只使用XSODATA吗?

I am developing an application using SAP Hana studio and I am confused on why I would use XSODATA and why I would use XSJS. Why can't I just use a XSODATA file to perform all of my database transactions? I get XSJS is server-side, but if I am doing basic CRUD operations could I just use XSODATA?

一个相关的问题,是否可以在SAP Hana studio中创建XSODATA文件并从那里正常工作?我问的原因是因为必须在网关服务构建器中创建服务并将URL提供给应用程序才能访问它.但是现在我假设一切都在hana studio上完成了,除此之外不需要做任何事情.

A related question, would the XSODATA file be create in SAP Hana studio and work fine from there? The reason I ask is because before I had to create a service in Gateway service builder and provide the URL to the application to access it. But now I am assuming everything is done on hana studio and there's no need to do anything beside this.

推荐答案

您是对的.如果您只需要数据库上的CRUDQ,则可以使用XSODATA. XSJS应该用于非CRUD操作(例如,自定义处理操作,文件上传等).

You are right. If all you need is CRUDQ on the database, then XSODATA is the way to go. XSJS should be used for non-CRUD operations (e.g. custom processing operations, file uploads, etc).

是的,您可以直接在HANA工作室或基于Web的工作台中创建它.当您拥有Netweaver系统(不一定是HANA系统)并且要从那里公开一些业务实体时,将使用网关.它们是两种不同的技术(Netweaver与HANA XS Classic),具有不同的使用场景(尽管您可以在某些情况下将它们组合在一起).

And yes, you can create it directly in the HANA studio or in the Web Based Workbench. The Gateway is used when you have a Netweaver system (not necessarily a HANA system) and you want to expose some business entities from there. They are two distinct technologies (Netweaver vs HANA XS Classic) with different usage scenarios (albeit you can combine them in some cases).

这篇关于SAP Hana开发中的OData与XSJS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 21:04