I have a table which contains huge data. I want to add hibernate automatic versioning to this table. But adding a not-null column to this table for versioning is very expensive due to huge data. Is there a workaround so hibernate can work with nullable column? Currently hibernate gives NPE because it tries to increment a null value.
( As hibernate manages this internally, changing the version value on client side is out of question )
Any other versioning startegy is welcome too. Thanks in advance
I have a table which contains huge data. I want to add hibernate automatic
Share
If your flavour of database permits it you could use the DEFAULT option. This is against Oracle …
However, you may still want to benchmark its performance against a realistic volume of data. It may not solve your problem.