Hibernate Collections - have lots of null elements aswell as my objects
posted 7 years ago
Hi Here is my XML
What i get in return when I do a query is a collection of 300 elements. 298 of the elementds are null
While 2 of them are instances of my UploadedFile. These 2 instances are correct. But they are in the middle of all the nulls (elemets 248 and 249)
But due to how my system works id like to be able to not have all the null elements. Is there a way of eliminating these null elements?
I know Hibernate has its own implementation of collections but having all the null elements is terribly