【问题标题】:Wrong column type (oracle) Found: number, expected: boolean错误的列类型(oracle)找到:数字,预期:布尔
【发布时间】:2014-08-12 12:48:50
【问题描述】:
  1. 我正在使用 jdk 1.6.45 spring 3.1 hibenate 4 jpa-2 junit 4 和 maven
  2. 当我运行 junit 时
  3. 我收到以下错误

    Issue Description

如果我在持久性 xml 中删除以下行 ..,验证将跳过并正常工作

          <property name="hibernate.hbm2ddl.auto" value="validate" /> 

执行junit验证需要做什么

【问题讨论】:

  • 你见过here吗?

标签: java spring hibernate jpa junit


【解决方案1】:

我已将 org.hibernate.dialect.OracleDialect 更改为 org.hibernate.dialect.Oracle10gDialect

不是,它工作得很完美。

【讨论】:

    猜你喜欢
    • 2013-09-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-08
    • 1970-01-01
    • 2018-04-11
    相关资源
    最近更新 更多