----- Original Message -----
From: Rajesh Balu <[EMAIL PROTECTED]>
To: A mailing list for Enterprise JavaBeans development
<[EMAIL PROTECTED]>
Sent: Thursday, September 14, 2000 9:03 AM
Subject: Re: Basic doubts in EJB


> Hi,
> > 1. How do you map a entity container managed
> > bean-field, which is not of java primitive type, but
> > an instance of a composite class to database. The
> > bean-field may require mapping to a table than a
> > column. How can you do it ? Can I assume this is the
> > limitation of CMP ?
> >
> > eg., for primitive data type mapping, which is fine.
> >
> >  <object-link>
> >       <bean-field>beanyear</bean-field>
> >       <dbms-column>dbyear</dbms-column>
> >  </object-link>
>
> 1. There is no limitation on mapping an entity bean with composite
datatypes
> to db as of EJB specs. But ur App. server needs to provide the support to
> map entity to Object RDBMS. It is totally dependent on the server vendor.
I
> suppose weblogic support this, though i m not sure.
>
> > 2. Why does the multiple-result finder methods in the
> > home interface of entity bean always return either a
> > enumeration (JDK 1.1) and collection (JDK 1.2)
> > interfaces ? Can't it return a Vector, HashMap classes
> > ? Is there any restriction for the home interface ?
>
> 2. EJB 1.0 supported only Enumeration as the return type for multiple
result
> find methods.EJB 1.1 extended this to return Collection also. Probably we
> can expect the support for other datastructures in future releases. As of
> now, only the two are supported. This is indeed a restriction.
>
>
> > 4. What is the necessity of ejbPostCreate() ? Is there
> > any thing to be coded here for BMP ? What is the
> > significance of this method ?
>
> > 5. Can't you map an entity bean with CMP to more than
> > one table ? Again is that the limitation ? Whether I
> > need to go for BMP in this case ? Can someone show the
> > possible ways to do this with CMP ? Whether all ejb
> > containers support O-R mapping tools with CMP ?
>
> Again, EJB does not have any restriction on this. It is upto the vendor to
> support mapping an entity bean to more than one table and there are quite
a
> few vendors who do it.
>
> Bye.
> Rajesh.
>

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