Hi,

I have like this:

public class A implements Foo {
 private Integer id;
 ...
 getter/setter..
}

public class B implements Foo {
 private Integer id;
 ...
 getter/setter..
}

public interface Foo {
        public Integer getId();
        public void setId();
        ....
}

Both A and B has unique id's.. so both can have values with id=5;

When I do query to that Interface, I get values for class B objects from class A objects if ID value is the same.

Can I fix this somehow or do I have to use global unique id as primary key?

Thanks, Joose

ps. using ojb 1.0.1

--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * [EMAIL PROTECTED] * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to