openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Udi <Saba...@gmail.com>
Subject "detected possible orphand..."
Date Tue, 17 Feb 2009 07:34:59 GMT

Hey,
I faced the warning: detected possible orphand to deleted object
"test.House-123" in "test.House.owner".
I read that this might be a bug in openJPA, and in JIRA I read that if the
problem happens in Many-to-one relation, the @Nonpolymorphic can resolve the
issue.
The thing is I must use polymorphic objects. These are my classes:

class House
{
     @ManyToOne
     private Owner owner;
}

abstract class Owner
{
  ....
}

class BigOwner extends Owner
{
}

class SmallOwner extends Owner
{
}

Obviously, house's field owner must be of BigOwner or SmallOwner.
Is there any solution for this case?

thanks,
Udi
-- 
View this message in context: http://n2.nabble.com/%22detected-possible-orphand...%22-tp2339495p2339495.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message