Actually, that’s not a good example. If your records are based on good OO principles they have their own identity, which is independent from a database record id. Returning the id this is useless and thus no reason to break CQS.

CEO at Schinchoku and software architect at Delphino Consultancy B.V. — writing about software, and about the Shinchoku startup.