Kalpesh Gada wrote:Hi All,
I am using spring 2.5 framework with mysql as backend. I am trying to validate the database schema with my model classes using the following statement.
<prop key="hibernate.hbm2ddl.auto">validate</prop>
I am getting the following validation error:
[ERROR] [] [org.hibernate.tool.hbm2ddl.SchemaValidator.validate(120)] | could not complete schema validation
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown table 'sequences' in information_schema
I am not using information_schema database at all but it comes with mysql by default. There is no such "sequences" table in that database. Has anyone come across this issue before or know solution to this ???
Thanks
Moving this to the ORM forum where you will probably get more responses. This is not a Spring issue, more of the Hibernate tool issue. But it is probably based on your mapping of a Primary key that is sequence or auto-increment based.
So you will need to post more of your mapping.
Mark