I have a spring boot application that is connecting to PostgreSQL database. The DAO layer is implemented using Hibernate
and JPA
and auto-ddl
is enabled so that hibernate takes care of creating table
Suddenly today my friend asked me to alter one of the column type BigInteger
to String
, then I said which is impossible because that column already filled with data and hibernate will not allow that
Now he is telling it is drawback in hibernate and we also had debate on does companies alter column definition based on requirement in production?
Question
- Is it really drawback in hibernate?
- Do IT companies or any organizations frequently alter column definition in production?