Gwt-ext. Bean to record and record to bean.

Posted by den bardadym on Stack Overflow See other posts from Stack Overflow or by den bardadym
Published on 2010-02-15T22:53:26Z Indexed on 2010/04/15 5:03 UTC
Read the original article Hit count: 219

Filed under:
|
|

I write a RIA application and my JPA beans must be decoded to push it in Store. My decisions are:

  1. Brute Force. If I have property 'aProp' in bean (and getter/setter for it) i create RecordDef, then Record, then Recrod.set('aProp', bean.getAProp()) and so on.. (it is terrible)

  2. I can write generator for creating a Factory of Records (it is my desision and i write it). For example:

    RecordFactory<User> factory = GWT.create(User.class); //User is entity

  3. I now that i need a reflection, BUT GWT have no implementation of reflection (some libraries emulates this, but they builds on generators)

Exists the best way?

Thanks, Den Bardadym.

© Stack Overflow or respective owner

Related posts about gwt-ext

Related posts about gwt