Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
2.4.1
-
None
-
None
Description
We have tried to update openjpa version from 2.2.0 to 2.4.1.
A blocking error occurred in version 2.4.1 (works in 2.4.0)
Enhancement of Inheritance class failed:
Example:
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class Vehicule{
@Id
@Column(name = "VEHICULE_ID")
private int vehiculeId;
@Id
@Column(name = "BRAND")
private String brand;
//get and set methods
...
}
Two child class:
@Entity
@Table(name="TRUCK")
public class Truck extends Vehicule{
private int noOfContainers;
public int getNoOfContainers()
{ return noOfContainers; }public void setNoOfContainers(int noOfContainers)
{ this.noOfContainers = noOfContainers; }}
@Entity
@Table(name="CAR")
public class Car extends Vehicule{
private int noOfDoors;
public int getNoOfDoors()
{ return noOfDoors; }public void setNoOfDoors(int noOfDoors)
{ this.noOfDoors = noOfDoors; }}