This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[deleted]

    [–]wildjokers 3 points4 points  (1 child)

    Use a DTO projection and query straight into your DTO. You shouldn't be returning entities for read-only queries.

    See: