Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Server side Object mapping

    I am probably missing something obvious....

    Does SmartGWT have a way to map the return values
    from a DSRequest into POJOs on the server side?

    ...
    DSResponse queryResponse = queryRequest.execute();
    List<MyPojo> result = queryResponse.getRecords();

    I am trying to avoid hibernate and spring as it is a simple
    implementation....

    It's pretty much the reverse of JSTranslater.

    #2
    Check out the DataTools class.

    There's also really similar (same?) stuff in apache's BeanUtils lib.

    Comment


      #3
      Thanks atomatom,
      DataTools.setProperties(...) is exactly what I was looking for.
      It's up and running with decent performance...
      This will same me a lot of time...


      Originally posted by atomatom
      Check out the DataTools class.

      There's also really similar (same?) stuff in apache's BeanUtils lib.

      Comment


        #4
        You actually want DataSource.setProperties, which will reverse-apply valueXPaths, traverse nested DataSource declarations, etc.

        Comment

        Working...
        X