- This topic has 3 replies, 3 voices, and was last updated 20 years, 11 months ago by mbyrk.
-
AuthorPosts
-
juicypartsMemberfrom Hibernate1 to Hibernate2.
Or, for that matter, in general, how does one update the tags XDoclet supports. And when I mention XDoclet, I mean the XDoclet support via MyEclipse.
Thanks, in advance, for your assistance…
Mel Riffe
Scott AndersonParticipantMel,
< Update: This response is an incorrect answer to the posters question since he simply wanted to specify the Hibernate version to use, not do a library replacement. I must’ve read the initial post too quickly before I replied. In any case, I leave it here since it does describe how to replace a library if needed by someone else. –Scott />
Updating the XDoclet libraries themselves is a rather simple matter of replacing the existing jar under the org.jboss.ide.eclipse.xdoclet.core_2.6.4 directory under your MyEclipse installation with the new version provided by XDoclet. However, this is typically just for updates, not major version changes. To go from Hibernate1 to Hibernate2, I’d imagine that more work would be needed to make the new features visible. This would most likely entail modifications to the files in the resource directory under org.jboss.ide.eclipse.xdoclet.run_2.6.4.
If you’d like to give this a try, please be sure to back up your configuration first and let us know how it goes. I’m sure this will be of interest to other users.
–Scott
MyEclipse Support
juicypartsMemberScott, and other interested parties,
I didn’t have to change anything, or so it seems. After reading the XDoclet Site and Hibernate Site, you just have to specify ‘2.0’ for the hibernate version.
Here’s how I did it:
– Bring up Project Properties (Select your project, right-click, select Properties)
– Select MyEclipse-XDoclet
– (Assumes Standard Hibernate Configuration is already added) Select Standard Hibernate
– Select the ‘hibernate’ element
– Check the ‘version’ element and enter ‘2.0’ (without quotes)
– Click OKRun when you run the xdoclet build, Hibernate 2.0 class mapping files will be generated.
Now for the cavet – I haven’t actually used the generated mapping files as I don’t have my test environment setup for my hibernate project. So there may be more steps that need to be executed…
I’ll keep everyone posted…
Thanks, Mel
mbyrkMemberIs there some place I can get CVS builds of XDoclet. There is a bug in the current builds where hibernate subclasses must be in the same package as the main class. This is fixed in CVS.
I can probably build it myself, but I think you need Maven installed. If someone has a link to a CVS build I would really appreciate it.
Thanks, Magnus
-
AuthorPosts