Hallo -- would it be possible to query for instances of a class based on a method?
Perhaps if you had a method called getFakeMethod() that returned a String, you could write a query along the lines of
Code:
from MyClass c where c.fakeMethod="PASS"
Obviously, the getFakeMethod() method would perform some test that returned "PASS" or not.
Is there any way to do this -- or, even simpler, maybe just to query on a straightforwards method?
Or does the fact that this would probably require every persistent instance of the class to be returned for testing make this a dumb question?
Cheers,
doug.