|
I propose this issue should get re-opened. I think
HHH-2907
looks far too complicated a thing to use to implement a simple default value on a newly added non-null column. This is such a common thing to do, I see no reason why hibernate annotations should not support it. I don't believe this problem is too difficult to solve, since this is already supported by the xml. There is already code somewhere generating the default column value ddl! In my opinion this is simply a gap between the xml and the annotations. This also makes it seem fairly easy an issue to fix. The column definition is not a valid workaround either, I think, because it replaces what hibernate ddl generation is supposed to be doing for me, and it is not database-independent.
It is really hard to believe that this gap has been known for 7 years, is considered "minor", and was recently closed as WONTFIX!
Please reconsider.
|