chandransalem / odata4j

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

Feed field atom/entry/title is not displayed #204

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
//OEntities.create(entitySet, entityType, entityKey, properties, links, title, 
categoryTerm)        
olist.add(OEntities.create(entitySet, 
(EdmEntityType)ds.findEdmEntityType("Subscriber"), 
    OEntityKey.create(s.getId()), props, null, s.getCompanyName(), null));

Responses.entities(olist, entitySet, subscribers.size(), null);

What is the expected output? 
<entry>
<id>http://localhost:.../Subscribers(1)</id>
<title type="text">Abc</title>
<updated>2012-08-08T03:24:40Z</updated>
<author>
<name/>
</author>
...

What do you see instead?
<entry>
<id>http://localhost:.../Subscribers(1)</id>
<title type="text"/>
<updated>2012-08-08T03:24:40Z</updated>
<author>
<name/>
</author>
...

What version of the product are you using? On what operating system?
0.6.0, Win7

Please provide any additional information below.

Original issue reported on code.google.com by daniel.t...@gmail.com on 8 Aug 2012 at 3:53

GoogleCodeExporter commented 8 years ago
I just know how to set the title, updated and author.

    OAtomEntity oe = new OAtomEntity(){

        @Override
        public String getAtomEntityTitle() {
            return "test-title";
        }

        @Override
        public String getAtomEntitySummary() {
            return null;
        }

        @Override
        public String getAtomEntityAuthor() {
            return "test-author";
        }

        @Override
        public LocalDateTime getAtomEntityUpdated() {
            Date startingDate = new Date();
            GregorianCalendar gc = new GregorianCalendar();
            gc.setTime(startingDate);
            gc.add(Calendar.DAY_OF_YEAR, -1);
            Date result = gc.getTime();
            return new LocalDateTime(result);
        }

    };
    olist.add(OEntities.create(entitySet, OEntityKey.create(user.getId()), propsUser, new ArrayList<OLink>(), oe));

Original comment by daniel.t...@gmail.com on 10 Sep 2012 at 10:52