vendredi 27 février 2015

Specifying grails floating point precision in domain object constraint, how?

I how do I say a field is of the following type and precision in grails constraint?



FLOAT(7,4)


In mysql it means it will have value of something like xxx.yyyy, 3 decimal places to the left of dot and four decimal places to the right of the dot.


Aucun commentaire:

Enregistrer un commentaire