I know there are plenty of these questions here on SO and also on the net, but all the answers suggest using columnDefinition which is database specific and hen
columnDefinition
Following is working for me.
@ColumnDefault("'0.0'")
@Column(name = "avgRating")
private float avgRating;