i want to develop multi tenant application with JSF + Hibernate 4.
I already know the theory of multi tenant database design, but i need to know what Hibernate 4 specific requirement for my database design. Is there something i need to configure or prepare in MySQL.
Maybe like, i have to add tenantId Column in every table ? Or i have to prepare some options in MySQL database.
I am planning to use shared database and separated schema design on my database. I wonder how hibernate work with this strategy, do i need to prepare the schema first for each tenant in my database? or hibernate will do this for me, so basically i just provide 1 basic schema and hibernate will copy it as many as my tenant number ?
I really need to find some good tutorial and explanation for using Hibernate 4 multi tenant feature. Is there any link or e-book suggestion ? Thanks