HHH-8019 Multiple tests creating identifiers too long for Oracle

This commit is contained in:
Brett Meyer 2013-02-19 14:15:21 -05:00
parent 1a20b129ca
commit 7bf544716a
3 changed files with 10 additions and 4 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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" />