Skip to content

Commit b481c7f

Browse files
committed
HHH-18693 @Exclude-ing "troublemakers" with illegal URI character(s) in entity name
1 parent 29f74d4 commit b481c7f

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/collection/bag/PersistentBagContainsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import jakarta.persistence.ManyToOne;
1515
import jakarta.persistence.OneToMany;
1616

17+
import org.hibernate.annotations.processing.Exclude;
1718
import org.hibernate.testing.orm.junit.JiraKey;
1819
import org.hibernate.testing.orm.junit.DomainModel;
1920
import org.hibernate.testing.orm.junit.SessionFactory;
@@ -81,6 +82,7 @@ public void testContains(SessionFactoryScope scope) {
8182
}
8283

8384
@Entity(name = "`Order`")
85+
@Exclude
8486
public static class Order {
8587

8688
@Id

hibernate-core/src/test/java/org/hibernate/orm/test/event/entity/MergeListPreAndPostPersistTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import jakarta.persistence.OneToMany;
1414

1515
import org.hibernate.Session;
16+
import org.hibernate.annotations.processing.Exclude;
1617
import org.hibernate.event.service.spi.EventListenerRegistry;
1718
import org.hibernate.event.spi.EventType;
1819
import org.hibernate.event.spi.PostInsertEvent;
@@ -67,6 +68,7 @@ public void testAllPropertiesCopied() {
6768
}
6869

6970
@Entity(name = "`Order`")
71+
@Exclude
7072
private static class Order {
7173
@Id
7274
public Long id;

hibernate-core/src/test/java/org/hibernate/orm/test/hql/QuotedIdentifierTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import java.util.List;
88

9+
import org.hibernate.annotations.processing.Exclude;
910
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
1011
import org.junit.After;
1112
import org.junit.Before;
@@ -81,6 +82,7 @@ public void testQuotedFunctionName() {
8182
}
8283

8384
@Entity(name = "The Person")
85+
@Exclude
8486
public static class Person {
8587

8688
@Id

hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateWithUseJdbcMetadataDefaultsSettingToFalseAndQuotedNameTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import jakarta.persistence.Entity;
1515
import jakarta.persistence.Id;
1616

17+
import org.hibernate.annotations.processing.Exclude;
1718
import org.hibernate.boot.MetadataSources;
1819
import org.hibernate.boot.registry.StandardServiceRegistry;
1920
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
@@ -126,6 +127,7 @@ private void checkSchemaHasBeenGenerated() throws Exception {
126127
}
127128

128129
@Entity(name = "`Another_Test_Entity`")
130+
@Exclude
129131
public static class AnotherTestEntity {
130132
@Id
131133
private Long id;

0 commit comments

Comments
 (0)