facebook

Customizing EJB & Entity Templates? and EJB Template Iss

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #288357 Reply

    kurzweil4
    Member

    How can I customize the templates for Entities and EJBs?

    An issue I have noticed with the default EJB template is that they throw RuntimeException. This seems to be a mistake. If I am not mistaken, aren’t EJBs supposed to wrap any exception they do not handle into an EJBException and re-throw it?

    Thanks,
    Kurzweil4

    #288389 Reply

    Riyad Kalla
    Member

    Kurzweil4,

    EJB2 or EJB3? For EJB3, I believe Hibernate/JPA/EJB3 all share the same base templates here:
    <install dir>\myeclipse\eclipse\plugins\com.genuitec.eclipse.hibernate_6.5.0.zmyeclipse650200806\templates

    please adjust the plugin dir accordingly based on the version of MyEclipse you are using. Also be sure to backup the originals.

    #288432 Reply

    kurzweil4
    Member

    Sorry, EJB3.

    Am I correct though about the RuntimeException?

    @support-rkalla wrote:

    Kurzweil4,

    EJB2 or EJB3? For EJB3, I believe Hibernate/JPA/EJB3 all share the same base templates here:
    <install dir>\myeclipse\eclipse\plugins\com.genuitec.eclipse.hibernate_6.5.0.zmyeclipse650200806\templates

    please adjust the plugin dir accordingly based on the version of MyEclipse you are using. Also be sure to backup the originals.

    #288438 Reply

    Riyad Kalla
    Member

    Kurzweil4,

    I’m not sure honestly, I haven’t checked the spec but I did kick it back the persistence team for evaluation.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Customizing EJB & Entity Templates? and EJB Template Iss

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