HHH-10036 - Fix identifier is too long exception for test EnhancerTest

This commit is contained in:
Andrea Boriero 2015-08-18 15:01:04 +01:00
parent a9daa65c12
commit 97606e8bf0
4 changed files with 17 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import javax.persistence.Basic;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.Hibernate;
import org.hibernate.Session;
@ -64,6 +65,7 @@ public class LazyBasicFieldNotInitializedTestTask extends AbstractEnhancerTestTa
}
@javax.persistence.Entity
@Table(name = "lazy_field_not_init")
public static class Entity {
@Id
@GeneratedValue

View File

@ -11,6 +11,7 @@ import javax.persistence.Basic;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.Hibernate;
import org.hibernate.Session;
@ -19,6 +20,7 @@ import org.hibernate.cfg.Environment;
import org.hibernate.test.bytecode.enhancement.AbstractEnhancerTestTask;
import org.hibernate.test.bytecode.enhancement.EnhancerTestUtils;
import org.junit.Assert;
/**
@ -113,6 +115,7 @@ public class LazyBasicFieldAccessTestTask extends AbstractEnhancerTestTask {
}
@javax.persistence.Entity
@Table(name = "lazy_field_access")
public static class Entity {
private Long id;

View File

@ -13,6 +13,7 @@ import javax.persistence.Basic;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.Hibernate;
import org.hibernate.Session;
@ -116,6 +117,7 @@ public class LazyBasicPropertyAccessTestTask extends AbstractEnhancerTestTask {
@javax.persistence.Entity
@Access(AccessType.FIELD )
@Table(name="lazy_property_access")
public static class Entity {
@Id
@GeneratedValue

View File

@ -9,6 +9,8 @@ package org.hibernate.test.bytecode.enhancement.merge;
import java.util.Arrays;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Embeddable;
import javax.persistence.Embedded;
@ -16,6 +18,8 @@ import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Table;
import org.hibernate.Session;
import org.hibernate.cfg.Configuration;
@ -23,6 +27,7 @@ import org.hibernate.cfg.Environment;
import org.hibernate.test.bytecode.enhancement.AbstractEnhancerTestTask;
import org.hibernate.test.bytecode.enhancement.EnhancerTestUtils;
import org.junit.Assert;
/**
@ -110,6 +115,7 @@ public class CompositeMergeTestTask extends AbstractEnhancerTestTask {
}
@Entity
@Table(name = "parent_entity")
private static class ParentEntity {
@Id
@ -127,6 +133,7 @@ public class CompositeMergeTestTask extends AbstractEnhancerTestTask {
}
@Embeddable
@Table(name = "address")
private static class Address {
private String street;
@ -137,11 +144,13 @@ public class CompositeMergeTestTask extends AbstractEnhancerTestTask {
}
@Embeddable
@Table(name = "country")
private static class Country {
private String name;
@ElementCollection
@CollectionTable(name = "languages", joinColumns = @JoinColumn(name = "id", referencedColumnName = "id"))
List<String> languages;
}