facebook

Hibernate and XDoclet

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #216546 Reply

    gslonim
    Member

    Can anyone advise how I can configure XDoclet within MyEclipse to generate the hibernate descriptors to a particular directory without the packaging structrure. I know how to point XDoclet to the alternative target directory other than src but it generates mapping files according to domain objects package structure, e.g. if you have a class com.company.test.Foo the XDoclet will generate directory structure in the destination – com/company/test and will place Foo.xbm.xml there. We would like them to reside flat in the dest. directory, without packages. Please advise.

    #216684 Reply

    Greg
    Member

    Sure thing, open up your MyEclipse-XDoclet property page and select the “Standard Hibernate” xdoclet configuration. Then select the “hibernate” subdoclet under the “hibernatedoclet” task. Then set the “prefixWithPackageStructure” attrubte to “false”. Be sure and check the attribute and then hit ok. Now rerun xdoclet and it should not prefix your *.hbm.xml files with a package structure.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate and XDoclet

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