Java Spring数据JPA示例失败,用户缺乏权限[PUBLIC.AUDITABLE\u user]

Java Spring数据JPA示例失败,用户缺乏权限[PUBLIC.AUDITABLE\u user],java,spring,hibernate,jpa,spring-data-jpa,Java,Spring,Hibernate,Jpa,Spring Data Jpa,这个例子来自 jpa\example\src\test\resources\META-INF\persistence.xml <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaL

这个例子来自

jpa\example\src\test\resources\META-INF\persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

    <persistence-unit name="jpa.sample.plain">
        <class>example.springdata.jpa.simple.User</class>   
        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
            <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:spring" />
            <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" />
            <property name="hibernate.connection.username" value="sa" />
            <property name="hibernate.connection.password" value="" />
            <property name="hibernate.hbm2ddl.auto" value="create-drop" /> 
        </properties>
    </persistence-unit>

</persistence>

example.springdata.jpa.simple.User
更新了jpa\pom.xml中的版本后,我仍然看到这个问题,看起来像:

<properties>
    <hibernate.version>5.2.10.Final</hibernate.version>
    <spring.version>4.3.8.RELEASE</spring.version>
</properties>

5.2.10.最终版本
4.3.8.1发布

表(
可审核用户
)对于您的某些类(
用户
)不存在?谢谢!我将深入研究Spring项目和指南,以确定表的构造位置。表(
AUDITABLE\u USER
)对于您的某些类(
USER
)不存在?谢谢!我将深入研究Spring项目和指南,以确定表应该构建在哪里。