The EntityView annotation declares on which entity type this Entity View is based on e.g. for which it provides a projection for. It must have an IdMapping containing the path expression to the attribute that should be used as identifier for this Entity View. Apart from that, you can declare any properties that you would like your Entity View to contain. It’s a DTO after all, so think about the target representation.