phdmohans / odata4j

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

Allow to export data as ATOM feed entities #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In C#/.NET code it's possible to declare OData entity with following attributes:

    [DataServiceKey("Id", "Version")]
    [EntityPropertyMapping("LastUpdated", SyndicationItemProperty.Updated, SyndicationTextContentKind.Plaintext, keepInContent: false)]
    [EntityPropertyMapping("Id", SyndicationItemProperty.Title, SyndicationTextContentKind.Plaintext, keepInContent: false)]
    [EntityPropertyMapping("Authors", SyndicationItemProperty.AuthorName, SyndicationTextContentKind.Plaintext, keepInContent: false)]
    [EntityPropertyMapping("Summary", SyndicationItemProperty.Summary, SyndicationTextContentKind.Plaintext, keepInContent: false)]

Such declaration of entity object would lead to setting specified properties to 
ATOM entry instead of putting them into <m:Properties> element. On .NET side 
it's required to provide several properties in ATOM part of OData and .NET 
implementation would not check the fields from <m:Properties> element for 
declared object. 

There is no way to make odata4j generate such ATOM response. 

Original issue reported on code.google.com by Eugene.P...@gmail.com on 7 Jan 2012 at 5:11

GoogleCodeExporter commented 9 years ago
Patch with workaround for the issue

Original comment by Eugene.P...@gmail.com on 7 Jan 2012 at 9:11

Attachments:

GoogleCodeExporter commented 9 years ago
For more details, see 
http://www.odata.org/developers/protocols/atom-format#CustomizingtheRepresentati
onofanEntry

Original comment by Eugene.P...@gmail.com on 7 Jan 2012 at 10:54

GoogleCodeExporter commented 9 years ago

Original comment by john.spurlock on 8 Jan 2012 at 5:02

GoogleCodeExporter commented 9 years ago
This issue was closed by revision cf241a7faf89.

Original comment by john.spurlock on 8 Jan 2012 at 5:24

GoogleCodeExporter commented 9 years ago
more fixes for it: 
https://code.google.com/p/odata4j-patches/source/browse/Issue-107.+OAtomEntity

Original comment by Eugene.P...@gmail.com on 13 Jan 2012 at 11:52

GoogleCodeExporter commented 9 years ago
Patch integrated as part of issue 123.

Original comment by john.spurlock on 15 Jan 2012 at 10:11