Hibernate: Found: float, expected: double precision

前端 未结 8 1437
清歌不尽
清歌不尽 2020-12-16 21:28

I have a problem with the mapping of Oracle Float double precision datatype to Java Double datatype. The hibernate schema validator seems to fail when the Java Double dataty

8条回答
  •  情书的邮戳
    2020-12-16 21:54

    If you are using Annotation method, you need to declare column type as below for the field.

    @Column(name = "PERFORMANCE", columnDefinition = "FLOAT(5,2)")
    private double performance;
    

提交回复
热议问题