Announcement

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

  • SmartGWT Bean-like Record Generator

    I like the pattern

    Code:
    class Person extends Record implements PersonInterface {
    
       String getName(){ return getAttribute("name"); } 
    
       Integer getAge(){ return getAttributeAsInteger("age"); }
    
       void setAge(Integer age){ setAttribute("age",age); } 
    
       ... 
    }
    This makes for some pretty usable GWT code. What I'd like is for this kind of code to be generated for me. The generator would be pointed at a datasource definition and then output java source.

    It would be nice to specify an interface or superclass as well. This would allow client code to use Record stored data as if it were a POJO - so all that server validation logic/etc could be shared on client and server.
Working...
X