On 11/28/05, Joose Vettenranta <[EMAIL PROTECTED]> wrote:
> 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?
This depends on how you mapped these types. Please post your
repository xml file.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]