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

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

javascript - Create websocket without connecting -

android - Linear layout children not scrolling -