In my database I have a Test table, with columns: testName, testType
there are 2 different tests with the same type I.e \"SUN\", so I want only one of them for which I use
Projections provide the result of the marked properties only. but, it creates problem for the child entities. See my post for the real problem I faced it.
Hibernate: Parent and Child relationship data structure