Is it possible to retrieve and return the auto-generated primary key that was created for an entity when you persisted it in the database? I'd like to have the entities primary key be the returned from the method which creates it.