XDoclet 2 Plugins
  1. XDoclet 2 Plugins
  2. XDP-146

deep union subclass strategy maps only top 2 inheritance levels, next are ignored

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: None
    • Component/s: hibernate
    • Labels:
      None
    • Environment:
      Used for Hibernate 3.0.5
    • Number of attachments :
      2

      Description

      Only the immediate children classes are mapped as union-subclass, the
      children of the mapped child are not mapped.

      Fix is attached.

      1. UnionSubclass_patch_1.0.3.txt
        0.8 kB
        M.Jerger
      2. UnionSubclass.jelly
        3 kB
        M.Jerger

        Activity

        Hide
        M.Jerger added a comment -

        Also available as patch to ver 1.0.3

        Show
        M.Jerger added a comment - Also available as patch to ver 1.0.3
        Hide
        Anatol Pomozov added a comment -

        Thank you very much for the patch.
        Could you also provide testcase for this bug? To be sure that it never happens in the future.

        Show
        Anatol Pomozov added a comment - Thank you very much for the patch. Could you also provide testcase for this bug? To be sure that it never happens in the future.
        Hide
        M.Jerger added a comment -

        I'm not used to maven.
        If you can explain how to setup maven & write test I can provide also some tests.

        Show
        M.Jerger added a comment - I'm not used to maven. If you can explain how to setup maven & write test I can provide also some tests.
        Hide
        Anatol Pomozov added a comment -

        Use Maven in fact very easy. Just download Maven1 bundle from offsite http://maven.apache.org/download.html unpack it add bin folder to path (and you could run maven command from any folder). Then go to hibernate-plugin/ folder and run "maven test". And you'll see how is TestDrivenDevelopment cool.

        Adding your test is also very easy. Look at hibernate-plugin/src/test folder there are a lot of different tests. And it would be cool if you add showcase for this bug.
        Testing system for xdoclet-plugins is really smart and everything that you should do is just create Java-file with with xdoclet tags that fails for current version (due to spotted bug) and mapping file that should be generated (if you patch would be applied). Testing system will invoke xdolcet for this java file and compare result with provided by you mapping file. If they are not the same -> test error.

        Show
        Anatol Pomozov added a comment - Use Maven in fact very easy. Just download Maven1 bundle from offsite http://maven.apache.org/download.html unpack it add bin folder to path (and you could run maven command from any folder). Then go to hibernate-plugin/ folder and run "maven test". And you'll see how is TestDrivenDevelopment cool. Adding your test is also very easy. Look at hibernate-plugin/src/test folder there are a lot of different tests. And it would be cool if you add showcase for this bug. Testing system for xdoclet-plugins is really smart and everything that you should do is just create Java-file with with xdoclet tags that fails for current version (due to spotted bug) and mapping file that should be generated (if you patch would be applied). Testing system will invoke xdolcet for this java file and compare result with provided by you mapping file. If they are not the same -> test error.
        Hide
        Konstantin Pribluda added a comment -

        Fixed in current CVS version ( I goofed with commit flag, so it's XDP-46 in CVS now )

        Show
        Konstantin Pribluda added a comment - Fixed in current CVS version ( I goofed with commit flag, so it's XDP-46 in CVS now )

          People

          • Assignee:
            Konstantin Pribluda
            Reporter:
            M.Jerger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: