#197 date-format not honored for collection element

Dozer v5.1
closed-fixed
5
2009-06-08
2009-05-19
No

<field>
<a>
publishDate
</a>
<b date-format="yyyy-MM-dd HH:mm:ss">
newsML.newsItem[0].newsComponent.newsLines.dateLines[0].content[0]
</b>
</field>

This mapping works as if there were no date-format specified.

<field>
<a>
publishDate
</a>
<b date-format="yyyy-MM-dd HH:mm:ss">
newsML.newsItem[0].newsComponent.newsLines.dateLines[0].dateString
</b>
</field>
This works fine.

Discussion

  • Oleg Aleshko

    Oleg Aleshko - 2009-05-19
    • labels: --> Mapping Issue
     
  • dmitry (lv)

    dmitry (lv) - 2009-06-03

    Hi,

    The workaround is to define b-hint telling Dozer that you want String object explicitly. In this way conversion does happen. Working on a better solution for your problem.

    Thanks for the report,
    Dmitry

     
  • dmitry (lv)

    dmitry (lv) - 2009-06-03
    • milestone: --> Dozer v5.1
    • assigned_to: nobody --> buzdin
     
  • dmitry (lv)

    dmitry (lv) - 2009-06-08
    • status: open --> closed
     
  • dmitry (lv)

    dmitry (lv) - 2009-06-08

    resolved in trunk

     
  • dmitry (lv)

    dmitry (lv) - 2009-06-08
    • status: closed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks