AI Slop Code Risk Monitor

hibernate/hibernate-orm

SlopCodeMonitor badge for hibernate/hibernate-orm Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Idiomatic persistence for Java and relational databases

1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for hibernate/hibernate-orm, a Java project with 6,482 GitHub stars. SynthScan examined 2,305,414 lines of code across 20396 source files, recording 1481 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 1.7 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
6.5K
Stars
Java
Language
2.3M
Lines of Code
20.4K
Files
1.5K
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 1.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 847 finding(s).

Hallucinated Dependency & Supply Chain Risk 6.3/100 · LOW

Are imports declared and package/API names verified? 615 finding(s).

Agent Over-Engineering Ratio 0.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 23 finding(s).

PR Review Velocity Impact 7.5/100 · LOW

Which changes need focused human review? 1481 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 215HIGH 21MEDIUM 24LOW 1221

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1481 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators215 hits · 2548 pts
SeverityFileLineSnippetContext
CRITICAL…t/java/org/hibernate/processor/test/util/TestUtil.java315 List.of( "-processor", org.hibernate.processor.HibernateProcessor.class.getName() ), sourceFiles );CODE
CRITICAL…t/java/org/hibernate/processor/test/util/TestUtil.java321 List.of( "-processor", org.hibernate.processor.HibernateProcessor.class.getName() ), sourceFiles );CODE
CRITICAL…java/org/hibernate/processor/test/namedquery/Book.java25 query = "select new org.hibernate.processor.test.namedquery.TitleAndIsbn(title,isbn) from Book")CODE
CRITICAL…test/java/org/hibernate/processor/test/hqlsql/Dao.java61 @HQL("select new org.hibernate.processor.test.hqlsql.Dto(title, pages) from Book")CODE
CRITICAL…/hibernate/tool/ant/HibernateToolTaskExtendedTest.java30 task.setTemplatePath(new org.apache.tools.ant.types.Path(null));CODE
CRITICAL…/hibernate/tool/ant/HibernateToolTaskExtendedTest.java44 org.apache.tools.ant.types.Path path = new org.apache.tools.ant.types.Path(null);CODE
CRITICAL…java/org/hibernate/tool/ant/ExporterConfigureTest.java279 org.apache.tools.ant.types.Path path = new org.apache.tools.ant.types.Path(parent.getProject());CODE
CRITICAL…ava/org/hibernate/tool/enhance/BuildToolGuideTest.java69 var classpath = new org.apache.tools.ant.types.Path( project, System.getProperty( "guide.test.classpath" ) );CODE
CRITICAL…ate/tool/reveng/internal/xml/XMLPrettyPrinterTest.java88 org.junit.jupiter.api.Assertions.assertEquals(expected, actual);CODE
CRITICAL…ng/internal/core/dialect/SQLServerMetaDataDialect.java53 element.put("HIBERNATE_STRATEGY", org.hibernate.id.uuid.UuidGenerator.class.getName());CODE
CRITICAL…/tool/reveng/internal/export/java/EntityPOJOClass.java256 else if ( org.hibernate.id.uuid.UuidGenerator.class.getName().equals( strategy ) ) {CODE
CRITICAL⚡…/tool/reveng/internal/export/java/EntityPOJOClass.java296 case "enhanced-sequence", "sequence" -> org.hibernate.id.enhanced.SequenceStyleGenerator.class.getName();CODE
CRITICAL⚡…/tool/reveng/internal/export/java/EntityPOJOClass.java297 case "enhanced-table", "table" -> org.hibernate.id.enhanced.TableGenerator.class.getName();CODE
CRITICAL⚡…/tool/reveng/internal/export/java/EntityPOJOClass.java298 case "identity" -> org.hibernate.id.IdentityGenerator.class.getName();CODE
CRITICAL⚡…/tool/reveng/internal/export/java/EntityPOJOClass.java299 case "increment" -> org.hibernate.id.IncrementGenerator.class.getName();CODE
CRITICAL⚡…/tool/reveng/internal/export/java/EntityPOJOClass.java300 case "foreign" -> org.hibernate.id.ForeignGenerator.class.getName();CODE
CRITICAL⚡…/tool/reveng/internal/export/java/EntityPOJOClass.java301 case "uuid", "uuid.hex" -> org.hibernate.id.UUIDHexGenerator.class.getName();CODE
CRITICAL⚡…/tool/reveng/internal/export/java/EntityPOJOClass.java302 case "uuid2" -> org.hibernate.id.UUIDGenerator.class.getName();CODE
CRITICAL⚡…/tool/reveng/internal/export/java/EntityPOJOClass.java303 case "select" -> org.hibernate.id.SelectGenerator.class.getName();CODE
CRITICAL…lectprovider/ClassificationMetadataResolutionTest.java85 assertEquals( "8.1.3", new org.hibernate.orm.tooling.dialectprovider.internal.ClassificationMetadataReader()CODE
CRITICAL…alectprovider/DialectProviderPluginFunctionalTest.java593 + " return org.junit.jupiter.api.DynamicContainer.dynamicContainer("CODE
CRITICAL…ialectprovider/HibernateDialectProviderPluginTest.java66 org.hibernate.orm.tooling.dialectprovider.internal.ContractTestGenerator.generate(CODE
CRITICAL…ialectprovider/HibernateDialectProviderPluginTest.java72 org.hibernate.orm.tooling.dialectprovider.internal.ContractTestGenerator.generate(CODE
CRITICAL…org/hibernate/vector/SpannerVectorIntegrationTest.java486 new org.hibernate.dialect.schema.internal.SpannerPostgreSQLIndexExporter( pgDialect );CODE
CRITICAL…org/hibernate/vector/SpannerVectorIntegrationTest.java523 new org.hibernate.dialect.schema.internal.SpannerIndexExporter( new SpannerDialect() );CODE
CRITICAL…hibernate/community/dialect/CUBRIDDialectTestCase.java17 new org.hibernate.dialect.schema.spi.AlterColumnTypeRequest( "age", "integer", "integer not null" )CODE
CRITICAL…ity/dialect/IdentityAndGeneratedValuesSupportTest.java64 final var hsql1 = new org.hibernate.community.dialect.identity.internal.HSQLIdentityColumnSupport(CODE
CRITICAL…rg/hibernate/community/dialect/SingleStoreDialect.java267 new org.hibernate.community.dialect.lock.internal.SingleStoreTransactionConcurrencyResolver( isForUpdateLockingEnablCODE
CRITICAL…rg/hibernate/community/dialect/SingleStoreDialect.java488 return org.hibernate.dialect.queryhint.spi.QueryHints.addUseIndexHint( query, hints );CODE
CRITICAL…rg/hibernate/community/dialect/SingleStoreDialect.java1041 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.mysqlInline();CODE
CRITICAL…a/org/hibernate/community/dialect/FirebirdDialect.java629 ? org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn()CODE
CRITICAL…a/org/hibernate/community/dialect/FirebirdDialect.java630 : org.hibernate.dialect.schema.spi.SchemaCommentSupports.none();CODE
CRITICAL…bernate/community/dialect/PostgreSQLLegacyDialect.java240 private final UniqueDelegate uniqueDelegate = new org.hibernate.dialect.unique.spi.DelegatingUniqueDelegate(CODE
CRITICAL…bernate/community/dialect/PostgreSQLLegacyDialect.java1038 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn();CODE
CRITICAL…org/hibernate/community/dialect/DB2iLegacyDialect.java134 : org.hibernate.dialect.sequence.spi.SequenceSupports.none();CODE
CRITICAL…g/hibernate/community/dialect/OracleLegacyDialect.java1288 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn();CODE
CRITICAL…rg/hibernate/community/dialect/MySQLLegacyDialect.java169 private final UniqueDelegate uniqueDelegate = new org.hibernate.dialect.unique.spi.DelegatingUniqueDelegate(CODE
CRITICAL…rg/hibernate/community/dialect/MySQLLegacyDialect.java170 org.hibernate.dialect.unique.spi.UniqueDelegates.alterTable( this ) ) {CODE
CRITICAL…rg/hibernate/community/dialect/MySQLLegacyDialect.java983 : org.hibernate.dialect.queryhint.spi.QueryHints.addUseIndexHint( query, hints );CODE
CRITICAL…rg/hibernate/community/dialect/MySQLLegacyDialect.java992 return org.hibernate.dialect.sequence.spi.SequenceSupports.none();CODE
CRITICAL…rg/hibernate/community/dialect/MySQLLegacyDialect.java1094 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.mysqlInline();CODE
CRITICAL…ava/org/hibernate/community/dialect/IngresDialect.java162 sequenceSupport = org.hibernate.dialect.sequence.spi.SequenceSupports.ansi();CODE
CRITICAL…org/hibernate/community/dialect/HANALegacyDialect.java946 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.hanaInline();CODE
CRITICAL…ava/org/hibernate/community/dialect/SQLiteDialect.java558 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn();CODE
CRITICAL…a/org/hibernate/community/dialect/AltibaseDialect.java670 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn();CODE
CRITICAL…a/org/hibernate/community/dialect/H2LegacyDialect.java214 private final UniqueDelegate uniqueDelegate = new org.hibernate.dialect.unique.spi.DelegatingUniqueDelegate(CODE
CRITICAL…a/org/hibernate/community/dialect/H2LegacyDialect.java859 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn();CODE
CRITICAL…a/org/hibernate/community/dialect/H2LegacyDialect.java1054 return org.hibernate.dialect.queryhint.spi.QueryHints.addUseIndexHint( query, hints );CODE
CRITICAL…va/org/hibernate/community/dialect/GaussDBDialect.java713 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn();CODE
CRITICAL…/org/hibernate/community/dialect/DB2LegacyDialect.java956 : org.hibernate.dialect.sequence.spi.SequenceSupports.db2();CODE
CRITICAL…/org/hibernate/community/dialect/DB2LegacyDialect.java1048 return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn();CODE
CRITICAL…ava/org/hibernate/community/dialect/CUBRIDDialect.java168 new org.hibernate.dialect.unique.spi.DelegatingUniqueDelegate(CODE
CRITICAL…ava/org/hibernate/community/dialect/CUBRIDDialect.java169 org.hibernate.dialect.unique.spi.UniqueDelegates.alterTable( this ) ) {CODE
CRITICAL…ibernate/community/dialect/SQLServerLegacyDialect.java798 return org.hibernate.dialect.sequence.spi.SequenceSupports.none();CODE
CRITICAL…org/hibernate/community/dialect/HSQLLegacyDialect.java763 ? org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn()CODE
CRITICAL…org/hibernate/community/dialect/HSQLLegacyDialect.java764 : org.hibernate.dialect.schema.spi.SchemaCommentSupports.none();CODE
CRITICAL…org/hibernate/community/dialect/DB2zLegacyDialect.java162 ? org.hibernate.dialect.sequence.spi.SequenceSupports.none()CODE
CRITICAL…e/spatial/integration/functions/BasicFunctionTest.java70 query.setParameter( "poly", org.geolatte.geom.jts.JTS.to( filterGeometry ) );CODE
CRITICAL…bernate/spatial/testing/SpatialFunctionalTestCase.java182 assertThat( geometryEquality.equals( org.geolatte.geom.jts.JTS.from( (Geometry) expected ), (org.geolatte.geom.GeomeCODE
CRITICAL…ate/spatial/dialect/hana/TestHANASpatialFunctions.java1161 return org.geolatte.geom.Geometry.class.getName();CODE
155 more matches not shown…
Over-Commented Block790 hits · 749 pts
SeverityFileLineSnippetContext
LOW…ibernate/processor/annotation/AbstractQueryMethod.java1361// return containerType == nullCOMMENT
LOW…nate/processor/annotation/InnerClassMetaAttribute.java21 }COMMENT
LOW…bernate/processor/annotation/AnnotationMetaEntity.java2441 ? LifecycleMethod.ParameterKind.LISTCOMMENT
LOW…bernate/processor/annotation/AnnotationMetaEntity.java3141 final var typeName = parameterType.toString();COMMENT
LOW…/example/orm/dialect/ExampleMergeSqlAstTranslator.java1package org.example.orm.dialect;COMMENT
LOW…dialectprovider/HibernateDialectProviderExtension.java41 /// Configure whether warning findings should fail provider-boundaryCOMMENT
LOW…/hibernate/orm/properties/jdk11/SettingsCollector.java61 // does not match any defined sections, skip itCOMMENT
LOW…/hibernate/orm/properties/jdk11/SettingsCollector.java81 final String constantFieldFqn = row.selectFirst( ".colFirst a" ).id();COMMENT
LOW…/hibernate/orm/properties/jdk11/SettingsCollector.java301 }COMMENT
LOW…/hibernate/community/dialect/DerbyJpaTckUsageTest.java161 em -> {COMMENT
LOW…/hibernate/community/dialect/DerbyJpaTckUsageTest.java181// " rs.addRow(1, \"Steve\");\n" +COMMENT
LOW…ernate/community/dialect/InformixSqlAstTranslator.java441 assert !optionalTableUpdate.getMutatingTable().isOptional();COMMENT
LOW…ibernate/community/dialect/SQLServerLegacyDialect.java1041 //M nothing to doCOMMENT
LOW…hibernate/community/dialect/sequence/package-info.java1/// Internal sequence-support implementations owned by the community Dialects.COMMENT
LOWhibernate-spatial/scripts/build-docker-db2.sh21#COMMENT
LOWhibernate-spatial/scripts/build-docker-db2.sh41#create or replace function db2gse.geomfromewkt(instring varchar(32000))COMMENT
LOWhibernate-spatial/scripts/build-docker-db2.sh61COMMENT
LOW…rnate/spatial/predicate/GeolatteSpatialPredicates.java361 return booleanExpressionToPredicate(COMMENT
LOW…rnate/spatial/predicate/GeolatteSpatialPredicates.java381// Geometry geometry2) {COMMENT
LOW…/hibernate/spatial/predicate/JTSSpatialPredicates.java321 return touches( cb, geometry1, cb.value( geometry2 ) );COMMENT
LOW…/hibernate/spatial/predicate/JTSSpatialPredicates.java341// nodeBuilder.function( SpatialFunction.filter.toString(), boolean.class,COMMENT
LOW…/hibernate/spatial/predicate/JTSSpatialPredicates.java361// return new JTSFilterPredicate( nodeBuilder, geometry1, geometry2 );COMMENT
LOW…bernate/spatial/predicate/GeolatteFilterPredicate.java41 public GeolatteFilterPredicate(COMMENT
LOW…rt/SingleTableWithSecondaryTableStaticInsertTests.java101//COMMENT
LOW…e/orm/test/mapping/mappedBy/IsNullAndMappedByTest.java161 public void testAssociationEqualsInWhereClause(SessionFactoryScope scope) {COMMENT
LOW…st/java/org/hibernate/orm/test/mapping/where/User.java101// public String toString() {COMMENT
LOW…azytoone/mappedby/InverseToOneExplicitOptionTests.java61 // - at that point there should be no SQL executedCOMMENT
LOW…/orm/test/collection/delayedOperation/ListAddTest.java101 quizz.addQuestion( 1, new Question( 5, "question that should be at index 1" ) );COMMENT
LOW…rg/hibernate/orm/test/lob/PostgreSqlLobStringTest.java181// protected boolean isCleanupTestDataRequired() {COMMENT
LOW…/test/bootstrap/jpa/PersistenceUnitOverridesTests.java501// JdbcServices jdbcServices,COMMENT
LOW…/test/bootstrap/jpa/PersistenceUnitOverridesTests.java521// @OverrideCOMMENT
LOW…orm/test/loading/multiLoad/MultiIdEntityLoadTests.java101 }COMMENT
LOW…/orm/test/cache/polymorphism/PolymorphicCacheTest.java61 // cache hit when it is the wrong class was to throwCOMMENT
LOW…rnate/orm/test/formulajoin/AssociationFormulaTest.java161 );COMMENT
LOW…rnate/orm/test/formulajoin/AssociationFormulaTest.java181//COMMENT
LOW…/orm/test/locking/ExcludedFromVersioningTestsBase.java21import org.jboss.logging.Logger;COMMENT
LOW…/test/jpa/transaction/batch/FailingAddToBatchTest.java61 @NotImplementedYet( reason = "Still need to work on entity update executors" )COMMENT
LOW…/test/jpa/transaction/batch/FailingAddToBatchTest.java81 }COMMENT
LOW…t/jpa/compliance/tck2_2/joincolumn/JoinColumnTest.java61// {quote}COMMENT
LOW…/jpa/metamodel/AbstractJpaMetamodelPopulationTest.java81 // EntityType(null) - SimpleEntity (dynamic-map entity)COMMENT
LOW…/jpa/metamodel/AbstractJpaMetamodelPopulationTest.java121 // CompositeIdAnnotatedEntityCOMMENT
LOW…/orm/test/annotations/idmanytoone/IdManyToOneTest.java101 criteria.where( criteriaBuilder.equal( student.get( "name" ), "Foo" ) );COMMENT
LOW…/org/hibernate/orm/test/querycache/QueryCacheTest.java621// }COMMENT
LOW…/org/hibernate/orm/test/querycache/QueryCacheTest.java641// Transaction tx1 = s1.beginTransaction();COMMENT
LOW…/org/hibernate/orm/test/querycache/QueryCacheTest.java661// }COMMENT
LOW…/org/hibernate/orm/test/querycache/QueryCacheTest.java681// s3.update( item1 );COMMENT
LOW…ibernate/orm/test/action/queue/proof/package-info.java1/// Tests that GraphBasedActionQueue does in fact fix outstanding issues reported againstCOMMENT
LOW…test/java/org/hibernate/orm/test/cdi/type/UrlType.java21// because we cannot use CDI, injection is not availableCOMMENT
LOW…a/org/hibernate/orm/test/hql/ASTParserLoadingTest.java1301COMMENT
LOW…cascade/circle/AbstractMultiPathCircleCascadeTest.java341// return deliveryNode;COMMENT
LOW…cascade/circle/AbstractMultiPathCircleCascadeTest.java361// Node deliveryNode = new Node();COMMENT
LOW…ibernate/orm/test/softdelete/timestamp/UsageTests.java121// final int affected = session.createMutationQuery( "delete Employee where id = 1" ).executeUpdate();COMMENT
LOW…ava/org/hibernate/orm/test/query/hql/OrderByTests.java201 session.createQuery(COMMENT
LOW…ava/org/hibernate/orm/test/query/hql/OrderByTests.java481 // zoo1 Zoo 1313 Mockingbird Lane, Anywhere, IL USACOMMENT
LOW…te/orm/test/schemaupdate/columnoptions/TestEntity.java161// }COMMENT
LOW…eymanytoone/bidir/component/EagerKeyManyToOneTest.java121 @JiraKey(value = "HHH-2277")COMMENT
LOW…est/tool/schema/SchemaToolTransactionHandlingTest.java41 // 1) create-dropCOMMENT
LOW…src/main/java/org/hibernate/SessionCreationOption.java21///COMMENT
LOW…src/main/java/org/hibernate/SessionCreationOption.java41 ///COMMENT
LOW…src/main/java/org/hibernate/SessionCreationOption.java61 ///COMMENT
730 more matches not shown…
Fake / Example Data400 hits · 444 pts
SeverityFileLineSnippetContext
LOW…uide/chapters/pc/extras/pc-cascade-persist-example.sql2VALUES ( 'John Doe', 1 )CODE
LOW…de/chapters/pc/extras/pc-where-persistence-example.sql2VALUES ('John Doe', 1)CODE
LOW…e/chapters/pc/extras/pc-filter-persistence-example.sql2VALUES ('John Doe', 1)CODE
LOW…pc/extras/pc-filter-join-table-persistence-example.sql2VALUES ('John Doe', 1)CODE
LOW…ng/extras/flushing-auto-flush-jpql-overlap-example.sql1INSERT INTO Person (name, id) VALUES ('John Doe', 1)CODE
LOW…/flushing/extras/flushing-commit-flush-sql-example.sql3INSERT INTO Person (name, id) VALUES ('John Doe', 1)CODE
LOW…de/chapters/flushing/extras/flushing-order-example.sql2VALUES ('John Doe', 2L)CODE
LOW…flushing/extras/flushing-auto-flush-commit-example.sql2INSERT INTO Person (name, id) VALUES ('John Doe', 1)CODE
LOW…/flushing/extras/flushing-always-flush-sql-example.sql1INSERT INTO Person (name, id) VALUES ('John Doe', 1)CODE
LOW…s/flushing/extras/flushing-auto-flush-jpql-example.sql5INSERT INTO Person (name, id) VALUES ('John Doe', 1)CODE
LOW…flushing/extras/flushing-commit-flush-jpql-example.sql9INSERT INTO Person (name, id) VALUES ('John Doe', 1)CODE
LOW…in/extras/basic/mapping-filter-persistence-example.sql2VALUES ('John Doe', 1)CODE
LOW…ain/extras/basic/mapping-where-persistence-example.sql2VALUES ('John Doe', 1)CODE
LOW…asic/mapping-filter-join-table-persistence-example.sql2VALUES ('John Doe', 1)CODE
LOW…ce/entity-inheritance-single-table-persist-example.sql2VALUES (100, 1.5, 'John Doe', 25, 'DebitAccount', 1)CODE
LOW…ce/entity-inheritance-single-table-persist-example.sql5VALUES (1000, 1.9, 'John Doe', 5000, 'CreditAccount', 2)CODE
LOW⚡…e-single-table-discriminator-value-persist-example.sql2VALUES (100, 1.5, 'John Doe', 25, 'Debit', 1)CODE
LOW⚡…e-single-table-discriminator-value-persist-example.sql5VALUES (1000, 1.9, 'John Doe', 5000, 'Credit', 2)CODE
LOW⚡…e-single-table-discriminator-value-persist-example.sql8VALUES (1000, 1.9, 'John Doe', 3)CODE
LOW…nity/dialect/procedure/GaussDBStoredProcedureTest.java502 person1 = new Person( 1L, "John Doe" );CODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt3Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi massa dui, venenatis ac semper sed, pellentesque eget mi.CODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt3Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi massa dui, venenatis ac semper sed, pellentesque eget mi.CODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt23Curabitur tortor tortor, rutrum sit amet fringilla vel, dignissim nec ligula. Nam ipsum eros, consequat eu consectetur iCODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt23Curabitur tortor tortor, rutrum sit amet fringilla vel, dignissim nec ligula. Nam ipsum eros, consequat eu consectetur iCODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt109Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus adipiscing nunc in ante elementum blandit. Mauris varCODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt109Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus adipiscing nunc in ante elementum blandit. Mauris varCODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt121Morbi quis rutrum risus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Morbi ferCODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt121Morbi quis rutrum risus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Morbi ferCODE
LOW⚡…ources/org/hibernate/jpa/test/packaging/loremipsum.txt145Integer vehicula tortor elit. Sed euismod venenatis tortor, nec interdum risus pretium ultrices. Nullam rhoncus lobortisCODE
LOW⚡…ources/org/hibernate/jpa/test/packaging/loremipsum.txt145Integer vehicula tortor elit. Sed euismod venenatis tortor, nec interdum risus pretium ultrices. Nullam rhoncus lobortisCODE
LOW⚡…ources/org/hibernate/jpa/test/packaging/loremipsum.txt149Maecenas sodales posuere risus, in fringilla eros adipiscing eget. Pellentesque leo metus, consequat nec interdum sed, fCODE
LOW⚡…ources/org/hibernate/jpa/test/packaging/loremipsum.txt149Maecenas sodales posuere risus, in fringilla eros adipiscing eget. Pellentesque leo metus, consequat nec interdum sed, fCODE
LOW…ources/org/hibernate/jpa/test/packaging/loremipsum.txt167In adipiscing, lectus molestie commodo sodales, augue dui sagittis velit, mattis commodo ipsum sapien id tellus. Morbi pCODE
LOW…java/org/hibernate/temporal/audit/AuditEntityTest.java182 e.address = new Address( "123 Main St", "Springfield" );CODE
LOW…java/org/hibernate/temporal/audit/AuditEntityTest.java193 assertEquals( "123 Main St", e.address.street );CODE
LOW⚡…/hibernate/temporal/audit/AuditSecondaryTableTest.java57 emp.address = "123 Main St";CODE
LOW⚡…/hibernate/temporal/audit/AuditSecondaryTableTest.java58 emp.phone = "555-0100";CODE
LOW⚡…/hibernate/temporal/audit/AuditSecondaryTableTest.java67 emp.phone = "555-0200";CODE
LOW⚡…/hibernate/temporal/audit/AuditSecondaryTableTest.java78 assertEquals( "123 Main St", emp.address );CODE
LOW⚡…/hibernate/temporal/audit/AuditSecondaryTableTest.java79 assertEquals( "555-0100", emp.phone );CODE
LOW⚡…/hibernate/temporal/audit/AuditSecondaryTableTest.java89 assertEquals( "555-0200", emp.phone );CODE
LOW…/hibernate/temporal/audit/AuditSecondaryTableTest.java200 session.find( Employee.class, 30L ).address = "123 Main St"CODE
LOW…/hibernate/temporal/audit/AuditSecondaryTableTest.java204 session.find( Employee.class, 30L ).phone = "555-0100"CODE
LOW…java/org/hibernate/orm/test/pc/WhereJoinTableTest.java70 reader1.setName( "John Doe" );CODE
LOW…st/java/org/hibernate/orm/test/pc/MultiLoadIdTest.java51 person2.setName( "John Doe" );CODE
LOW…java/org/hibernate/orm/test/pc/CascadePersistTest.java25 person.setName("John Doe");CODE
LOW…bernate/orm/test/pc/CascadeOnDeleteCollectionTest.java35 person.setName( "John Doe" );CODE
LOW…rc/test/java/org/hibernate/orm/test/pc/FilterTest.java71 .setName( "John Doe" )CODE
LOW…/java/org/hibernate/orm/test/pc/CascadeRemoveTest.java23 person.setName( "John Doe" );CODE
LOW…org/hibernate/orm/test/pc/BytecodeEnhancementTest.java39 person.setName("John Doe");CODE
LOW…org/hibernate/orm/test/pc/BytecodeEnhancementTest.java54 person.setName("John Doe");CODE
LOW…java/org/hibernate/orm/test/pc/CascadeRefreshTest.java26 person.setName( "John Doe" );CODE
LOW…java/org/hibernate/orm/test/pc/CascadeRefreshTest.java47 assertThat( person.getName() ).isEqualTo( "John Doe" );CODE
LOW…/org/hibernate/orm/test/pc/PersistenceContextTest.java80 person.setName( "John Doe" );CODE
LOW…/org/hibernate/orm/test/pc/PersistenceContextTest.java127 person.setName( "John Doe" );CODE
LOW…/org/hibernate/orm/test/pc/PersistenceContextTest.java170 person.setName( "John Doe" );CODE
LOW…/org/hibernate/orm/test/pc/PersistenceContextTest.java218 person.setName( "John Doe" );CODE
LOW…ava/org/hibernate/orm/test/pc/FilterJoinTableTest.java41 .setName("John Doe");CODE
LOW…/java/org/hibernate/orm/test/pc/CascadeDetachTest.java26 person.setName( "John Doe" );CODE
LOW…ava/org/hibernate/orm/test/pc/CascadeOnDeleteTest.java34 person.setName( "John Doe" );CODE
340 more matches not shown…
Cross-File Repetition19 hits · 95 pts
SeverityFileLineSnippetContext
HIGH…re/xml/LazyManyToManyNonUniqueIdNotFoundWhereTest.java0create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, coSTRING
HIGH…test/where/xml/LazyManyToManyNonUniqueIdWhereTest.java0create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, coSTRING
HIGH…re/annotations/LazyManyToManyNonUniqueIdWhereTest.java0create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, coSTRING
HIGH…ns/LazyElementCollectionBasicNonUniqueIdWhereTest.java0create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, coSTRING
HIGH…ntCollectionWithLazyManyToOneNonUniqueIdWhereTest.java0create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, coSTRING
HIGH…re/xml/LazyManyToManyNonUniqueIdNotFoundWhereTest.java0create table collection_table( main_id integer not null, main_code varchar(10) not null, association_id int not null, asSTRING
HIGH…test/where/xml/LazyManyToManyNonUniqueIdWhereTest.java0create table collection_table( main_id integer not null, main_code varchar(10) not null, association_id int not null, asSTRING
HIGH…re/annotations/LazyManyToManyNonUniqueIdWhereTest.java0create table collection_table( main_id integer not null, main_code varchar(10) not null, association_id int not null, asSTRING
HIGH…ntCollectionWithLazyManyToOneNonUniqueIdWhereTest.java0create table collection_table( main_id integer not null, main_code varchar(10) not null, association_id int not null, asSTRING
HIGH…re/xml/LazyManyToManyNonUniqueIdNotFoundWhereTest.java0create table building_ratings( building_id integer not null, rating_id integer not null, primary key (building_id, ratinSTRING
HIGH…test/where/xml/LazyManyToManyNonUniqueIdWhereTest.java0create table building_ratings( building_id integer not null, rating_id integer not null, primary key (building_id, ratinSTRING
HIGH…re/annotations/LazyManyToManyNonUniqueIdWhereTest.java0create table building_ratings( building_id integer not null, rating_id integer not null, primary key (building_id, ratinSTRING
HIGH…re/xml/LazyManyToManyNonUniqueIdNotFoundWhereTest.java0create table material_ratings( material_id integer not null, rating_id integer not null, primary key (material_id, ratinSTRING
HIGH…test/where/xml/LazyManyToManyNonUniqueIdWhereTest.java0create table material_ratings( material_id integer not null, rating_id integer not null, primary key (material_id, ratinSTRING
HIGH…re/annotations/LazyManyToManyNonUniqueIdWhereTest.java0create table material_ratings( material_id integer not null, rating_id integer not null, primary key (material_id, ratinSTRING
HIGH…ntCollectionWithLazyManyToOneNonUniqueIdWhereTest.java0create table material_ratings( material_id integer not null, rating_id integer not null, primary key (material_id, ratinSTRING
HIGH…/orm/test/sql/partition/MySQLPartitionedTableTest.java0* partition by range (pid) ( * partition p1 values less than (1000), * partition p2 values less than (2000) * ) *STRING
HIGH…orm/test/sql/partition/OraclePartitionedTableTest.java0* partition by range (pid) ( * partition p1 values less than (1000), * partition p2 values less than (2000) * ) *STRING
HIGH…/main/java/org/hibernate/annotations/PartitionKey.java0* partition by range (pid) ( * partition p1 values less than (1000), * partition p2 values less than (2000) * ) *STRING
AI Slop Vocabulary22 hits · 65 pts
SeverityFileLineSnippetContext
MEDIUM…/hibernate/tutorial/envers/EnversIllustrationTest.java58 // so far the code is the same as we have seen in previous tutorials. Now lets leverage Envers...COMMENT
MEDIUM…eng/internal/export/lint/SchemaByMetaDataDetector.java138 // BIG HACK - should probably utilize the table cache before going to the jdbcreader :(COMMENT
MEDIUM…g/hibernate/cache/internal/CacheKeyImplementation.java109 //only in this case, leverage the hashcode comparison check first;COMMENT
MEDIUM…bernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java5232 // if going this route, would be better to leverage the normal hierarchical lookup for packageCOMMENT
MEDIUM…al/hbm/IdentifierSourceNonAggregatedCompositeImpl.java71 // NOTE : the HBM support for IdClass is very limited. EssentiallyCOMMENT
MEDIUM…rg/hibernate/boot/model/internal/SoftDeleteHelper.java62 "Specifying SoftDelete#converter in conjunction with SoftDeleteType.TIMESTAMP is not supported"CODE
MEDIUM…te/boot/model/process/spi/MetadataBuildingProcess.java107 * Single step: as defined by the {@link #build} method; internally leverages the 2-step paradigmCOMMENT
MEDIUM…src/main/java/org/hibernate/annotations/NaturalId.java103/// leverage [@NaturalIdClass][NaturalIdClass] for loading.COMMENT
MEDIUM…rg/hibernate/procedure/internal/ProcedureCallImpl.java1303 // Essentially here we'd have a case where there are no more resultsCOMMENT
MEDIUM…/queue/internal/decompose/entity/UpdateDecomposer.java556 /// We treat this case specially in `#coordinateUpdate` to leverageCOMMENT
MEDIUM…/queue/internal/decompose/entity/UpdateDecomposer.java556 /// We treat this case specially in `#coordinateUpdate` to leverageCOMMENT
MEDIUM…nate/dialect/function/xml/SQLServerXmlAggFunction.java77 // Essentially, we try to move the subquery into the from clause and mark it as lateral.COMMENT
MEDIUM…nate/dialect/sql/ast/spi/AbstractSqlAstTranslator.java2301 // really any dialect translator could leverage thisCOMMENT
MEDIUM…nate/dialect/sql/ast/spi/AbstractSqlAstTranslator.java8244 // Essentially, the subquery determines how many rows come before the current row (including that),COMMENT
MEDIUM…rsister/entity/mutation/UpdateCoordinatorStandard.java493 // We treat this case specially in `#coordinateUpdate` to leverageCOMMENT
MEDIUM…rsister/entity/mutation/UpdateCoordinatorStandard.java493 // We treat this case specially in `#coordinateUpdate` to leverageCOMMENT
MEDIUM…on/SynchronizationCallbackCoordinatorTrackingImpl.java50 // Essentially, we need to see if we can process the callback immediately. So here we check whether theCOMMENT
MEDIUM…ain/java/org/hibernate/query/sqm/internal/SqmUtil.java738 // TODO: currently no robust way to check the typesCOMMENT
MEDIUM…ql/spi/mutation/jdbc/OptionalTableUpdateOperation.java261 // leverage the fact that bindings are contiguous to avoid full nested iterationsCOMMENT
MEDIUM…g/hibernate/sql/ast/spi/query/select/SqlSelection.java11/// Represents a selection at the SQL/JDBC level. Essentially made up of:COMMENT
MEDIUM…esting/junit4/BaseNonConfigCoreFunctionalTestCase.java218 // whether that usage could not just leverage that capabilityCOMMENT
MEDIUM…al/entities/mapper/relation/BasicCollectionMapper.java173 // ultimately means that the equality check will leverage both reference and value equalityCOMMENT
Verbosity Indicators16 hits · 28 pts
SeverityFileLineSnippetContext
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java63 // Step 1: Load Baz#1, creates a lazy proxy for Foo#1 typed as Foo (not Bar)COMMENT
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java67 // Step 2: Access the reference, does NOT initialize the proxyCOMMENT
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java71 // Step 3: Load Bar#1 with its bazList using join fetchCOMMENT
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java78 // Step 4: Load Baz#1 again with join fetch on fooCOMMENT
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java86 // Step 5: This should not throw NPECOMMENT
LOW…/cache/ImmutableLazyBasicWithAssociationCacheTest.java159 // Step 1: Persist an entity with the lazy field setCOMMENT
LOW…/cache/ImmutableLazyBasicWithAssociationCacheTest.java175 // Step 2: Load the entity in a new session — should come from 2LCCOMMENT
LOW…/hibernate/internal/AbstractSharedSessionContract.java2623 // Step 1 :: write non-transient state...COMMENT
LOW…/hibernate/internal/AbstractSharedSessionContract.java2627 // Step 2 :: write transient state...COMMENT
LOW…/hibernate/internal/AbstractSharedSessionContract.java2639 // Step 1 :: read back non-transient state...COMMENT
LOW…/hibernate/internal/AbstractSharedSessionContract.java2644 // Step 2 :: read back transient state...COMMENT
LOW…org/hibernate/type/descriptor/java/StringJavaType.java100 // Since NClob extends Clob, we need to check if type is an NClobCOMMENT
LOW…ernate/query/sqm/sql/spi/BaseSqmToSqlAstConverter.java5691 // We need to check if this is a treated left or full join, which case we shouldCOMMENT
LOW…n/java/org/hibernate/engine/spi/ActionQueueLegacy.java431 // We need to check if this collection's owner is an orphan being removed,COMMENT
LOW…tion/internal/metadata/CollectionMappedByResolver.java140 // We need to check if the property is audited as wellCOMMENT
LOW…tion/internal/metadata/CollectionMappedByResolver.java160 // We need to check if the property is audited as wellCOMMENT
Structural Annotation Overuse7 hits · 14 pts
SeverityFileLineSnippetContext
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java63 // Step 1: Load Baz#1, creates a lazy proxy for Foo#1 typed as Foo (not Bar)COMMENT
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java67 // Step 2: Access the reference, does NOT initialize the proxyCOMMENT
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java71 // Step 3: Load Bar#1 with its bazList using join fetchCOMMENT
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java78 // Step 4: Load Baz#1 again with join fetch on fooCOMMENT
LOW⚡…est/inheritance/joined/ProxyEntityCoexistenceTest.java86 // Step 5: This should not throw NPECOMMENT
LOW…/cache/ImmutableLazyBasicWithAssociationCacheTest.java159 // Step 1: Persist an entity with the lazy field setCOMMENT
LOW…/cache/ImmutableLazyBasicWithAssociationCacheTest.java175 // Step 2: Load the entity in a new session — should come from 2LCCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…in/java/org/hibernate/engine/internal/Nullability.java75 // In this implementation, we keep this feature.COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…sults/graph/entity/internal/EntityInitializerImpl.java1343 // refresh the data as requestedCOMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
LOW…ernate/query/sqm/sql/spi/BaseSqmToSqlAstConverter.java7422 // so we don't forget to do it in what followsCOMMENT
LOWgradle/libs.versions.toml7# make sure to remove the now unnecessary net.bytebuddy.experimental=true in relevant CI jobs.COMMENT
MEDIUM…t/envers/integration/query/OrderByThreeEntityTest.java35 * It's worth noting that a mapping like this orders the collection based on the valueCOMMENT
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOW…rc/main/java/org/hibernate/testing/jdbc/JdbcSpies.java346 private static class DatabaseMetaDataHandler implements InvocationHandler, Spy {CODE
LOW…rc/main/java/org/hibernate/testing/jdbc/JdbcSpies.java435 private static class ParameterMetaDataHandler implements InvocationHandler, Spy {CODE
LOW…rc/main/java/org/hibernate/testing/jdbc/JdbcSpies.java514 private static class ResultSetMetaDataHandler implements InvocationHandler, Spy {CODE
LOW…rc/main/java/org/hibernate/testing/jdbc/JdbcMocks.java221 private static class DatabaseMetaDataHandler implements InvocationHandler {CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…hibernate/boot/model/internal/GeneratorParameters.java244 // TODO: implement unique constraint supportCOMMENT
LOW…-core/src/main/java/org/hibernate/type/EntityType.java714 //TODO: implement 2nd level caching?! natural id caching ?! proxies?!COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocker-compose/build-config/edb/docker-entrypoint.sh47 # Create the transaction log directory before initdb is run so the directory is owned by the correct userCOMMENT