> -----Original Message-----
> From: Brian N. Miller [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, May 05, 1999 2:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Granularity of EJBObjects
>
> Chip Wilson wrote:
> >
> >Mapping a domain object model to a relational database is always
> >painful, assuming that the domain model is of high quality. This doesn't
> >change if entity beans are fine-grained domain objects.
>
> Oh, but it *does* change entirely if the entities are fine-grained.
> Unlike
> object graphs, fine-grained entities are well suited for atomicity,
> isolation,
>
[Chip Wilson]
ACID has to do with transactions, not mapping. I am not advocating
a different transaction model -- transactions are controlled and propagated
at the EJBean level of granularity and abstraction.
> and relational mapping.
[Chip Wilson]
It doesn't matter how my fine-grained objects are implemented, as
Entity Beans or Java Classes, there will still be a mismatch between my
object model and my domain model, assuming both are of good quality. The
two models have different requirements and optimization goals and
parameters, so they are bound to end up different, and the mapping between
them is usually non-trivial.
> It would seem that with entity beans, especially
> container-managed ones, granularity does determine the ease of RDBMS
> integration.
[Chip Wilson]
Only if your entity beans are one-to-one with your tables, in which
case they aren't domain objects at all.
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".