“字段列表”中的未知列“ * _._ ebean_intercept”

时间:2018-12-28 13:22:45

标签: playframework ebean

当我尝试执行以下代码时,我将Play 2.6.7应用程序升级为可以播放2.7.0-R8,并得到JPAApi的错误“未知字段'* _._ ebean_intercept'在'字段列表'中”“ >

jpaApi.withTransaction(entityManager -> {

        Query query = entityManager.createQuery(hql, modelClass);
        return query.getResultList();

    });

我的依赖性:

  • sbt插件-2.7.0-RC8
  • sbt-play-ebean-5.0.0-RC2“
  • 休眠核心-5.4.0。最终版
  • hibernate-entitymanager-5.4.0.Final

persistence.xml

<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
         version="2.1">

<persistence-unit name="defaultPersistenceUnit" transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
    <non-jta-data-source>DefaultDS</non-jta-data-source>
    <properties>
        <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
    </properties>
</persistence-unit>

</persistence>

请帮助!

1 个答案:

答案 0 :(得分:1)

尝试将Ebean升级到最新版本