the issue is related to https://hibernate.atlassian.net/browse/HHH-10298
The solution for mariadb is to add
<property name="hibernate.hbm2dll.extra_physical_table_types">BASE TABLE</property>
to the hibernate configuration file.