Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 593
Harish Bagora Avatar asked Dec 15 '25 05:12

Harish Bagora


1 Answers

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.

like image 50
Kayaman Avatar answered Dec 16 '25 20:12

Kayaman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!