HHH-11315 - EnhancerTest fails on Oracle databases
(cherry picked from commit a369120504
)
This commit is contained in:
parent
7d7aef7ecc
commit
331c79ea88
|
@ -11,6 +11,7 @@ import javax.persistence.AccessType;
|
|||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
import javax.script.ScriptEngine;
|
||||
import javax.script.ScriptEngineManager;
|
||||
|
@ -140,6 +141,7 @@ public class MixedAccessTestTask extends AbstractEnhancerTestTask {
|
|||
}
|
||||
|
||||
@Entity
|
||||
@Table(name = "other")
|
||||
@Access( AccessType.FIELD )
|
||||
private static class TestOtherEntity {
|
||||
|
||||
|
|
|
@ -6,21 +6,21 @@
|
|||
*/
|
||||
package org.hibernate.test.bytecode.enhancement.lazy.HHH_10708;
|
||||
|
||||
import org.hibernate.Session;
|
||||
import org.hibernate.cfg.Configuration;
|
||||
import org.hibernate.cfg.Environment;
|
||||
import org.hibernate.test.bytecode.enhancement.AbstractEnhancerTestTask;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.ElementCollection;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToMany;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import org.hibernate.Session;
|
||||
import org.hibernate.cfg.Configuration;
|
||||
import org.hibernate.cfg.Environment;
|
||||
import org.hibernate.test.bytecode.enhancement.AbstractEnhancerTestTask;
|
||||
import org.junit.Assert;
|
||||
|
||||
public class UnexpectedDeleteThreeTestTask extends AbstractEnhancerTestTask {
|
||||
|
||||
|
@ -97,7 +97,7 @@ public class UnexpectedDeleteThreeTestTask extends AbstractEnhancerTestTask {
|
|||
|
||||
// --- //
|
||||
|
||||
@Entity public static class Child {
|
||||
@Entity(name = "UChild") public static class Child {
|
||||
|
||||
private Long id;
|
||||
|
||||
|
@ -114,7 +114,7 @@ public class UnexpectedDeleteThreeTestTask extends AbstractEnhancerTestTask {
|
|||
|
||||
}
|
||||
|
||||
@Entity public static class Parent {
|
||||
@Entity(name = "UParent") public static class Parent {
|
||||
|
||||
private Long id;
|
||||
private Set<String> names;
|
||||
|
|
|
@ -12,6 +12,7 @@ import javax.persistence.GeneratedValue;
|
|||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.Session;
|
||||
|
@ -100,10 +101,11 @@ public class LazyProxyOnEnhancedEntityTestTask extends AbstractEnhancerTestTask
|
|||
}
|
||||
|
||||
@Entity
|
||||
@Table(name = "LazyProxyTask_Parent")
|
||||
public static class Parent {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@OneToOne(fetch = FetchType.LAZY
|
||||
|
@ -124,10 +126,11 @@ public class LazyProxyOnEnhancedEntityTestTask extends AbstractEnhancerTestTask
|
|||
}
|
||||
|
||||
@Entity
|
||||
@Table(name = "LazyProxyTask_Child")
|
||||
public static class Child {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
|
|
|
@ -3,6 +3,7 @@ package org.hibernate.test.bytecode.enhancement.mapped;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Version;
|
||||
import org.hibernate.cfg.Configuration;
|
||||
import org.hibernate.cfg.Environment;
|
||||
|
@ -62,6 +63,7 @@ public class MappedSuperclassTestTask extends AbstractEnhancerTestTask {
|
|||
}
|
||||
}
|
||||
|
||||
@Table(name="MSTT_EMPLOYEE")
|
||||
@Entity private static class Employee extends Person {
|
||||
|
||||
private String title;
|
||||
|
|
Loading…
Reference in New Issue