My class hierarchy looks like this.
This is very simple example for ClassPerHierarchy inheritance and I have set the DiscriminatorColumn and DiscriminatorValue. While doing the query, I also want to retrieve the value in discriminator column. But the value does not come straightforward. I tried by declaring a field "vehicleModel" in Vehicle class but this throws out "Duplicate column" exception.
Any idea how this can be done ?