Updated at 25.11.2009 9:20:20
Thanks, but dont work.
When build domain throws exception "Default generator can serve hierarchy with exactly one key field."
This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by Alexey Abretov.
asked Nov 25 '09 at 08:58
Here is the sample with multicolumn key:
Note how Key(1), Key(0) attributes are used to set the position of particular field in multicolumn key.
Sorry, forgot to say that you should indicate that default key generator must not be used for this class, as you set key fields by yourself in constructor:
answered Nov 25 '09 at 09:07