My database table has a column EXECUTION_LEVEL defined as NUMBER. When I add the mapping condition EXECUTION_LEVEL = 2, I get an error
Problem in mapping fragments starting at line ...:condition member 'JOB_ACTIVITIES.EXECUTION_LEVEL' with a condition other than 'IsNull=False' is mapped. Either remove the condition on JOB_ACTIVITIES.EXECUTION_LEVEL or remove it from the mapping.
How do I resolve this?
Inheritance per Hierarchy
The first solution is to remove the discriminator property from the conceptual entity, leaving it in mapping for inheritance.
In case you need the conceptual property you can try something like this workaround.
In case you need the conceptual property you can try something like this workaround.