@Column (name="AMOUNT")
private BigDecimal amount;
I saw many answers in Stackoverflow, the solution is either using columnDefinition or set the default value in Java contructor.
But what I need is for data query, not table creation or data insertion. When I use hibernate session to query out the object, and call the method getAmount(), it will return null BigDecimal Object, which I want to set the default value to 0 BigDecimal.
How can I do that since the mapping is done by Hibernate framework?