79571517

Date: 2025-04-13 12:11:13
Score: 2.5
Natty:
Report link

I had similar issue where, initially, things worked fine until I did a side project and created a different schema with a usual table name "cart".

In the former schema (of the project facing similar error), "cart" table has a similar column STATUS of type INT.

In the new schema's "cart" table, the column STATUS is of type VARCHAR

I have since renamed tables of the new schema to avoid collisions and my project has successfully started up.

Conclusion:
'It's like' Hibernate reads the entire database and matches only a single table name to an entity, ignoring the schema (db) specified in the properties file

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing similar error
  • Low reputation (1):
Posted by: david n