Paul Sturrock wrote:If you use Projections this way your result will be a List of arrays of Objects, not a List of POJOs. Given you have all the properties you are Projecting already in your POJO I don't see what benefit using Projections is giving you here. What is it you are trying to achieve?
If you don;t mind could you please explain the use of projections.property? I'm new to hibernate and busy using examples but some are not clear enough ... Thanks Paul
Paul Sturrock wrote:You might use Projections to query for properties not on the object you are querying, for example a derived property (thing average, maximum etc.) Or you might use them to create a new, unmapped object at runtime. If all you are doing is returning the properties of an already mapped object then you don't need to use them.
How should i interpret the following 'incomplete' queries?
Perhaps am trying to figure which should i use for one to many relationship?