Skip to content

Commit 554dc2b

Browse files
cigalygavinking
authored andcommitted
HHH-19209 Test classes that are using find by entity instead of ID are annotated with @exclude
1 parent ddcdf1e commit 554dc2b

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/annotations/mapsid/NoIdClassMapsIdTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import jakarta.persistence.ManyToOne;
1313
import jakarta.persistence.MapsId;
1414
import jakarta.persistence.OneToMany;
15+
import org.hibernate.annotations.processing.Exclude;
1516
import org.hibernate.testing.orm.junit.DomainModel;
1617
import org.hibernate.testing.orm.junit.SessionFactory;
1718
import org.hibernate.testing.orm.junit.SessionFactoryScope;
@@ -82,6 +83,7 @@ static class Loan {
8283

8384

8485
@Entity(name = "Extension")
86+
@Exclude
8587
static class Extension {
8688
@Id
8789
private Long exLoanId;

hibernate-core/src/test/java/org/hibernate/orm/test/associations/CompositeIdAssociationTest.java

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

1515
import org.hibernate.annotations.NaturalId;
16+
import org.hibernate.annotations.processing.Exclude;
1617
import org.hibernate.orm.test.jpa.BaseEntityManagerFunctionalTestCase;
1718

1819
import org.junit.Test;
@@ -22,6 +23,7 @@
2223
/**
2324
* @author Vlad Mihalcea
2425
*/
26+
@Exclude
2527
public class CompositeIdAssociationTest extends BaseEntityManagerFunctionalTestCase {
2628

2729
@Override

hibernate-core/src/test/java/org/hibernate/orm/test/ecid/CompositeIdAssociationsWithEmbeddedCompositeIdTest.java

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

15+
import org.hibernate.annotations.processing.Exclude;
1516
import org.hibernate.testing.orm.junit.JiraKey;
1617
import org.hibernate.testing.orm.junit.DomainModel;
1718
import org.hibernate.testing.orm.junit.SessionFactory;
@@ -33,6 +34,7 @@
3334
}
3435
)
3536
@SessionFactory
37+
@Exclude
3638
public class CompositeIdAssociationsWithEmbeddedCompositeIdTest {
3739

3840
@AfterEach

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/IdManyToOneTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import jakarta.persistence.Id;
1212
import jakarta.persistence.ManyToOne;
1313

14+
import org.hibernate.annotations.processing.Exclude;
1415
import org.hibernate.orm.test.jpa.BaseEntityManagerFunctionalTestCase;
1516

1617
import org.junit.Test;
@@ -21,6 +22,7 @@
2122
/**
2223
* @author Vlad Mihalcea
2324
*/
25+
@Exclude
2426
public class IdManyToOneTest extends BaseEntityManagerFunctionalTestCase {
2527

2628
@Override

0 commit comments

Comments
 (0)