Added support for a automatically providing the uid to a mapped class through an optional Interface