alejandro-du / crudui

Automatically generate CRUD-like Vaadin views for any Java Bean
https://vaadin.com/directory#!addon/crud-ui-add-on
Apache License 2.0
86 stars 54 forks source link

Bug: Value's decimal removes when I look at them #85

Closed DanielMartensson closed 3 years ago

DanielMartensson commented 3 years ago

Hi!

I think this is a bug. First I write this value. bild

Then I save. I can see the value. bild

But when I reopen, this happens. bild

Why? It's just a float variable in the entity. Also notice that in the field it's , (comma) and in the CRUD-row, it's . (dot)

alejandro-du commented 3 years ago

It's probably not a bug. It's a float precision issue. Use BigDecimal if you need arbitrary precision.