Hello,

I'm trying to convert my existing JDO-metadata mappings to an OJB
repository.xml ...

I'm running into a few things that puzzle me.

When there's an association between 2 objects, for instance ProductGroup and
Article, the Article class has a field ProductGroupId to hold the the id of
the product to load.
That's not what I would call non-intrusive; I now have to add this field to
all my domain-classes.

2nd, there's mention of access="anonymous". Such fields are in the database
but not in my java class. Could I use such an anonymous field for mapping
the association? That way I don't have to modify my java classes.
I couldn't find anywhere the use of such anonymous mappings.


Another thing which is: With JDO, I defined several java.util.List fields
and specified that they should be stored/retrieved in order. I really need
to maintain the order of elements in the list, but I would prefer not to
have to manually do that housekeeping.
Do I have to explicitly use odmg.DList in my code? Similar for a
java.util.Map; do I have to explicitly use odmg.DMap?

With regards,

--Tim van der Leeuw



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to