Fix traits use statements

Add `ORM` and `ODM` annotations in traits. Update the docs.

See also #1155.