I am a newbie and having trouble writing a query to join 3 unrelated classes ClassA, ClassB, ClassC.
Here are the details (and I will show in code below).. ClassA has long attribute that will match the id of ClassB (but the id of ClassB is Long). ClassB has attribute of type ClassC. ClassC has attribute of type string.
Here is the code:
here are the hbm relevant lines:
I want to get all objects of ClassA where ClassA.classBid=ClassB.id and ClassB.classC=ClassC and ClassC.name="abc"
And then we all jump out and yell "surprise! we got you this tiny ad!"
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop