facebook

AccountEJB should have items names AccountXXX [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #206449 Reply

    roger_cmu
    Member

    Hi,

    The name of my xdoclet file is AccountEJB.java . The files coming of this are AccountEJBCMP.java , AccountEJBLocal.java etc.

    I would like the generated files to be names as AccountCMP.java , AccountLocal.java etc.

    Anyone knows the fix!

    – Roger

    #206465

    Greg
    Member

    Hello Roger,

    The files generated by xdoclet always use the pattern: {0}CMP.java {0}Local.java, etc… where the {0} is the symbolic name for the EJB bean, which is the @ejb.bean name=”…” property. So whatever you have for the name attribute under the @ejb.bean tag is what will be used for those file patterns. The MyEclipse EJB entity bean wizard uses the filename as the default for the @ejb.bean name property. So to get the generated files to be AccountCMP.java., AccountLocal.java, then you must change the name property to Account.

    
    @ejb.bean
          name="Account"
          ...
    

    You could also redo the MyEclipse Entitybean wizard and use Account as the classname instead of AccountEJB. But I imagine you want to keep your original filename, so the previous option should get the generated classes to have the names you want.

    #206471

    roger_cmu
    Member

    Thanks. This issue could be closed now.

    – Roger

    #206474

    Riyad Kalla
    Member

    Thank you for closing the loop with us.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: AccountEJB should have items names AccountXXX [Closed]

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