You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Jakob Braeuchi <jb...@hotmail.com> on 2003/06/17 22:03:40 UTC
[OJB] Issue #OJB181 modified
Issue OJB181 has just been modified by user brj
You can view the issue detail at the following URL:
<http://scarab.werken.com/scarab/issues/id/OJB181>
The following modifications were made to this issue:
the problem can be fixed by the following patch in PersistenceBrokerImpl#assertFkAssignment
...
if (
(!(obj instanceof VirtualProxy)) &&
(!(obj instanceof Proxy)) &&
(ref != null) // &&
// (!(ref instanceof VirtualProxy)) &&
// (!(ref instanceof Proxy))
)
{
ClassDescriptor refCld;
if (ref instanceof Proxy || ref instanceof VirtualProxy)
{
refCld = descriptorRepository.getDescriptorFor(ProxyHelper.getRealClass(ref));
}
else
{
refCld = descriptorRepository.getDescriptorFor(ref.getClass());
}
...
but i'm not sure about the possible side effects