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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -