db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@hotmail.com>
Subject [OJB] Issue #OJB181 modified
Date Tue, 17 Jun 2003 20:03:40 GMT

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  




Mime
View raw message