mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 08:05:05 +00:00
Fix naming for entities in a test for Oracle 11
This commit is contained in:
parent
26c03b4fec
commit
8ae68a66b6
@ -485,7 +485,7 @@ public void joinedInheritanceWithSubEntityAttributeFiltering() {
|
||||
em.close();
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Foo")
|
||||
@Table(name = "foo")
|
||||
public static class Foo {
|
||||
|
||||
@ -500,7 +500,7 @@ public static class Foo {
|
||||
public Baz baz;
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Bar")
|
||||
@Table(name = "bar")
|
||||
public static class Bar {
|
||||
|
||||
@ -512,7 +512,7 @@ public static class Bar {
|
||||
public Set<Foo> foos = new HashSet<Foo>();
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Baz")
|
||||
@Table(name = "baz")
|
||||
public static class Baz {
|
||||
|
||||
@ -525,7 +525,7 @@ public static class Baz {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Book")
|
||||
@Table(name = "book")
|
||||
public static class Book {
|
||||
@Id
|
||||
@ -544,7 +544,7 @@ public Book(Author author) {
|
||||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Prize")
|
||||
public static class Prize {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
@ -563,7 +563,7 @@ public Prize(Author author) {
|
||||
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Author")
|
||||
@Table(name = "author")
|
||||
public static class Author {
|
||||
@Id
|
||||
@ -588,7 +588,7 @@ public Author(String name) {
|
||||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "AnimalOwner")
|
||||
public static class AnimalOwner {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
@ -598,7 +598,7 @@ public static class AnimalOwner {
|
||||
public Animal animal;
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Animal")
|
||||
@Inheritance(strategy = InheritanceType.JOINED)
|
||||
public static abstract class Animal {
|
||||
@Id
|
||||
@ -608,7 +608,7 @@ public static abstract class Animal {
|
||||
public String name;
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Dog")
|
||||
@DiscriminatorValue("DOG")
|
||||
public static class Dog extends Animal {
|
||||
|
||||
@ -619,7 +619,7 @@ public Dog() {
|
||||
}
|
||||
}
|
||||
|
||||
@Entity
|
||||
@Entity(name = "Cat")
|
||||
@DiscriminatorValue("CAT")
|
||||
public static class Cat extends Animal {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user