This question is locked. New answers and comments are not allowed.
Hello,
I've a problem with the key generator in a subclass entity. I've two classes, one parent class and one subclass, using flat like subclass inheritance strategy, and default strategy in the superclass, with only one table for both classes. I'm using visual designer, and I set backend calculated in the identity mechanism of parent class.
I cannot set any Identity Mechanism in the subclass, and when I add a subclass object to the context and save the changes, the object always has 0 like ID. I cannot set autoinc in the database because an error is raised when I try to add a new object to the context, telling that the subclasses cannot have key generator set.
How can I make works the key generator in the subclass?
Thanks in advance, and sorry for my English
I've a problem with the key generator in a subclass entity. I've two classes, one parent class and one subclass, using flat like subclass inheritance strategy, and default strategy in the superclass, with only one table for both classes. I'm using visual designer, and I set backend calculated in the identity mechanism of parent class.
I cannot set any Identity Mechanism in the subclass, and when I add a subclass object to the context and save the changes, the object always has 0 like ID. I cannot set autoinc in the database because an error is raised when I try to add a new object to the context, telling that the subclasses cannot have key generator set.
How can I make works the key generator in the subclass?
Thanks in advance, and sorry for my English