facebook

How can I update XDoclet Hibernate support…

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

    juicyparts
    Member

    from 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

    #200388 Reply

    Scott Anderson
    Participant

    Mel,


    < 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

    #200396 Reply

    juicyparts
    Member

    Scott, 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 OK

    Run 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

    #200398 Reply

    mbyrk
    Member

    Is 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

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How can I update XDoclet Hibernate support…

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