Hi All, Are there any way to ask OJB not to query for subclasses when querying for parent class.
For example, I've got: Class1 Class2 extends Class1 Class3 extends Class2 When I want to get the collection of Class1 objects I don't want to get all Class2 and Class3 objects, but OJB does it. I have to manualy put: > criteria.addEqualTo("ojbConcreteClass", Class1.class.getName()); It works, but OJB still runs additional queries for sub classes which return nothing. It should be the way to do it via some method or something like that. Does someone know how to do it? Thanks. Regards, Vasily --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]