Hi,
I have two entitites ClassA and ClassB. The following shows how they look like
Code:
class A {
String name;
Set<B> collectionOfBs = new HashSet<B>();
}
Code:
class B {
String desc;
Class A a;
}
Now when I set up my search code and pass the properties is the following acceptable:
Code:
new String[]{"name", "desc"};
or does it need to be:
Code:
new String[]{"name","collectionOfBs.desc"}
I have tried both and I am able to search using both ...but I'm not sure what the practice should be...any help would be appreciated.