HHH-8019 Multiple tests creating identifiers too long for Oracle
This commit is contained in:
parent
1a20b129ca
commit
7bf544716a
|
@ -28,6 +28,7 @@ import javax.persistence.FetchType;
|
|||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.hibernate.annotations.Proxy;
|
||||
import org.hibernate.envers.Audited;
|
||||
|
@ -39,6 +40,8 @@ import org.hibernate.envers.NotAudited;
|
|||
@Entity
|
||||
@Audited
|
||||
@Proxy(lazy=false)
|
||||
// Class name is too long of an identifier for Oracle.
|
||||
@Table(name = "EdOneToOne")
|
||||
public final class BidirectionalEagerAnnotationRefEdOneToOne {
|
||||
/**
|
||||
* ID column.
|
||||
|
|
|
@ -30,6 +30,7 @@ import javax.persistence.GeneratedValue;
|
|||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.hibernate.annotations.Proxy;
|
||||
import org.hibernate.envers.Audited;
|
||||
|
@ -40,6 +41,8 @@ import org.hibernate.envers.Audited;
|
|||
@Entity
|
||||
@Audited
|
||||
@Proxy(lazy=false)
|
||||
//Class name is too long of an identifier for Oracle.
|
||||
@Table(name = "IngOneToOne")
|
||||
public final class BidirectionalEagerAnnotationRefIngOneToOne {
|
||||
/**
|
||||
* ID column.
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
<!-- Test class for issue HHH-3854. Restricting creation of proxy objects is essential. -->
|
||||
<hibernate-mapping package="org.hibernate.envers.test.entities.onetoone" default-lazy="false">
|
||||
<class name="BidirectionalEagerHbmRefIngPK" table="BIDIRECTIONAL_REFERENCING_ENTITY">
|
||||
<id name="id" type="long" column="BIDIRECTIONAL_REFERENCING_ID">
|
||||
<class name="BidirectionalEagerHbmRefIngPK" table="REFERENCING">
|
||||
<id name="id" type="long" column="REFERENCING_ID">
|
||||
<generator class="native" />
|
||||
</id>
|
||||
<property name="data" />
|
||||
|
@ -36,8 +36,8 @@
|
|||
class="BidirectionalEagerHbmRefEdPK" column="BIDIRECTIONAL_REFERENCED_ID" />
|
||||
</class>
|
||||
|
||||
<class name="BidirectionalEagerHbmRefEdPK" table="BIDIRECTIONAL_REFERENCED_ENTITY">
|
||||
<id name="id" type="long" column="BIDIRECTIONAL_REFERENCED_ID">
|
||||
<class name="BidirectionalEagerHbmRefEdPK" table="REFERENCED_ENTITY">
|
||||
<id name="id" type="long" column="REFERENCED_ID">
|
||||
<generator class="native" />
|
||||
</id>
|
||||
<property name="data" />
|
||||
|
|
Loading…
Reference in New Issue