Fixed an error in data access that would cause for the generated keys to not be set on entities not instantiated via the data access interface