Fix so that EntityListener is applied with hibernate