java - Wrong column type on hibernate -
when change hibernate.hbm2ddl.auto value update
tovalidate
, gives me error message:
caused by: org.hibernate.hibernateexception: wrong column type in public.element column phasefroma. found: float4, expected: float
the field referencing is:
@column(nullable = false) @basic private float phasefroma;
and mapped postgresql real type. i've read solution put columndefinition in annotation, doesn't work correctly.
Comments
Post a Comment