We have a situation where we have a 1-n relationship and a wizard
interface to create new instances of either.
Class book
(
id,
name
category_id
category
)
Class category
(
id
name
...
)
I have a collection descriptor in the category class for all the books
in that category with proxy="true". In my user interface, I allow a new
category to be created and associated with a bunch of books (some in the
database and other new entries). When I persist the category class with
the collection of books, the category_id of the individual books in the
collection is not getting set even though I have update="true" in the
collection descriptor. Should this be done manually? Any pointers?
An unrelated question: Is it possible to use the ODMG API for
persistence but the PersistenceBroker native API for querying? I need
to use aggregate queries and it seems like they are not yet supported in
ODMG. I prefer the OJB method of querying anyway - I find it much more
convenient.
Thanks
Raghavan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]