removed dependency to hibernate

moved to a generic persistence listener which does not depend on
hibernate