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.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.OneToOne; import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Proxy; import org.hibernate.annotations.Proxy;
import org.hibernate.envers.Audited; import org.hibernate.envers.Audited;
@ -39,6 +40,8 @@
@Entity @Entity
@Audited @Audited
@Proxy(lazy=false) @Proxy(lazy=false)
// Class name is too long of an identifier for Oracle.
@Table(name = "EdOneToOne")
public final class BidirectionalEagerAnnotationRefEdOneToOne { public final class BidirectionalEagerAnnotationRefEdOneToOne {
/** /**
* ID column. * ID column.

View File

@ -30,6 +30,7 @@
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.JoinColumn; import javax.persistence.JoinColumn;
import javax.persistence.OneToOne; import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Proxy; import org.hibernate.annotations.Proxy;
import org.hibernate.envers.Audited; import org.hibernate.envers.Audited;
@ -40,6 +41,8 @@
@Entity @Entity
@Audited @Audited
@Proxy(lazy=false) @Proxy(lazy=false)
//Class name is too long of an identifier for Oracle.
@Table(name = "IngOneToOne")
public final class BidirectionalEagerAnnotationRefIngOneToOne { public final class BidirectionalEagerAnnotationRefIngOneToOne {
/** /**
* ID column. * ID column.

View File

@ -27,8 +27,8 @@
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!-- Test class for issue HHH-3854. Restricting creation of proxy objects is essential. --> <!-- 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"> <hibernate-mapping package="org.hibernate.envers.test.entities.onetoone" default-lazy="false">
<class name="BidirectionalEagerHbmRefIngPK" table="BIDIRECTIONAL_REFERENCING_ENTITY"> <class name="BidirectionalEagerHbmRefIngPK" table="REFERENCING">
<id name="id" type="long" column="BIDIRECTIONAL_REFERENCING_ID"> <id name="id" type="long" column="REFERENCING_ID">
<generator class="native" /> <generator class="native" />
</id> </id>
<property name="data" /> <property name="data" />
@ -36,8 +36,8 @@
class="BidirectionalEagerHbmRefEdPK" column="BIDIRECTIONAL_REFERENCED_ID" /> class="BidirectionalEagerHbmRefEdPK" column="BIDIRECTIONAL_REFERENCED_ID" />
</class> </class>
<class name="BidirectionalEagerHbmRefEdPK" table="BIDIRECTIONAL_REFERENCED_ENTITY"> <class name="BidirectionalEagerHbmRefEdPK" table="REFERENCED_ENTITY">
<id name="id" type="long" column="BIDIRECTIONAL_REFERENCED_ID"> <id name="id" type="long" column="REFERENCED_ID">
<generator class="native" /> <generator class="native" />
</id> </id>
<property name="data" /> <property name="data" />