Load the class outside the transaction so that we create the constraint outside of the transaction where data is change