facebook

XDoclet tags for hibernate in MyEclipse

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

    choonhoong
    Participant

    Hi All,
    I just realised that using hibernate doclet tags could make my hibernate work much quicker. So I actually modify the java files so that my XDoclet run creates/modifies the corresponding hbm.xml file. But this does not seem to be happening at all. Why is that?
    Is there a reference that you can provide that shows me how to set this up in Eclipse?
    Using Version 4.0.0 Build 20050829-4.0.0-GA
    My HIbernate version is 2.1 and I went ahead and added the hibernate doclet to the XDoclet properties on my EJB project.
    Also set the hibernate version to 2.1. What else am I supposed to do so that the hibernate doclet generates the mapping XMLs?
    There seem to be no errors generated but it just gives me no mapping XMLs when i check.

    Cheers,
    Ding
    ps: Help me ASAP! 🙂

    Sample Output after running XDoclet

    Buildfile: D:\eclipse\vsign-projectEJB\.xdoclet-build.tmp.xml
    N10004:
    [ejbdoclet] (XDocletMain.start 47 ) Running <remoteinterface/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <localinterface/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <homeinterface/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <localhomeinterface/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <dataobject/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <valueobject/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <entitypk/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <entitycmp/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <entitybmp/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <session/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <dao/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <utilobject/>
    [ejbdoclet] (XDocletMain.start 47 ) Running <deploymentdescriptor/>
    [ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
    [ejbdoclet] (XDocletMain.start 47 ) Running <jboss/>
    [ejbdoclet] Generating jboss.xml.
    N107DF:
    [hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/>
    _xdoclet_generation_:
    BUILD SUCCESSFUL
    Total time: 7 seconds

    #239933 Reply

    choonhoong
    Participant

    I also tried the suggestions for the <fileset> in the following post… and still no hibernate XML files generated!!!

    https://www.genuitec.com/forums/topic/xdoclet-hibernate-closed/#post-220105

    #240019 Reply

    Greg
    Member

    According to your output, you have configured a “Standard EJB” configuration in the MyEclipse-XDoclet properties page. Remove that configuration and add a “Standard Hibernate” by using the “Add Standard…” button and then selection “Standard Hibernate”. After you have added this configuration, select it, and then in the list below selection “hibernate” subtask and set the version attribute to your appropriate Hibernate version. Now try re-runing XDoclet and your hibernate files should be generated.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: XDoclet tags for hibernate in MyEclipse

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