facebook

EJB CMP Wizard [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #204116 Reply

    I am trying to build EntityBean ( CMP) via EJB wizard. I am wondering if I missing something or may be I am looking at the wrong documentation hence not using the tool properly.

    Here is the senario:

    a) While creating Entity Bean the wizard does not ask me whether I want CMP or BMP. It goes ahead and creates CMP XDoclet tags.
    b) Assuming I am honoring wizard request and want to ahead and create CMP Entity Bean. Well, it does NOT ask me to associate any table with the Bean. Does it mean, Do I have to manually write these XDoclet tags and create methods? if that is the case then what value MyEclipse is providing me?

    Is there any tutorial that explains develop CMP Entity Bean via EJB wizard?

    We are evaluating the tool for our business. I have noticed some other tools such Lamboz’s wizard lets you associate a table and hence columns to the Entity Bean.

    Any info would be appreciated.

    Thanks!

    Surendra

    PS: I am using Eclipse M6 and MyEclipse Workbench RC-2

    #204117 Reply

    Scott Anderson
    Participant

    Surendra,

    Let me see if I can clear things up a little.

    a) While creating Entity Bean the wizard does not ask me whether I want CMP or BMP. It goes ahead and creates CMP XDoclet tags.

    No, it doesn’t ask. BMP has become such a deprecated practice that we chose not to provide explict support for it. As a result, if you want an Entity Bean we assume it’s for CMP.

    Well, it does NOT ask me to associate any table with the Bean. Does it mean, Do I have to manually write these XDoclet tags and create methods? if that is the case then what value MyEclipse is providing me?

    No it doesn’t ask for table associations, because we don’t provide explicit support for O/R mapping. All the CMP code is generated using XDoclet, but you do have to write the tags yourself. Please bear in mind that we do provide content assist for XDoclet tags and have integrated XDoclet into the build process so these two things are the main advantages to using MyEclipse.

    In version 2.8, we’ll be providing more database and persistence support in several areas.

    We are evaluating the tool for our business. I have noticed some other tools such Lamboz’s wizard lets you associate a table and hence columns to the Entity Bean.

    I’d only caution you to be careful if you’re mapping one table to one CMP Entity Bean as this is a standard EJB anti-pattern [see the book “Bitter EJBs” (http://www.manning.com/tate2/) for a complete discussion].

    #204119 Reply

    Thanks Scott. With your explanation, having CMP as default makes sense. I am glad to hear that 2.8 will provide enhanced support for persistance. I see a logical relationship between EnityBean and persistance ( let it be database or something else) hence additional wizards for Xdoclet tag creation would reduce learning curve for sure. I agree that EntityBean does not have to map with one table but it does need to map with some persistable entity or entities.

    Thanks for Bitter EJB link. I appreciate the information, we want to make sure that we don’t design application in non-standard manner.

    Are you aware of any EJB Tutorial that focuses on XDoclet usage and its creation?

    Thanks again!

    #204120 Reply

    Scott Anderson
    Participant

    Surendra,

    Are you aware of any EJB Tutorial that focuses on XDoclet usage and its creation?

    Here’s one on CMP that then expands to use XDoclet. It doesn’t use MyEclipse, but you should be able to extrapolate from the XDoclet settings to how it’s configured with the MyEclipse GUI. Here’s the link:
    http://www.rickhightower.com/ejbcmpcmrtut.html

    #204122 Reply

    Riyad Kalla
    Member

    Surendra,
    Is it alright if I close this thread or did you have further questions on this topic? (Please feel free to ask)

    #204128 Reply

    Riyad,

    Thanks! Yes, please go ahead and close the thread. I am looking forward to 2.8 while I explore 2.7 RC2.

    -Surendra

    #204129 Reply

    Riyad Kalla
    Member

    Great, thanks Surendra!

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: EJB CMP Wizard [Closed]

You must be logged in to post in the forum log in