i was wondering if hibernate supports to define dynamicUpdate=true property on application level instead of defining it for each entity ?
Asked
Active
Viewed 1,442 times
9
-
I'd guess not and I wouldn't do it if it was possible, but +1 for the question ;) – tscho Dec 22 '11 at 20:04
-
Great question and I would do it if it were possible. Hibernate can't handle DB side data defaults very well and this is a good work around for a utility application where a potential performance hit wouldn't matter. – John Strickler Nov 18 '13 at 14:48
1 Answers
3
This is not possible because dynamic-update/dynamic-insert are not optimized and well perform for all scenarios, It can create bottleneck in some cases, that's why hibernate guys did not give this option at application config level.

Faisal Basra
- 1,624
- 4
- 25
- 40
-
1Can you tell me which cases dynamic-update/dynamic-insert will create bottleneck? – Stony Jul 09 '15 at 03:04
-
@Stony This might help --> https://stackoverflow.com/questions/41633250/how-dynamic-update-true-works-internally-in-hibernate – Vishal Nair Jul 22 '18 at 11:10