Is there an easy way to send pojos from the client to the server.
For example,
DataSource dsCalendar = new DataSource("mydatasource");
MyBean mb = new MyBean();
mb.setId(33);
mb.setFoo("foo");
dsCalendar.updateData(mb, new DSCallback() {
.....
This without the need to have a Record type object on the client
and a pojo on the server.
The server side is easy...
@Override
public DSResponse executeFetch(DSRequest dsRequest) throws Exception {
MyBean mb = new MyBean ();
DataTools.setProperties(dsRequest.getValues(), mb);
.....
For example,
DataSource dsCalendar = new DataSource("mydatasource");
MyBean mb = new MyBean();
mb.setId(33);
mb.setFoo("foo");
dsCalendar.updateData(mb, new DSCallback() {
.....
This without the need to have a Record type object on the client
and a pojo on the server.
The server side is easy...
@Override
public DSResponse executeFetch(DSRequest dsRequest) throws Exception {
MyBean mb = new MyBean ();
DataTools.setProperties(dsRequest.getValues(), mb);
.....