4

I would like to change default value of a table column:

alter table foo modify (col_name default 'bar');

Will this cause any troubles with Hibernate if I don't restart my application?

2 Answers 2

3

It will not make any trouble to the Hibernate itself. Hibernate does not store hash or some other form of an identifier of your Database versions. Although if your application logic is somehow linked to this default value you will have 'troubles' but they have nothing to do with Hibernate.

1
  • 3
    Thanks! Running without incidents. Commented Aug 2, 2018 at 17:25
1

No there should not be any issue if the default value of a column is changed, but please make sure that there should not be any default value defined in the corresponding column of the table's hibernate entity

Not the answer you're looking for? Browse other questions tagged or ask your own question.