Harish Bagora
Harish Bagora

Reputation: 716

Does spring.jpa.hibernate.ddl-auto = validate property validates the columns with table?

In my application i am using below property

 spring.jpa.properties.hibernate.hbm2ddl.auto= validate

so does it validates schema like if manually i added one new column in my oracle table and not added this column in java entity .

so in this case will it give error on project startup ?

Upvotes: 2

Views: 2554

Answers (1)

Kayaman
Kayaman

Reputation: 73528

No, it's perfectly alright to have columns in a table that aren't mapped. An error would be a missing column or table that's mapped to an entity. Your database doesn't need to be identical to your mappings.

Upvotes: 3

Related Questions