, .: -)
Yes, it must exist. This is a class that is not an entity; you create it to handle three columns in an understandable way. He needs a constructor suitable for calling.
Basically, this is similar to what you did:
- query that returns a List (with three columns)
- in the list, creates a Family object containing the columns and returns a list of these results.
source
share