I may not be interpreting your definitions correctly but
I would say that if you are using container managed persistence
the conversion would occur in the map. However, if you are
using bean mananged persistence the bean developer is responsible
for handling the conversion.


>From: May Charles N <[EMAIL PROTECTED]>
>Reply-To: A mailing list for Enterprise JavaBeans development
><[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Database Schemas & Maps
>Date: Tue, 19 Dec 2000 08:52:58 -0500
>
> > Okay, I'm a little lazy... I'm posting this question before fully
>perusing
> > the EJB spec.
> >
> > Between an EJB object model and its database schema sits a map which
> > coordinates the correspondence of EJB beans & fields to schema tables &
> > columns.
> >
> > My question is, where should the conversion from java types to and from
> > JDBC types occur? Should it happen in the schema or in the map? Does the
> > EJB spec decree where the conversion must occur, or where it cannot
>occur?
> >
> > It seems to me that the schema should be as close an approximation to
>the
> > actual database structure as possible, and should be based purely upon
> > JDBC types. I believe that the *map* is where the conversions should
> > occur. That is, in my mind, the map should not be a simple
>correspondence
> > map -- taking fields to columns and back -- it should be smarter than
> > that, able to perform the conversions between the java types and the
>JDBC
> > types.
> >
> > The problem is, my development environment (VisualAge) requires the
> > conversions to occur in the schema itself, rather than in the map. This
> > causes me much consternation every time I have to reimport a database
> > schema and either edit the JDBC field types or put converters in place
>in
> > order to make the schema correspond to my EJB model. Shouldn't the
> > converters really be in the map? Or would this violate the EJB spec?
> >
> > Charles May, Software Engineer
> > AFCO Credit Corp. - Pittsburgh Systems Group
> > A Mellon Financial Company
> >
> >
>*****************************************************************
>DISCLAIMER:   The information contained in this e-mail may be confidential
>and is intended solely for the use of the named addressee.  Access, copying
>or re-use of the e-mail or any information contained therein by any other
>person is not authorized.  If you are not the intended recipient please
>notify us immediately by returning the e-mail to the originator.
>
>===========================================================================
>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".
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
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".

Reply via email to