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.<
Did you try the value create
instead.
A value of create will create your tables at sessionFactory creation, and leave them intact.
A value of create-drop will create your tables, and then drop them when you close the sessionFactory.
That would be
create
More infornation here and here
Or there could be a dialect problem