I have a single entity object A which map 1 to 1 with the table and another entity object "AjoinB" extended from the single entity object and join with another entity object. I'm getting this "DTYPE" invalid identifier as a result of this. Below is an example
@Entity
@Table(name="TableA")
@NamedQuery(...)
public class A implements Serializable{
@EmbeddedId
private ABC id;
@Column(name="...")
//getters/setters
@Entity
@Table(name="TableA")
@NameQuery(...)
public class AjoinB extends A{
@OneToOne
@JoinColumn({...}
private B b;
//gettter/setters
Does anybody know how to fix the problem. I know doing inheritance stuff would generate that DTYPE but my table doesn't have that column :(
To be more clear, can I have a single table inheritance without discriminator column? it makes no sense to have discriminator column in my entity