@Entity
@Table(name = "Test")
@Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name = "testType", discriminatorType = DiscriminatorType.STRING, length = 10)
public abstract class TestEntity
{
@Column(insertable = false, updatable = false)
private String testType;
}