for the gwt compiler. By doing this i can use the same pojo on client
and server side where the transient methods will be ignored on the
client side.
An Example:
package bla.bla.dto.basemodel;
import com.extjs.gxt.ui.client.data.BaseModelData;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class EntityBase extends BaseModelData {
public EntityBase() {
}
public Long getPk() {
return get("pk");
}
public void setPk(Long pk) {
set("pk", pk);
}
@GWTTransient
private void writeObject(ObjectOutputStream out) throws
IOException {
out.defaultWriteObject();
...
}
@GWTTransient
private void readObject(ObjectInputStream in) throws IOException,
ClassNotFoundException {
in.defaultReadObject();
...
}
}
Regards
Christie
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment