Version and NaturalId generates MappingException

Original Post Kevin Mees's Avatar

Kevin Mees

17 Jun, 2010 02:21 PM via web

When i use Id(), Version() and NaturalId() in a ClassMap, the generated hbm file is of the following form:

<id>
...
</id>
<version> 
...
</version>
<natural-id>
...
</natural-id>
...

the problem is, that the <natural-id/> tag must be between <id/> and <version/> and not after <version/>

    Reply to this discussion

    Preview Comments are parsed with Markdown. Help with syntax

    Attached Files

      You can attach files up to 10MB

      What is 14 minus 4?

      Recent Discussions

      05 Jul, 2010 10:29 PM
      05 Jul, 2010 12:45 PM
      05 Jul, 2010 12:42 PM
      05 Jul, 2010 12:17 PM
      05 Jul, 2010 12:12 PM

       

      03 Jul, 2010 12:26 AM
      02 Jul, 2010 02:17 PM
      02 Jul, 2010 08:18 AM
      02 Jul, 2010 12:20 AM
      01 Jul, 2010 10:14 PM