- This topic has 2 replies, 2 voices, and was last updated 19 years, 2 months ago by Greg.
-
AuthorPosts
-
choonhoongParticipantHi 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
choonhoongParticipantI 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
GregMemberAccording 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.
-
AuthorPosts