OData for java
Ole Aamot
ole at aamotsoftware.no
Wed Sep 22 08:23:06 CEST 2021
Or rather use the generator for Maven according to
https://sap.github.io/cloud-sdk/docs/java/features/odata/generate-typed-odata-v2-and-v4-client-for-java
<plugin>
<groupId>com.sap.cloud.sdk.datamodel</groupId>
<artifactId>odata-v4-generator-maven-plugin</artifactId>
<!-- Please use the latest version here-->
<version>3.XX.X</version>
<executions>
<execution>
<id>generate-consumption</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputDirectory>${project.basedir}/edmx</inputDirectory>
<outputDirectory>${project.build.directory}/vdm</outputDirectory>
<deleteOutputDirectory>true</deleteOutputDirectory>
<packageName>com.mycompany.vdm</packageName>
<defaultBasePath>odata/v4/</defaultBasePath>
<compileScope>COMPILE</compileScope>
<serviceMethodsPerEntitySet>true</serviceMethodsPerEntitySet>
<!-- (Optional) You can add a custom copyright header:
<copyrightHeader>Copyright (c) this year, my company</copyrightHeader>
Or use the SAP copyright header:
<sapCopyrightHeader>true</sapCopyrightHeader>
-->
</configuration>
</execution>
</executions>
</plugin>
—
Ole Aamot
Aamot Software
Mobile phone: +4745049800
Web: www.aamotsoftware.no
> On Sep 22, 2021, at 8:21 AM, Ole Aamot <ole at aamotsoftware.no> wrote:
>
> Looks like you can add this for ODatav4 in pom.xml:
>
> <dependency>
> <groupId>com.sap.cloud.sdk.datamodel</groupId>
> <artifactId>odata-v4-core</artifactId>
> </dependency>
> <dependency>
> <groupId>org.projectlombok</groupId>
> <artifactId>lombok</artifactId>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>javax.inject</groupId>
> <artifactId>javax.inject</artifactId>
> <scope>provided</scope>
> </dependency>
>
> —
> Ole Aamot
> Aamot Software
> Mobile phone: +4745049800
> Web: www.aamotsoftware.no
>
>> On Sep 22, 2021, at 8:06 AM, Thomas Sødring <tsodring at oslomet.no> wrote:
>>
>>
>> I need to study how it is used. I would much prefer to use a library supported by a company than use my own one as "many eyes" are watching that library. Perhaps it could be an interesting project to package that library as a spring library, but I don't have the time to explore and maintain such an approach.
>>
>> Things are a bit quiet with nikita at the moment from my side as teaching commitments are eating all my available time. I have reviewed some pull request and taken them in. That's about it though.
>>
>> Hopefully I can start looking at things again in November.
>>
>> - Thomas
>>
>> On 9/21/21 11:07 PM, Ole Aamot wrote:
>>> On 2021-09-10 07:13, Thomas Sødring wrote:
>>>> Hi,
>>>>
>>>> Recently I stumbled across a SAP OData library that may be worthwhile
>>>> pursuing in nikita.
>>>>
>>>> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsap.github.io%2Fcloud-sdk%2Fdocs%2Fjava%2Ffeatures%2Fodata%2Foverview&data=04%7C01%7Ctsodring%40oslomet.no%7Cf9f76c0916684255d2c608d97d43e206%7Cfec81f12628645508911f446fcdafa1f%7C0%7C0%7C637678552776641011%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=6itwXLLHEEz5DalidvlKJpLzg%2F%2Fl4aRu%2F3IAyaCXqf4%3D&reserved=0
>>>>
>>>> If the licensing is acceptable to the project then I would like to
>>>> explore swapping out our own OData parser to one that is maintained by a
>>>> larger community. It is no secret that OData support has been an
>>>> achilles' heel for nikita. Developing and maintaining OData is in itself
>>>> a large undertaking.
>>>
>>> Can you include this code in Nikita or will it be a external dependency like spring-boot libraries?
>>>
>>> Best,
>>> Ole
>>> --
>>> Ole Aamot
>>> Aamot Software
>>> Mobile phone: +4745049800
>>> Web: https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.aamotsoftware.no%2F&data=04%7C01%7Ctsodring%40oslomet.no%7Cf9f76c0916684255d2c608d97d43e206%7Cfec81f12628645508911f446fcdafa1f%7C0%7C0%7C637678552776641011%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jb0cLsCHyeT14KKt%2BFUHnS98nDihYsSYv9dLssYrTFY%3D&reserved=0
>
More information about the nikita-noark
mailing list