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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -