EM loaded old DDL


#1

Second time I have a problem with old data in EntityManager.

First I run this SQL:
ALTER TABLE customer.emails DROP COLUMN address;
Then I run my Spring Boot App and see this screen:

In English: null value in column “address” violates constraint NOT NULL.

How it can be possible? I droped this column. Which is constraint by this column may be?
How to make hibernate work normally?


#2

You need to add the entities, DB tables, data access code and Hibernate logs with English locale log messages.

I’ll take a look at it afterward.


#3

I decided not to delete the column. So that issue may be closed.
But problem is not solved.

Maybe it is problem with Hibernate cache, maybe with Flyway. It second time Hibernate gives me old data recently.