My problem is that I split my
manytomany relations into two
onetomany relations, but when I query datas using
Criteria, the code throws Exceptions that could not resolve property. Here is my code:
My PK class is :
and then, I wrote an criteria query
test:
but when I query data like this, it works:
when I use the
junit to test the
testAccidentRole() method, I encountered the following exception:
This problem really made me crazy and I tried to solve that for a long time. Could someone help me out? Thanks a lot.