mirror of https://github.com/apache/openjpa.git
OPENJPA-1597 Make entity table names unique
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@927521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1c2f4470a2
commit
7382ba2f84
|
@ -28,7 +28,7 @@ import javax.persistence.Table;
|
|||
import javax.persistence.Transient;
|
||||
|
||||
@Entity
|
||||
@Table(name="CONTACT")
|
||||
@Table(name="CONTACT_ANNUITY")
|
||||
@AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_TS"))
|
||||
public class Contact extends AnnuityPersistebleObject implements IContact {
|
||||
private static final long serialVersionUID = 4015672780551057807L;
|
||||
|
|
|
@ -29,10 +29,12 @@ import javax.persistence.InheritanceType;
|
|||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.Lob;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@Table(name="PERSON_ANNUITY")
|
||||
@Inheritance(strategy=InheritanceType.JOINED)
|
||||
@AttributeOverride(name="lastUpdateDate", column=@Column(name="LAST_UPDATE_TS"))
|
||||
public class Person extends AnnuityPersistebleObject implements IPerson {
|
||||
|
|
Loading…
Reference in New Issue