For a metadata property such as : 
<Property Name="zipcode" Type="Edm.Double" Nullable="true"/>

when using the org.restlet.ext.odata.Generator tool the generated object 
contains : 

   public double getZipcode() {
      return zipcode;
   }
   public void setZipcode(double zipcode) {
      this.zipcode = zipcode;
   }

which do not allow you to set a zipcode property to null.  This creates a 
problem when using service.addEntity(object) because the default value for zip 
code is 0.0d  I am working with a vendor application which generates exceptions 
when the default value of primative types is 0 vs. null.  I also do not see any 
API methods which could set this value to null. Is there a plan to generate 
java.lang.Double getters/setters which default to null when not explicitly set? 
 What workaround options are available?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2677915

Reply via email to