Questions tagged [olingo]

Apache Olingo provides a client and server framework for the Open Data Protocol (OData). It is implemented in Java and supports OData 2.0 and OData 4.0

About

Apache Olingo provides a client and server framework for the Open Data Protocol (OData). It is implemented in Java and supports OData 2.0. OData 4.0, with a JavaScript client for OData 4.0

See also:

252 questions
4
votes
2 answers

missing many-to-one associations in OData Feed (olingo)

I built a OData Producer based on apache olingo, JPA and mySQL following this tutorial While many-to-many associations are displayed within the OData Feed, many-to-one associations are not displayed at all (neither are their JOIN-columns…
Daniel
  • 3,541
  • 3
  • 33
  • 46
3
votes
0 answers

OData v2 - How to filter for Date fields?

Note: I know about this and other question that are similar to this question. But they don't work. I want to send a filter query to Olingo OData v2 service running on Spring Boot. The filter happens on a Date field. After several Googling, and…
KapilDev Neupane
  • 546
  • 3
  • 10
3
votes
1 answer

icCube - developing a java plugin for ODATA, how to debug the server connection?

We are developing a java plugin to make an Odata feed available as a data source using Olingo. There are authorization issues for the specific data provider we want to connect to, but we can not get into the tiny details to debug what is going wrong…
Arthur
  • 1,692
  • 10
  • 14
3
votes
1 answer

Apache olingo basic authentication encoding issue

I am developing OData client with Apache olingo, credentials contains native characters and should be read in UTF-8 for Base64 encoding of "Authorization" header. The first way to go was standard suggested by Olingo: EdmEnabledODataClient client =…
dkane
  • 303
  • 2
  • 15
3
votes
1 answer

OData - $expand on navigation property of non navigation property

For example a simple structure: MyEntity - Property1 (identifier) - Property2 (Complex-Type) - Property3 - NavigationProperty1 - NavigationProperty2 - NavigationProperty3 - NavigationProperty4 I want to query…
PatrickMA
  • 887
  • 9
  • 23
3
votes
3 answers

How to use Apache Olingo behind a proxy

I can successfully reach following OData-service using different browsers and also using Postman even so I am behind a proxy: String SERVICE_ROOT = http://services.odata.org/V4/TripPinService/ However, using Apache Olingo in Java I am not able…
3
votes
1 answer

Using annotations with Apache Olingo for OData v4

I see there is documentation that describes using annotations with Olingo for Odata v2: https://olingo.apache.org/doc/odata2/tutorials/AnnotationProcessorExtension.html So for example, instead of manually creating a provider that details all the EDM…
Mike
  • 791
  • 8
  • 18
3
votes
1 answer

How to create an enum entity type in Olingo OData V4 java API

I have created an enumeration: public enum ROLECATEGORY { LOW ("Low Risk", 0), MEDIUM ("Medium Risk", 1), public final String attrname; public final int value; ROLECATEGORY(String attrname, int value) { this.attrname =…
Tim Malich
  • 1,301
  • 14
  • 22
3
votes
2 answers

to implement OData services, which is better Apache Olingo or OData4j?

I have to publish my entities(Database tables) via OData service protocol using Java. I thoroughly checked the options on OData implementation and found two major libraries as Apache Olingo and OData4J. I could't decide which one is best suitable? I…
Trim Bandaru
  • 83
  • 2
  • 8
3
votes
1 answer

How to set a cookie in OData response Olingo?

I'm using following piece of code to return response. I don't know where I'm missing things, but there is no discussion anywhere related to setting cookies in OData library. ODataResponse resp = EntityProvider.writeFeed(contentType, entitySet,…
pinkpanther
  • 4,770
  • 2
  • 38
  • 62
3
votes
1 answer

Apache Olinge OData service: EdmSimpleTypeException

I am getting EdmSimpleTypeExceptions in some of my entities when i try to access them via OData. I am using Apache Olingo for doing that. The problem is that I can't implement any types other than integer and String. If I use a double I get the…
Tobias Kuess
  • 739
  • 2
  • 14
  • 33
3
votes
1 answer

Olingo greedy $expand

I am using Olingo 1.2 on top of Hibernate. I have a request that returns 250 rows, each row links to another table in a one-to-many relationship. I execute $expand to get all data in the child table, but when I examine the query executed in the…
3
votes
1 answer

How to get id of authenticated user in Olingo ODataServiceFactory

I am trying to read the user id of the user that is calling my OData service. In my web.xml the OData servlet is a protected area EJODataServlet
wombling - Chris Paine
  • 1,651
  • 1
  • 18
  • 17
2
votes
0 answers

Implement $Filter contains() using Olingo odata in java

I'm trying to utilize olingo odata 4 library to implement $filter and specifically contains() logic. We have already implemented our rest APIs with the database. So we don't want to use any other features that olingo odata4 library provides. for…
2
votes
2 answers

Does Java Apache Olingo query the database itself?

In .NET C#, we used Odata to filter, page, sort the database results from SQL database. Odata in .NET would actually go into the database, and query WHERE, ORDER By Filters to database, instead of extracting all the database results, and applying…
mattsmith5
  • 540
  • 4
  • 29
  • 67
1
2
3
16 17