Jim Richards wrote:
> At 04:00 PM 9/12/99 +0000, Dirk Haase wrote:
> >When Configuring database access for container-managed persistence, I'd
> >like to split the container-managed fields of a bean into more than one
> >table. I couldn't find a way to do so yet. How does this work?
>
> In theory you're not supposed to do it this way, and EntityBean is meant to
> represent one row in one table.
>
says who? it just depends on the cmp capabilities of your container and in the
case of jonas (and several others) you can only use cmp with a
one-bean-to-one-row mapping. there are containers that come integrated with
sophisticated OR mapping tools that allow what you are looking for. the
standard (and container-independet) way of achieving what you are looking for
is code the sql yourself using BMP. check the archives of the ejb-interest
list. there are lots of postings related to your questions.
>
> Either create a ession bean to handle the transactions, or use a view and
>
why a session bean and not BMP (see above)?
> generate an entity bean on the view, although most databases don't
> allow updates through a view.
correct. again, check the archives of ejb-interest. i remember there have been
several threads on this approach and its implications.
regards,
robert
--
(-) Robert Kr�ger
(-) SIGNAL 7 Gesellschaft f�r Informationstechnologie mbH
(-) Br�der-Knau�-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de