I\'m using JPA (Hibernate\'s implementation) to annotate entity classes to persist to a relational database (MySQL or SQL Server). Is there an easy way to auto generate the
Add the above code in the persistence.xml under properties tag.
"update" will create the table when first time you run your code, after that, only update the table structures if any changes in domain object.