Friday, 2 November 2012

ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Unsuccessful:

This issue is due to the relational mapping in DB Tables.
Some times it may be due to the existence of old value in a table before mapping this table with another table. In these cases you can replace the older values with the corresponding id from mapped table.


For example:
---------------
First I created a project for registering Users. The details needed to register an User is Name, address, email and designation.These values are stored in a Table called USERS.Later I want to pick the values for designation from another master table. So that I mapped the table USER with another table DESIGNATIONS. Then the values from this table will populate against the Designation table. If you are adding a new User, the value for designation will be the corresponding id of selected designation.

If you are trying to populate the details of Users, this error ["ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - Unsuccessful:...... "] will show. For resolving this error, you have to replace the older value in Designation column in USERS Table by corresponding id from DESIGNATION table.

No comments:

Post a Comment