I have several Java classes with double fields that I am persisting via Hibernate. For example, I have
@Entity public class Node ... private double value
Use 'scale' attribute on your member.