休眠创建 table 但没有影响

hibernate creating table but that have no affect

无法使用休眠创建表。没有错误,日志看起来可以正常工作,但在数据库中没有任何变化。我正在使用 java、hibernate 和 mysql 8. 我使用的方言是:org.hibernate.dialect.MySQL57Dialect。 运行 在 payara5 服务器上。

我的日志:

2020-03-14T19:24:24.884+0100|INFO: GUI deployment: uploadToTempfile
2020-03-14T19:24:24.885+0100|INFO: uploadFileName=LoginCreatorImpl.war
2020-03-14T19:24:24.887+0100|INFO: ================== availabilityEnabled  skipped 
2020-03-14T19:24:26.624+0100|INFO: HHH000204: Processing PersistenceUnitInfo [
    name: test
    ...]
2020-03-14T19:24:26.746+0100|INFO: HHH000412: Hibernate Core {5.3.1.Final}
2020-03-14T19:24:26.749+0100|INFO: HHH000206: hibernate.properties not found
2020-03-14T19:24:26.888+0100|INFO: HCANN000001: Hibernate Commons Annotations {5.0.3.Final}
2020-03-14T19:24:27.104+0100|INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQL57Dialect
2020-03-14T19:24:27.444+0100|INFO: HHH10005002: No explicit CDI BeanManager reference was passed to Hibernate, but CDI is available on the Hibernate ClassLoader.
2020-03-14T19:24:28.179+0100|INFO: Hibernate: 

    drop table if exists NowaEncja
2020-03-14T19:24:28.187+0100|INFO: Hibernate: 

    create table NowaEncja (
       id bigint not null auto_increment,
        test varchar(255),
        primary key (id)
    ) engine=InnoDB
2020-03-14T19:24:28.191+0100|INFO: HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@a061b4a'
2020-03-14T19:24:28.369+0100|INFO: Portable JNDI names for EJB TestBean: [java:global/LoginCreatorImpl/TestBean!eu.pstdio.LoginCreatorImpl.business.dao.TestBean, java:global/LoginCreatorImpl/TestBean]
2020-03-14T19:24:28.663+0100|INFO: Clustered CDI Event bus initialized
2020-03-14T19:24:28.727+0100|INFO: Hibernate: 
    insert 
    into
        NowaEncja
        (test) 
    values
        (?)
2020-03-14T19:24:28.760+0100|INFO: Initializing Soteria 1.1-b01 for context '/LoginCreator'
2020-03-14T19:24:28.793+0100|INFO: Initializing Mojarra 2.3.9.payara-p3 for context '/LoginCreator'
2020-03-14T19:24:29.029+0100|INFO: Loading application [LoginCreatorImpl] at [/LoginCreator]
2020-03-14T19:24:29.175+0100|INFO: LoginCreatorImpl was successfully deployed in 4 205 milliseconds.

我找到了存在问题的地方。由于某些原因,hibernate ingoring 我的 sql 服务器凭据。我通过设置 jta-data-source 解决了这个问题,但我仍然不知道为什么它不想使用 persistence.xml 中设置的凭据。