wip for the JPA eventing system.

some of this will be moved to another module soon, but still.