Hiya,
Well, another OR mapping question.
Ok, I've added the three lines to my EJB, but no magic. :) Here's what I
got generated in my orion-ejb-jar.xml file for the particular field of my
cmp_site entity:
<cmp-field-mapping name="children">
<set-mapping table="sac.stores">
<primkey-mapping>
<cmp-field-mapping
name="site_number" persistence-name="site_number" />
</primkey-mapping>
<value-mapping
type="com.pinnacle.ejb.cmp_store">
<cmp-field-mapping
name="value">
<entity-ref
home="cmp_store">
<cmp-field-mapping name="value" persistence-name="value" />
</entity-ref>
</cmp-field-mapping>
</value-mapping>
</set-mapping>
</cmp-field-mapping>
I'm getting an exception: EJBException at
cmp_store_ORSet200.getObjects(cmp_store_ORSet200.java:67) when I try to call
any method on the set returned by getChildren(). Any ideas?
It seems like the 'value' part isn't right. Should that be a list of all
the cmp fields for my cmp_store object? Wow, some docs sure would be great.
Are there any?
If you need more information, I would happily supply!
ken.