title: which datatype is used for sum(amount) ,that amount in negative values
body: <p>I was retrieved data from database like sum(amount) it shows negative values like -12447904888.15, that amount column data type is double in sql. In java we can declared that column into Bigdecimal datatype while running this i have an error java.lang.double cant convert into java .math.decimal so how to fix it </p>
  
  <pre><code>public List&lt;Chart&gt; showchartPage(String bankname) {
    return applicationLabelDao.createShowChart(bankname)
      .stream()
      .map(data -&gt; new Chart((String) data[0], (BigDecimal) data[1]))
      .collect(Collectors.toList());
  }
  </code></pre>