HHH-11315 - EnhancerTest fails on Oracle databases

This commit is contained in:
Jan Martiska 2016-12-07 10:48:51 +01:00 committed by Vlad Mihalcea
parent ed804d500e
commit a369120504
4 changed files with 20 additions and 13 deletions

View File

@ -8,6 +8,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;
@ -162,6 +163,7 @@ public class MixedAccessTestTask extends AbstractEnhancerTestTask {
}
@Entity
@Table(name = "other")
@Access( AccessType.FIELD )
private static class TestOtherEntity {

View File

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

View File

@ -13,6 +13,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.cfg.Configuration;
@ -85,10 +86,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
@ -109,10 +111,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;

View File

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