NaturalId not working when used with Version?

Original Post Steve Bering's Avatar

Steve Bering

25 Mar, 2010 07:07 PM via web

I have a class that has both a version (sql timestamp) and a natural id value. When testing this with hbm mappings, these work fine when placed in the file such that the natural-id tag is prior to the version tag. However, when FNH generates the mapping document, I can see that the version tag is before the natural-id tag. This results in an error when compiling the mappings that states that natural-id is an invalid child element. This works with either version or natural-id in isolation, but fails when these are combined in the same classmap.

    Reply to this discussion

    Preview Comments are parsed with Markdown. Help with syntax

    Attached Files

      You can attach files up to 10MB

      What day comes after Monday?

      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