I have a class A which have a list of B elements.
In my A class i would like to add:
int size;
which will be valued with the number of B elements. So when I would call myA.getSize()
I will have it.
Is it possible to map a count query with a single property in the hibernate mapping?
I don't want to load the list that is why i would like to add a size property.