Klissiomara Lopes Dias wrote:
>
> Hi,
>
> I'm  studying EJB a few time and I have some doubts related to container
> managed fields.
>
> 1 - Can container managed fields be declared of private way or
> obrigatorily they must be public one?

  the bean attributes you want to be mapped to table attributes must be
public, that manner the container can 'reflect' the attributes.

   (spec. section 9.4.1 Container-managed fields)

   " The Bean Provider is responsible for using the cmp-field elements
of the deployment descriptor to
     declare the instance�s fields that the Container must load and
store at the defined times. The fields must
     be defined in the entity bean class as public, and must not be
defined as transient. "

> 2 - In the create method, besides of the container managed fields can I
> declarete fields which I wouldn't like that were maped to the DB columns?

  I don't understand what you want, maybe using a SB to solve you
problem.

  if you put a parameter in a EJBHome.create method, the deployment
descriptor will know about this, and the container is seeing the bean
through the deployment descriptor. ()

> I'm confused because during the bean deployment I can select what are the
> container managed fields, then can I do the second iten?

  if you have 3 attributes on table A, and just want to map 2
attributes.

> Can anybody explain me?
>
> Thanks,
> kld

  Claudio Miranda

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