Java – how to exclude object properties in GWT from serialization?

Is there any way to exclude the original and object properties in serializable objects from GWT serialization?

public class Provider implements Serializable{  
    public Provider() {  
    }  

    //Id like to exclude this property:   
        private String password;  
    //  

    private String address1;  
    private String address2;  
    private String companyName;  
    private String phone;  
}

Solution

I think you're looking for @ gwttransient

Reference: @ gwttransient

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>