Hi!
I have the follwing mapping:
Code:
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(
name="name_of_column",
length=16,
discriminatorType=DiscriminatorType.STRING
)
@DiscriminatorValue("identClassA")
@Entity(name="MY_TABLENAME")
public abstract class NameOfClassA { [...] }
@Entity
@DiscriminatorValue("identClassB")
public class NameOfClassB extends NameOfClassA { [...] }
This works fine, except for one thing: The entity name (MY_TABLENAME) is ignored and the name of the base class (in my case
NameOfClassA) is used as the table name. Is this a bug or am I doing something wrong?
All the best,
René