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
237
questions
0
votes
0answers
15 views
How to generate the OData (olingo) service with JHipster
Does anyone have experience with how to generate an OData (olingo) (micro)service with JHipster?
many thanks in advance.
1
vote
0answers
78 views
Simple Select-Dropdown for a NavigationProperty
For a current project, we're using Olingo in backend for OData v4 data access and openui5 as frontend framework. We know, that odata v4 is in a more experimental state in openui5 but we're doing not ...
0
votes
0answers
28 views
SharePoint Api - throttling while retrieving many docs (429 TOO MANY REQUESTS)
We need to retrieve all documents from particular bunch of Sites (10 - 50) with their content via Api, but after ~4900 items we receive next exception:
Caused by: java.lang.RuntimeException: Error ...
0
votes
0answers
19 views
Olingo jars JRE11 compatibility
We are using olingo jars in our project and soon moving to JRE11 as Java compiler level.
Can anyone please help me with whether below olingo jars are compatible with JRE11 or not?
org.apache.olingo-...
0
votes
0answers
21 views
How to post data via body(Json) in olingo oData v4 using @EdmFunctionImport function in java spring boot
@EdmFunctionImport(name = "CreateRecord", returnType = @ReturnType(type = Type.SIMPLE , isCollection = false),
httpMethod = HttpMethod.POST)
public String createRecord(@...
0
votes
0answers
28 views
OData Server Authentication on Olingo
I have started the tutorial for OLingo OData V2. Now I would like to authenticate the Server so the user needs to enter a user and password. The idea would be that the client is a website and user ...
1
vote
1answer
31 views
Role management in Olingo JPA oData
I found an Olingo implementation for fetching and modifying data in a database by using OData protocol in this repository.
Now the question is, if we assume I have a mechanism for detecting the user ...
0
votes
0answers
13 views
Can we define an oData entity without any key property but only a navigation property in Spring Boot?
I am tasked with enhancing an existing Spring Boot OData API with another Entity which represents some default configuration values applicable to the tenant. These configurations have corresponding DB ...
0
votes
0answers
9 views
Constructing a ServiceMetadata Java object in Apache Olingo 4 from a JSON object representing Service Metadata
I am using Apache Olingo4 in my spring boot project.
My Entity data model provider logic is expensive and it is costly to create the metadata document. I want to re-use the Metadata Document for ...
0
votes
0answers
32 views
olingo odata v4 tutorial creating new project
I'm trying out odata v4 tutorial, while creating the project it tells to configure artifact as:
olingo odata v4 tutorial
Groupd Id: my.group.id
Artifact Id: DemoService
Version: 4.6.0
Package: ...
0
votes
0answers
32 views
How can I solve olingo odata V2 $filter error?
Hy everyone!
I have an olingo OData V2 service, wich is workng almost perfect. CRUD methods are tested from POSTMAN. It is running on Tomcat, the db is MySQL and the project is in Eclipse.
This is the ...
0
votes
0answers
32 views
Is it possible to limit or filter the expanded items in oData V2?
I have made an oData server with olingo V2 and spring boot!
If I make a call like this:
http://localhost:9090/odata.svc/FormSet?$expand=Questions&$filter=Questions/Deleted eq false
This returns ...
0
votes
0answers
55 views
How to implement Server Side Paging for ODATA v4 using Apache Olingo?
I am implementing an OData v4 service in Java using Apache Olingo. I wanted to implement server side paging but could not find any resource anywhere to help me with this.
I understand that client side ...
0
votes
0answers
160 views
Getting a leak connection with spring-boot and olingo using a hikaricp connection pool
So I found this tutorial on creating an odata service with spring-boot and olingo
https://www.baeldung.com/olingo
But the problem is I'm getting a connection leak. I'm not really an expert when it ...
0
votes
0answers
30 views
Olingo Odata read single entity issue
I have written OData service using olingo frame work. I have a doubt on read single entity.
below URL giving empty result.
http://localhost:8080/dlo_ocs/Adfdlo.srv/MaterialMRPAreas?$filter=Material eq ...
0
votes
0answers
17 views
Apache Olingo - Support both Int and String for property
Whenever declaring complex type and property type - it's possible to declare int or string.
CsdlProperty prop1 = new CsdlProperty()
.setType(EdmPrimitiveTypeKind.String....
2
votes
2answers
95 views
Trying to filter using date on spring-boot olingo odatav2 service but getting gregorian calendar error
I'm trying to do a filter request like so
<Service>/odata/InspectionValidations?$filter=DateAssigned gt datetime'2020-07-23T00:00:00'
but I am getting an
java.util.GregorianCalendar cannot be ...
0
votes
2answers
123 views
Doing a post on spring boot olingo on an entity with a relationship
I have some odata V2 apis built from spring-boot and olingo. I'm trying to a post to an entity with a relationship
public class CompanyProfileDetail {
private Long id;
@NotNull
private ...
1
vote
1answer
39 views
How to handle BLOB and CLOB in olingo v2?
Here there is pseudocode about how to handle BLOB and CLOB in olingo jpa. I added the needed imports to the pseudocode:
package me;
import java.sql.Blob;
import java.sql.Clob;
import java.sql....
0
votes
0answers
15 views
Olingo odata v4 - Implementing readPrimitiveCollection or readComplexCollection?
I am using the sample/server project in Olingo4 as a base for my service, but I hit a problem. I need to implement either the PrimitiveCollection or the ComplexCollection interface.
None of the ...
1
vote
0answers
11 views
OdataV3 implementation in Java
I have implemented OdataV4 service using apache olingo. I am looking for a library that supports OdataV3 implementation. Clearly, apache olingo doesnt provide libraby for V3 yet. Also tried Odata4J ...
1
vote
0answers
39 views
Is it possible to represent a type similar to ArrayList<ArrayList <String>> as as OData Entity?
I'm creating an OData REST Service to provide read-only access to some values in a database, the values are Strings, however there can be an arbitrary amount of Rows and Columns of them. Here is my ...
0
votes
0answers
28 views
Apache olingo Odata Aggregation not working
I am trying to implement aggregation in Odata API's using Apache Olingo, but I can't seem to find any tutorial regarding it. whenever I hit aggregation query I get null in response. I think there is ...
1
vote
1answer
29 views
Get the JPA filed name when we extended the metadata in olingo
Here it has been explained how can we extend metadata of an oData service in olingo V2.
<JPAEntityType name="SalesOrderHeader">
<EDMEntityType>SalesOrder</EDMEntityType>
<...
0
votes
1answer
38 views
Olingo/JPA does not store foreign keys in batch requests
I made an odata service with olingo2, jpa and spring-boot based on this GitHub repository.
I upgraded the version of olingo to 2.0.11 and spring boot to 2.3.0 as I explained here.
I tried to create ...
0
votes
1answer
26 views
How can I modify Edm types in olingo by mapping in Olingo
In MySQL the column that are boolean are modeled via bit(1) or byte(1).
When I am using Olingo/Jpa beside MySQL and generate the entities in the Eclipse, it will assign type byte to these columns. It ...
0
votes
1answer
145 views
Olingo returns DateTime or Timestamp values in a wrong format
I made an odata service with Olingo2/JPA and spring-boot based on this GitHub repository.
The problem is olingo does not return the date/time or timestamp columns in a correct format as defined in ...
0
votes
0answers
17 views
How can I order the properties in $metadata file?
How can I order the properties or fields in the $metadata file in Olingo2?
At the moment there is alphabetic order between the properties inside metadata file.
<EntityType Name="Condition">
...
0
votes
1answer
65 views
Apache Olinge OData service throws EdmSimpleTypeException when the column in database is of type TEXT or BLOB
I have made an entity by using JPA in eclipse. The definition of the table in my MySQL is like this:
CREATE TABLE `users` (
`id` int(255) NOT NULL,
`name` varchar(255) NOT NULL,
`photo_content` ...
1
vote
1answer
261 views
$filter not working in JPA/Olingo 2.0.11 with MySQL
Olingo2 version 2.0.11 has problem with spring-boot-starter-web version 2.0.0 or above!
I made an odata service with olingo2, jpa and spring-boot based on this GitHub repository.
I've set up the ...
0
votes
0answers
52 views
sap-cloud-sdk post - 500
Using the library to make OData calls to a C4C odata API. I have no issues calling GET endpoints,
however, the responses from POST requests fail.
*The post creates the entity in C4C, but the ...
1
vote
0answers
96 views
Olingo v4 + log4j2
I could not find any information about Olingo v4 system logging like spring boot has.
Tutorial includes slf4j, so there must be internal logging in framework
<dependency>
<groupId&...
0
votes
0answers
39 views
Odata olingo 4.4.0 getBody() throwing an error java.lang.IllegalArgumentException: Null link provided
Trying to get data Using Olingo 4.4.0 from URL
- https://services.odata.org/V4/OData/OData.svc/PersonDetails
but getting an error while retrieving body object.
This URL contains 7 entity but ...
0
votes
1answer
51 views
how to authenticate on an odata2 service in java? (Basic Auth)
I'm trying to make a request with java on this OData2 API => https://scihub.copernicus.eu/dhus/odata/v1/ for a project. But I can't without authentication. I have personal logs, as a user I don't have ...
0
votes
0answers
15 views
annotation.getTerm() always returns null
We are using Olingo library in our project to parse the odata metadata.xml. We have a requirement where in we need to compare the term with a specific value. This is piece of code we have written to ...
0
votes
0answers
64 views
Calling Odata Northwind Server with Apache Camel
I try to call up the "Nothwind" example and always get the error that the
<camelContext id="camelId" xmlns="http://camel.apache.org/schema/spring">
<route id="olingoTest">
...
0
votes
1answer
45 views
Update parent and child entities in same PUT and navigation link with olingo2
I have two questions:
1- Is it possible to update a parent entity and its child by single PUT using Olingo2?
2- Is it possible to update a navigation link (many-to-one relationship) of an entity? (ex ...
0
votes
0answers
13 views
How may I use property as parameter in bound function in Olingo 4?
How may I user properties as parameter for bound function? I am using Olingo 4.7
For example, /Sales(123)/Add(p1=salesAmountA, p2=salesAmountB) I want Add function returns addition of salesAmountA and ...
0
votes
0answers
53 views
Olingo OData response to JSON
The returned type of a response of a request is ClientEntitySetIterator
What is the simplest way to convert a response to a JSON string ?
Query builder is getting complex and maintenance issue when ...
0
votes
1answer
103 views
How to get edm data types(odata types) of any crm entity attributes
GET [Organization URI]/api/data/v9.0//EntityDefinitions(LogicalName=account)/Attributes?$select=LogicalName,AttributeType,AttributeOf
This api gives me data types as Picklist,Money etc (crm data ...
0
votes
4answers
2k views
Olingo with Spring Boot
I am using this tutorial and it works for a simple java web application. Now I want to convert it to Spring Boot. I remove the web.xml and add the following two annotations to DemoServlet
@...
1
vote
1answer
223 views
Displaying multiple values in one Olingo property
Sorry if this has been asked already. I haven't found the answer. I have an oData v4 API that builds an Olingo entity collection from a json string that it gets from an internal web service in my ...
1
vote
2answers
165 views
Flutter and external JAR Library: android.os.NetworkOnMainThreadException
Im trying to use olingo with Flutter on Android. I set up my channel and I can call the library but I keep getting this message:
E/AndroidRuntime(28391): FATAL EXCEPTION: main
E/AndroidRuntime(28391)...
0
votes
1answer
270 views
How to read a collection of entities with complex properties in olingo?
I am roughly following this Tutorial from apache olingo page. I want to read a collection of entities that have complex properties.
Setting up the provider, I get the following output when accessing ...
4
votes
1answer
279 views
Bi-directional navigation in OData V4
* I will accept the answer with bounty if it just solves my problem (if you don't have a detailed canonical solution) *
When i try to access the metadata from browser (http://......Service.svc/$...
0
votes
1answer
150 views
How to implement pagination with Apache Olingo V2?
I need to use Apache Olingo V2 to implement an API using pagination. This means that I need to
provide a simple URL for a collection of entities supporting basic $top and $skip operators,
just like ...
1
vote
2answers
256 views
Does an autowired FluentProducerTemplate need to have its headers and body cleared before use within same service?
Autowired FluentProducerTemplate in a service bean will intermittently have a header set from a previous call in another method in the same service bean. I set the CamelOlingo4.keyPredicate is the ...
0
votes
0answers
112 views
Using httpclientBuilder in Apache Camel 2.21.5 Olingo4 component
Spring Boot 1.5.14 app using apache camel 2.21.5 and camel-olingo4 component. It seems to default to using the httpAsyncClientBuilder even though I explicitly set the httpClientBuilder in the ...
1
vote
1answer
112 views
How to expose an odata service for a transient entity
Is it possible to create an odata service (using apache olingo) when we don't have a real persistency i.e., without any DB and table? if yes then how?
2
votes
0answers
172 views
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 ...