yhknight / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Consumer-- datetime in Id #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. no problem to create OData Consumer
2. when getEntities, there is problem throws IllegalArgumentException

What is the expected output? What do you see instead?

I want to get these entities but instead:
bad valueString [datetime'2012-09-05T17%3A00%3A00'] as part of keyString 
[FacultyId=1961,StartTime=datetime'2012-09-05T17%3A00%3A00']

What version of the product are you using? On what operating system?
0.7 

Please provide any additional information below.

The entity's id including a datetime argument to decide which entity it is. I 
believe OData4j can't read the datetime but just read it as String so throws 
that exception. 

code snippet: 
ODataConsumer c = ODataConsumers
                .create(rooturl);

        Enumerable<OEntity> thisFaculty = c.getEntities("OfficeHours")
                .execute();

Original issue reported on code.google.com by mydreamw...@gmail.com on 24 Aug 2012 at 4:54

GoogleCodeExporter commented 9 years ago
This was fixed earlier today as part of another change.

Original comment by john.spurlock on 10 Nov 2012 at 7:40