Class HiddenUpdateTest


  • public class HiddenUpdateTest
    extends OBBaseTest
    Test for updates which can happen behind the scenes (but should not happen) if properties are accidentally changed. An example of this is that a boolean field has a null in the database, then when hibernate reads it from the database as a default false is set in that field. Then when checking for dirty the object has changed as the boolean value has changed from null to false.
    Author:
    mtaal
    • Constructor Detail

      • HiddenUpdateTest

        public HiddenUpdateTest()
    • Method Detail

      • testHiddenUpdates

        public void testHiddenUpdates()
        Tests for hidden updates. Hidden updates can occur when a load/read of an entity also changes the state, or that hibernate detects dirty in another way. Use the Hibernate Interceptor concept.