Improve the hibernation database schema?

I use Hibernate (JPA2) hibernate.hbm2ddl.auto=updatefor testing and hibernate.hbm2ddl.auto=validatefor production.

I want to do this by expanding the generated schema with an additional table (which does not map to the entity) so that this table is generated for tests and verified for production.

Is this possible, and how?

+2
source share
2 answers

Yes, you can use additional database objects . "I wrote a blog post on this topic because the documentation was not the largest.

: Hibernate, : "import.sql" Hibernate schema export, .

+3

SQL script . , SQL, Prod. validate .

0

All Articles