I'm using Hibernate tenancy and every time user logs I'm changing database to his username (SQLite). Sadly sometimes the database does not exists and I need to create it.
The problem is that I don't know how to create all tables in database at runtime.
Normally Hibernete creates for me db with this:
<property name="hibernate.hbm2ddl.auto">update</property>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…