title: Bigdecimal parsed to Double in Properties?
body: <p>I'm rewriting the core of one of my apps, and one of the major change is migrating my entities to <code>PropertyBusinessObjects</code>.</p>
  
  <p>I've coded a little tool to write <code>PropertyBusinessObjects</code> from my server side <code>JPAEntities</code> to limit the time taken by stupid copy pasting and leverage my workload, so nearly all my CN1 entities are rewritten to PBO. </p>
  
  <p>In order to not rewrite all of the code which was using <code>classic getters/setters</code>, I've added the creation of <code>pseudo getter/setters</code> to my generation code to obtain this kind of result :</p>
  
  <pre><code>protected Property&lt;String, Product&gt; reference = new Property&lt;&gt;("reference");
  public String getReference() {
      return this.reference.get();
  }
  
  public void setReference(String reference) {
      this.reference.set(reference);
  }
  </code></pre>
  
  <p>The result is nearly perfect, but I've run into some troubles when it comes to <code>BigDecimal</code>. Our app is an ERP client (mainly a consultation app which is combined with a much bigger webapp), so when it come to price values and so on, we need high precision, which lead us to <code>BigDecimals</code> years ago.</p>
  
  <p>When I retrieve my entities from the server, everything goes well, all is read by the <code>getAsProperties</code> from the <code>RequestBuilder</code> without any exceptions. But when it goes through my "getter", the call throws a <code>ClassCastException</code>. It appears that the parsed value for the <code>BigDecimals</code> are <code>Doubles</code>, so it sets my <code>Property&lt;BigDecimal, Product&gt;</code> with a <code>Double</code> value instead of a <code>BigDecimal</code> which later cause <code>ClassCastExceptions</code>.</p>
  
  <p>Here is an exemple of <code>BigDecimal</code> property and its getter/setter :</p>
  
  <pre><code>protected Property&lt;BigDecimal, Product&gt; priceBuy = new Property&lt;&gt;("priceBuy", BigDecimal.class);
  public BigDecimal getPriceBuy() {
      return this.priceBuy.get();
  }
  
  
  public void setPriceBuy(BigDecimal priceBuy) {
      this.priceBuy.set(priceBuy);
  }
  </code></pre>
  
  <p>Any idea or leads to resolve this matter ?</p>