You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Thierry Templier <te...@yahoo.fr> on 2015/01/06 15:01:16 UTC

Update an entity received from an OData v4 request

Hello,

I try to handle an OData v4 request to update an entity with Olingo. I have a look at the sample application org.apache.olingo.odata-server-tecsvc-4.0.0-beta-02-SNAPSHOT, especially in the class TechnicalEntityProcessor. I saw that several Olingo server interfaces were implemented:
* EntityCollectionProcessor* CountEntityCollectionProcessor* EntityProcessor* MediaEntityProcessor
I'm a bit surprised not to see a method updateEntity in the interface EntityProcessor. Is it normal?
What it's the way to handle an OData v4 request to update an entity with Olingo?
Thanbks very much for your help!Thierry
______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/

Re: Update an entity received from an OData v4 request

Posted by Thierry Templier <te...@yahoo.fr>.
Thanks Christian! I'll have a look very quickly...
Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Mercredi 14 janvier 2015 10h17, "Amend, Christian" <ch...@sap.com> a écrit :
   

 #yiv7159995748 #yiv7159995748 -- _filtered #yiv7159995748 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv7159995748 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv7159995748 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv7159995748 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered #yiv7159995748 {panose-1:2 11 6 3 2 1 2 2 2 4;}#yiv7159995748 #yiv7159995748 p.yiv7159995748MsoNormal, #yiv7159995748 li.yiv7159995748MsoNormal, #yiv7159995748 div.yiv7159995748MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}#yiv7159995748 a:link, #yiv7159995748 span.yiv7159995748MsoHyperlink {color:blue;text-decoration:underline;}#yiv7159995748 a:visited, #yiv7159995748 span.yiv7159995748MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv7159995748 span {}#yiv7159995748 span.yiv7159995748EmailStyle18 {color:#1F497D;}#yiv7159995748 .yiv7159995748MsoChpDefault {font-size:10.0pt;} _filtered #yiv7159995748 {margin:70.85pt 70.85pt 2.0cm 70.85pt;}#yiv7159995748 div.yiv7159995748WordSection1 {}#yiv7159995748 Hi Thierry,    I have started with the work on the ODataDeserializer. The first draft is now in the Repository and should be available with the next SNAPSHOT after the maven build on our Apache Jenkins finishes.     If you are interested you can have a look at it.    You can get access to deserialization by calling OData.newInstance().createDeserializer(JSON)    Best Regards, Christian    From: Bolz, Michael
Sent: Dienstag, 13. Januar 2015 09:37
To: user@olingo.apache.org; Thierry Templier
Cc: Amend, Christian
Subject: Re: Update an entity received from an OData v4 request    * PGP - S/MIME Signed by an unverified key: 13.01.2015 at 09:37:08 Hi Thierry,    contributions are always welcome  ;o)    If I’am remember correctly Christian is already working on OData content deserialization. Perhaps Christian itself can tell his current state and what kind of contribution would help him.    Kind regards, Michael    
On 09 Jan 2015, at 15:53, Thierry Templier <te...@yahoo.fr> wrote:    Hi Michael,    Got it! Thanks!    I have started some works on the OData content deserialization for Olingo (seehttps://issues.apache.org/jira/browse/OLINGO-530). Would you be interested in such contribution?    Thierry   ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/    Le Mercredi 7 janvier 2015 11h09, "Bolz, Michael" <mi...@sap.com> a écrit :    Hi Thierry,    in current SNAPSHOT (available in Apache Maven Repo [1]) there should be an “updateEntity(…)” method in the “EntityProcessor” available (see also code in Git [2]). Perhaps your referenced (or local) maven repo doesn’t have the latest SNAPSHOT version? Because this method was first introduced around the 15th of December.    Kind regards, Michael    [1]: https://repository.apache.org/index.html#nexus-search;gav~~odata-server-api~4.0.0-beta-02-SNAPSHOT~~ [2]: https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=blob;f=lib/server-api/src/main/java/org/apache/olingo/server/api/processor/EntityProcessor.java;h=6e4610b4bb8538bd854083717af251430cbc54da;hb=883c89c140d262a2641fd52525f3fbdd3be56c0c       
On 06 Jan 2015, at 16:57, Thierry Templier <te...@yahoo.fr> wrote:    
Hi Ramesh,    I understand well! I just wanted to be sure that I didn't misunderstand something... So I'll have a deeper look at code for this part...    Thanks! Thierry   ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/    Le Mardi 6 janvier 2015 16h46, Ramesh Reddy <ra...@redhat.com> a écrit :    Thierry,    It is our intention to provide V4 spec fully compatible library, and we are working through it. You can add a JIRA if you do not find one, then if you wish, you can submit patch that some one will review and accept code contribution or wait for further releases.    Thank you.    Ramesh..    
Hello,    I try to handle an OData v4 request to update an entity with Olingo. I have a look at the sample application org.apache.olingo.odata-server-tecsvc-4.0.0-beta-02-SNAPSHOT, especially in the class TechnicalEntityProcessor. I saw that several Olingo server interfaces were implemented:    * EntityCollectionProcessor * CountEntityCollectionProcessor * EntityProcessor * MediaEntityProcessor    I'm a bit surprised not to see a method updateEntity in the interface EntityProcessor. Is it normal?    What it's the way to handle an OData v4 request to update an entity with Olingo?    Thanbks very much for your help! Thierry    ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 
            
   * D046871 <mi...@sap.com>
* Issuer: SAP-AG - Unverified   

   

RE: Update an entity received from an OData v4 request

Posted by "Amend, Christian" <ch...@sap.com>.
Hi Thierry,

I have started with the work on the ODataDeserializer. The first draft is now in the Repository and should be available with the next SNAPSHOT after the maven build on our Apache Jenkins finishes.

If you are interested you can have a look at it.

You can get access to deserialization by calling OData.newInstance().createDeserializer(JSON)

Best Regards,
Christian

From: Bolz, Michael
Sent: Dienstag, 13. Januar 2015 09:37
To: user@olingo.apache.org; Thierry Templier
Cc: Amend, Christian
Subject: Re: Update an entity received from an OData v4 request

* PGP - S/MIME Signed by an unverified key: 13.01.2015 at 09:37:08
Hi Thierry,

contributions are always welcome  ;o)

If I’am remember correctly Christian is already working on OData content deserialization.
Perhaps Christian itself can tell his current state and what kind of contribution would help him.

Kind regards,
Michael

On 09 Jan 2015, at 15:53, Thierry Templier <te...@yahoo.fr>> wrote:

Hi Michael,

Got it! Thanks!

I have started some works on the OData content deserialization for Olingo (see https://issues.apache.org/jira/browse/OLINGO-530). Would you be interested in such contribution?

Thierry

______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/

Le Mercredi 7 janvier 2015 11h09, "Bolz, Michael" <mi...@sap.com>> a écrit :

Hi Thierry,

in current SNAPSHOT (available in Apache Maven Repo [1]) there should be an “updateEntity(…)” method in the “EntityProcessor” available (see also code in Git [2]).
Perhaps your referenced (or local) maven repo doesn’t have the latest SNAPSHOT version?
Because this method was first introduced around the 15th of December.

Kind regards,
Michael

[1]: https://repository.apache.org/index.html#nexus-search;gav~~odata-server-api~4.0.0-beta-02-SNAPSHOT~~
[2]: https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=blob;f=lib/server-api/src/main/java/org/apache/olingo/server/api/processor/EntityProcessor.java;h=6e4610b4bb8538bd854083717af251430cbc54da;hb=883c89c140d262a2641fd52525f3fbdd3be56c0c


On 06 Jan 2015, at 16:57, Thierry Templier <te...@yahoo.fr>> wrote:

Hi Ramesh,

I understand well! I just wanted to be sure that I didn't misunderstand something... So I'll have a deeper look at code for this part...

Thanks!
Thierry

______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/

Le Mardi 6 janvier 2015 16h46, Ramesh Reddy <ra...@redhat.com>> a écrit :

Thierry,

It is our intention to provide V4 spec fully compatible library, and we are working through it. You can add a JIRA if you do not find one, then if you wish, you can submit patch that some one will review and accept code contribution or wait for further releases.

Thank you.

Ramesh..

________________________________
Hello,

I try to handle an OData v4 request to update an entity with Olingo. I have a look at the sample application org.apache.olingo.odata-server-tecsvc-4.0.0-beta-02-SNAPSHOT, especially in the class TechnicalEntityProcessor. I saw that several Olingo server interfaces were implemented:

* EntityCollectionProcessor
* CountEntityCollectionProcessor
* EntityProcessor
* MediaEntityProcessor

I'm a bit surprised not to see a method updateEntity in the interface EntityProcessor. Is it normal?

What it's the way to handle an OData v4 request to update an entity with Olingo?

Thanbks very much for your help!
Thierry

______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/





* D046871 <mi...@sap.com>>
* Issuer: SAP-AG - Unverified


Re: Update an entity received from an OData v4 request

Posted by "Bolz, Michael" <mi...@sap.com>.
Hi Thierry,

contributions are always welcome  ;o)

If I’am remember correctly Christian is already working on OData content deserialization.
Perhaps Christian itself can tell his current state and what kind of contribution would help him.

Kind regards,
Michael

> On 09 Jan 2015, at 15:53, Thierry Templier <te...@yahoo.fr> wrote:
> 
> Hi Michael,
> 
> Got it! Thanks!
> 
> I have started some works on the OData content deserialization for Olingo (see https://issues.apache.org/jira/browse/OLINGO-530 <https://issues.apache.org/jira/browse/OLINGO-530>). Would you be interested in such contribution?
> 
> Thierry
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/ <http://templth.wordpress.com/>
> 
> 
> Le Mercredi 7 janvier 2015 11h09, "Bolz, Michael" <mi...@sap.com> a écrit :
> 
> 
> Hi Thierry,
> 
> in current SNAPSHOT (available in Apache Maven Repo [1]) there should be an “updateEntity(…)” method in the “EntityProcessor” available (see also code in Git [2]).
> Perhaps your referenced (or local) maven repo doesn’t have the latest SNAPSHOT version?
> Because this method was first introduced around the 15th of December.
> 
> Kind regards,
> Michael
> 
> [1]: https://repository.apache.org/index.html#nexus-search;gav~~odata-server-api~4.0.0-beta-02-SNAPSHOT~~ <https://repository.apache.org/index.html#nexus-search;gav~~odata-server-api~4.0.0-beta-02-SNAPSHOT~~>
> [2]: https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=blob;f=lib/server-api/src/main/java/org/apache/olingo/server/api/processor/EntityProcessor.java;h=6e4610b4bb8538bd854083717af251430cbc54da;hb=883c89c140d262a2641fd52525f3fbdd3be56c0c <https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=blob;f=lib/server-api/src/main/java/org/apache/olingo/server/api/processor/EntityProcessor.java;h=6e4610b4bb8538bd854083717af251430cbc54da;hb=883c89c140d262a2641fd52525f3fbdd3be56c0c>
> 
> 
>> On 06 Jan 2015, at 16:57, Thierry Templier <templth@yahoo.fr <ma...@yahoo.fr>> wrote:
>> 
> 
> Hi Ramesh,
> 
> I understand well! I just wanted to be sure that I didn't misunderstand something... So I'll have a deeper look at code for this part...
> 
> Thanks!
> Thierry
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/ <http://templth.wordpress.com/>
> 
> 
> Le Mardi 6 janvier 2015 16h46, Ramesh Reddy <rareddy@redhat.com <ma...@redhat.com>> a écrit :
> 
> 
> Thierry,
> 
> It is our intention to provide V4 spec fully compatible library, and we are working through it. You can add a JIRA if you do not find one, then if you wish, you can submit patch that some one will review and accept code contribution or wait for further releases.
> 
> Thank you.
> 
> Ramesh..
> 
> Hello,
> 
> I try to handle an OData v4 request to update an entity with Olingo. I have a look at the sample application org.apache.olingo.odata-server-tecsvc-4.0.0-beta-02-SNAPSHOT, especially in the class TechnicalEntityProcessor. I saw that several Olingo server interfaces were implemented:
> 
> * EntityCollectionProcessor
> * CountEntityCollectionProcessor
> * EntityProcessor
> * MediaEntityProcessor
> 
> I'm a bit surprised not to see a method updateEntity in the interface EntityProcessor. Is it normal?
> 
> What it's the way to handle an OData v4 request to update an entity with Olingo?
> 
> Thanbks very much for your help!
> Thierry
> 
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/ <http://templth.wordpress.com/>
> 
> 
> 
> 
> 
> 


Re: Update an entity received from an OData v4 request

Posted by Thierry Templier <te...@yahoo.fr>.
Hi Michael,
Got it! Thanks!
I have started some works on the OData content deserialization for Olingo (see https://issues.apache.org/jira/browse/OLINGO-530). Would you be interested in such contribution?
Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Mercredi 7 janvier 2015 11h09, "Bolz, Michael" <mi...@sap.com> a écrit :
   

 Hi Thierry,
in current SNAPSHOT (available in Apache Maven Repo [1]) there should be an “updateEntity(…)” method in the “EntityProcessor” available (see also code in Git [2]).Perhaps your referenced (or local) maven repo doesn’t have the latest SNAPSHOT version?Because this method was first introduced around the 15th of December.
Kind regards,Michael
[1]: https://repository.apache.org/index.html#nexus-search;gav~~odata-server-api~4.0.0-beta-02-SNAPSHOT~~[2]: https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=blob;f=lib/server-api/src/main/java/org/apache/olingo/server/api/processor/EntityProcessor.java;h=6e4610b4bb8538bd854083717af251430cbc54da;hb=883c89c140d262a2641fd52525f3fbdd3be56c0c


On 06 Jan 2015, at 16:57, Thierry Templier <te...@yahoo.fr> wrote:

Hi Ramesh,
I understand well! I just wanted to be sure that I didn't misunderstand something... So I'll have a deeper look at code for this part...
Thanks!Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Mardi 6 janvier 2015 16h46, Ramesh Reddy <ra...@redhat.com> a écrit :
   

 Thierry,
It is our intention to provide V4 spec fully compatible library, and we are working through it. You can add a JIRA if you do not find one, then if you wish, you can submit patch that some one will review and accept code contribution or wait for further releases.
Thank you.
Ramesh..

Hello,

I try to handle an OData v4 request to update an entity with Olingo. I have a look at the sample application org.apache.olingo.odata-server-tecsvc-4.0.0-beta-02-SNAPSHOT, especially in the class TechnicalEntityProcessor. I saw that several Olingo server interfaces were implemented:
* EntityCollectionProcessor* CountEntityCollectionProcessor* EntityProcessor* MediaEntityProcessor
I'm a bit surprised not to see a method updateEntity in the interface EntityProcessor. Is it normal?
What it's the way to handle an OData v4 request to update an entity with Olingo?
Thanbks very much for your help!Thierry
______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/



    


   

Re: Update an entity received from an OData v4 request

Posted by "Bolz, Michael" <mi...@sap.com>.
Hi Thierry,

in current SNAPSHOT (available in Apache Maven Repo [1]) there should be an “updateEntity(…)” method in the “EntityProcessor” available (see also code in Git [2]).
Perhaps your referenced (or local) maven repo doesn’t have the latest SNAPSHOT version?
Because this method was first introduced around the 15th of December.

Kind regards,
Michael

[1]: https://repository.apache.org/index.html#nexus-search;gav~~odata-server-api~4.0.0-beta-02-SNAPSHOT~~ <https://repository.apache.org/index.html#nexus-search;gav~~odata-server-api~4.0.0-beta-02-SNAPSHOT~~>
[2]: https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=blob;f=lib/server-api/src/main/java/org/apache/olingo/server/api/processor/EntityProcessor.java;h=6e4610b4bb8538bd854083717af251430cbc54da;hb=883c89c140d262a2641fd52525f3fbdd3be56c0c <https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=blob;f=lib/server-api/src/main/java/org/apache/olingo/server/api/processor/EntityProcessor.java;h=6e4610b4bb8538bd854083717af251430cbc54da;hb=883c89c140d262a2641fd52525f3fbdd3be56c0c>


> On 06 Jan 2015, at 16:57, Thierry Templier <te...@yahoo.fr> wrote:
> 
> Hi Ramesh,
> 
> I understand well! I just wanted to be sure that I didn't misunderstand something... So I'll have a deeper look at code for this part...
> 
> Thanks!
> Thierry
>  
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/ <http://templth.wordpress.com/>
> 
> 
> Le Mardi 6 janvier 2015 16h46, Ramesh Reddy <ra...@redhat.com> a écrit :
> 
> 
> Thierry,
> 
> It is our intention to provide V4 spec fully compatible library, and we are working through it. You can add a JIRA if you do not find one, then if you wish, you can submit patch that some one will review and accept code contribution or wait for further releases.
> 
> Thank you.
> 
> Ramesh..
> 
> Hello,
> 
> I try to handle an OData v4 request to update an entity with Olingo. I have a look at the sample application org.apache.olingo.odata-server-tecsvc-4.0.0-beta-02-SNAPSHOT, especially in the class TechnicalEntityProcessor. I saw that several Olingo server interfaces were implemented:
> 
> * EntityCollectionProcessor
> * CountEntityCollectionProcessor
> * EntityProcessor
> * MediaEntityProcessor
> 
> I'm a bit surprised not to see a method updateEntity in the interface EntityProcessor. Is it normal?
> 
> What it's the way to handle an OData v4 request to update an entity with Olingo?
> 
> Thanbks very much for your help!
> Thierry
> 
> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/ <http://templth.wordpress.com/>
> 
> 
> 


Re: Update an entity received from an OData v4 request

Posted by Thierry Templier <te...@yahoo.fr>.
Hi Ramesh,
I understand well! I just wanted to be sure that I didn't misunderstand something... So I'll have a deeper look at code for this part...
Thanks!Thierry ______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/ 

     Le Mardi 6 janvier 2015 16h46, Ramesh Reddy <ra...@redhat.com> a écrit :
   

 Thierry,
It is our intention to provide V4 spec fully compatible library, and we are working through it. You can add a JIRA if you do not find one, then if you wish, you can submit patch that some one will review and accept code contribution or wait for further releases.
Thank you.
Ramesh..

Hello,

I try to handle an OData v4 request to update an entity with Olingo. I have a look at the sample application org.apache.olingo.odata-server-tecsvc-4.0.0-beta-02-SNAPSHOT, especially in the class TechnicalEntityProcessor. I saw that several Olingo server interfaces were implemented:
* EntityCollectionProcessor* CountEntityCollectionProcessor* EntityProcessor* MediaEntityProcessor
I'm a bit surprised not to see a method updateEntity in the interface EntityProcessor. Is it normal?
What it's the way to handle an OData v4 request to update an entity with Olingo?
Thanbks very much for your help!Thierry
______________________________________________
-- Take a look at my blog: http://templth.wordpress.com/



   

Re: Update an entity received from an OData v4 request

Posted by Ramesh Reddy <ra...@redhat.com>.
Thierry, 

It is our intention to provide V4 spec fully compatible library, and we are working through it. You can add a JIRA if you do not find one, then if you wish, you can submit patch that some one will review and accept code contribution or wait for further releases. 

Thank you. 

Ramesh.. 

----- Original Message -----

> Hello,

> I try to handle an OData v4 request to update an entity with Olingo. I have a
> look at the sample application
> org.apache.olingo.odata-server-tecsvc-4.0.0-beta-02-SNAPSHOT, especially in
> the class TechnicalEntityProcessor. I saw that several Olingo server
> interfaces were implemented:

> * EntityCollectionProcessor
> * CountEntityCollectionProcessor
> * EntityProcessor
> * MediaEntityProcessor

> I'm a bit surprised not to see a method updateEntity in the interface
> EntityProcessor. Is it normal?

> What it's the way to handle an OData v4 request to update an entity with
> Olingo?

> Thanbks very much for your help!
> Thierry

> ______________________________________________
> -- Take a look at my blog: http://templth.wordpress.com/