Hi Brian,
if this issue isn't the same as in your later post "Expected Extent
Behavior?" and does not mix different inheritance strategies (which is
not supported), please provide a more detailed description so that I can
implement a test case to reproduce the issue.
regards,
Armin
Brian Latimer wrote:
I have an Interface "Substance" with multiple extent classes including
"ProductSubstance." All the extent classes of "Substance" extend the
"SubstanceBean" class and have a super reference to it.
Recently I switched from using a striaght PB query for collections of
"Substance" interface objects to using a PB inside of an ODMG
transaction for the same thing.
The query had worked priviously, but now I get null values for all the
super fields.
During execution I get the following:
1382710 DEBUG [http-8080-Processor23]
metadata.SuperReferenceDescriptor$SuperReferenceField - Copy fields from
source object 'org.aspca.substance.ProductSubstanceBean'
using source fields declared in 'org.aspca.substance.SubstanceBean'
to target object 'org.aspca.substance.ProductSubstanceBean'
using target fields declared in 'org.aspca.substance.SubstanceBean'
the fields to copy are declared in 'org.aspca.substance.SubstanceBean'
class
the used classes are associated by java inheritance: true
...and then later during the same query...
1383351 DEBUG [http-8080-Processor23]
metadata.SuperReferenceDescriptor$SuperReferenceField - Copy fields from
source object 'null'
using source fields declared in 'org.aspca.substance.SubstanceBean'
to target object 'org.aspca.substance.ProductSubstanceBean'
using target fields declared in 'org.aspca.substance.SubstanceBean'
the fields to copy are declared in 'org.aspca.substance.SubstanceBean'
class
the used classes are associated by java inheritance: true
The first superreference seems to be copying from a productsubstance to
a productsubstance using fields from substancebean and the second seems
to be copying fields from a null substancebean object.
In any case, I always end up with null values for all super fields
including the PK field, but I get real values for all the child fields
(except the PK/FK).
Any idea what causes this? If more detailed code/repository information
would be helpful I can supply it.
thanks for any help
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]