- * What's even better? Fork hibernate-orm itself, add your test case directly to a module's unit tests, then - * submit it as a PR! - */ -@DomainModel( - annotatedClasses = { - // Add your entities here, e.g.: - // Foo.class, - // Bar.class - } -) -@ServiceRegistry( - // Add in any settings that are specific to your test. See resources/hibernate.properties for the defaults. - settings = { - // For your own convenience to see generated queries: - @Setting(name = AvailableSettings.SHOW_SQL, value = "true"), - @Setting(name = AvailableSettings.FORMAT_SQL, value = "true"), - // @Setting( name = AvailableSettings.GENERATE_STATISTICS, value = "true" ), - - // Other settings that will make your test case run under similar configuration that Quarkus is using by default: - @Setting(name = AvailableSettings.PREFERRED_POOLED_OPTIMIZER, value = "pooled-lo"), - @Setting(name = AvailableSettings.DEFAULT_BATCH_FETCH_SIZE, value = "16"), - @Setting(name = AvailableSettings.BATCH_FETCH_STYLE, value = "PADDED"), - @Setting(name = AvailableSettings.QUERY_PLAN_CACHE_MAX_SIZE, value = "2048"), - @Setting(name = AvailableSettings.DEFAULT_NULL_ORDERING, value = "none"), - @Setting(name = AvailableSettings.IN_CLAUSE_PARAMETER_PADDING, value = "true"), - @Setting(name = AvailableSettings.SEQUENCE_INCREMENT_SIZE_MISMATCH_STRATEGY, value = "none"), - - // Add your own settings that are a part of your quarkus configuration: - // @Setting( name = AvailableSettings.SOME_CONFIGURATION_PROPERTY, value = "SOME_VALUE" ), - } -) -@SessionFactory -@BytecodeEnhanced -class QuarkusLikeORMUnitTestCase { - - // Add your tests, using standard JUnit. - @Test - void hhh123Test(SessionFactoryScope scope) throws Exception { - scope.inTransaction( session -> { - // Do stuff... - } ); - } -} diff --git a/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/Summary.java b/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/Summary.java new file mode 100644 index 00000000..41c45da1 --- /dev/null +++ b/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/Summary.java @@ -0,0 +1,6 @@ +package org.hibernate.bugs; + +public record Summary( + long id +) { +} \ No newline at end of file