Wow! I checked repo and code from your link and attempt use…
So, test worked fine, and, after, i used persistence.xml in my project (for my test-db, user, driver, pass).
And it now working without trouble in “update”-mode!
persistance.xml
<persistence-unit name="test_ast_db_2" transaction-type="RESOURCE_LOCAL">
<description>Hibernate test case template Persistence Unit</description>
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.archive.autodetection" value="class, hbm"/>
<!--<property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>-->
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL57Dialect"/>
<!--<property name="hibernate.connection.driver_class" value="org.h2.Driver"/>-->
<property name="hibernate.connection.driver_class" value="com.mysql.cj.jdbc.Driver"/>
<!--<property name="hibernate.connection.url" value="jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1"/>-->
<property name="hibernate.connection.url" value="jdbc:mysql://192.168.1.29:3306/tdb?autoReconnect=true&useSSL=false"/>
<!--<property name="hibernate.connection.username" value="sa"/>-->
<property name="hibernate.connection.username" value="rt"/>
<property name="hibernate.connection.password" value="y4OjNKOI9xnMXuV20uGm" />
<property name="hibernate.connection.pool_size" value="5"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.max_fetch_depth" value="5"/>
<property name="hibernate.cache.region_prefix" value="hibernate.test"/>
<property name="hibernate.cache.region.factory_class"
value="org.hibernate.testing.cache.CachingRegionFactory"/>
<!--NOTE: hibernate.jdbc.batch_versioned_data should be set to false when testing with Oracle-->
<property name="hibernate.jdbc.batch_versioned_data" value="true"/>
<property name="javax.persistence.validation.mode" value="NONE"/>
<property name="hibernate.service.allow_crawling" value="false"/>
<property name="hibernate.session.events.log" value="true"/>
</properties>
</persistence-unit>
So, great thanks to you!
Conclusions - before, i wrote wrong configuration…