Idiomatic persistence for Java and relational databases
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 847 finding(s).
Are imports declared and package/API names verified? 615 finding(s).
Are wrappers, guards, and repeated structures necessary? 23 finding(s).
Which changes need focused human review? 1481 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …t/java/org/hibernate/processor/test/util/TestUtil.java | 315 | List.of( "-processor", org.hibernate.processor.HibernateProcessor.class.getName() ), sourceFiles ); | CODE |
| CRITICAL | …t/java/org/hibernate/processor/test/util/TestUtil.java | 321 | List.of( "-processor", org.hibernate.processor.HibernateProcessor.class.getName() ), sourceFiles ); | CODE |
| CRITICAL | …java/org/hibernate/processor/test/namedquery/Book.java | 25 | query = "select new org.hibernate.processor.test.namedquery.TitleAndIsbn(title,isbn) from Book") | CODE |
| CRITICAL | …test/java/org/hibernate/processor/test/hqlsql/Dao.java | 61 | @HQL("select new org.hibernate.processor.test.hqlsql.Dto(title, pages) from Book") | CODE |
| CRITICAL | …/hibernate/tool/ant/HibernateToolTaskExtendedTest.java | 30 | task.setTemplatePath(new org.apache.tools.ant.types.Path(null)); | CODE |
| CRITICAL | …/hibernate/tool/ant/HibernateToolTaskExtendedTest.java | 44 | org.apache.tools.ant.types.Path path = new org.apache.tools.ant.types.Path(null); | CODE |
| CRITICAL | …java/org/hibernate/tool/ant/ExporterConfigureTest.java | 279 | org.apache.tools.ant.types.Path path = new org.apache.tools.ant.types.Path(parent.getProject()); | CODE |
| CRITICAL | …ava/org/hibernate/tool/enhance/BuildToolGuideTest.java | 69 | var classpath = new org.apache.tools.ant.types.Path( project, System.getProperty( "guide.test.classpath" ) ); | CODE |
| CRITICAL | …ate/tool/reveng/internal/xml/XMLPrettyPrinterTest.java | 88 | org.junit.jupiter.api.Assertions.assertEquals(expected, actual); | CODE |
| CRITICAL | …ng/internal/core/dialect/SQLServerMetaDataDialect.java | 53 | element.put("HIBERNATE_STRATEGY", org.hibernate.id.uuid.UuidGenerator.class.getName()); | CODE |
| CRITICAL | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 256 | else if ( org.hibernate.id.uuid.UuidGenerator.class.getName().equals( strategy ) ) { | CODE |
| CRITICAL⚡ | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 296 | case "enhanced-sequence", "sequence" -> org.hibernate.id.enhanced.SequenceStyleGenerator.class.getName(); | CODE |
| CRITICAL⚡ | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 297 | case "enhanced-table", "table" -> org.hibernate.id.enhanced.TableGenerator.class.getName(); | CODE |
| CRITICAL⚡ | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 298 | case "identity" -> org.hibernate.id.IdentityGenerator.class.getName(); | CODE |
| CRITICAL⚡ | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 299 | case "increment" -> org.hibernate.id.IncrementGenerator.class.getName(); | CODE |
| CRITICAL⚡ | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 300 | case "foreign" -> org.hibernate.id.ForeignGenerator.class.getName(); | CODE |
| CRITICAL⚡ | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 301 | case "uuid", "uuid.hex" -> org.hibernate.id.UUIDHexGenerator.class.getName(); | CODE |
| CRITICAL⚡ | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 302 | case "uuid2" -> org.hibernate.id.UUIDGenerator.class.getName(); | CODE |
| CRITICAL⚡ | …/tool/reveng/internal/export/java/EntityPOJOClass.java | 303 | case "select" -> org.hibernate.id.SelectGenerator.class.getName(); | CODE |
| CRITICAL | …lectprovider/ClassificationMetadataResolutionTest.java | 85 | assertEquals( "8.1.3", new org.hibernate.orm.tooling.dialectprovider.internal.ClassificationMetadataReader() | CODE |
| CRITICAL | …alectprovider/DialectProviderPluginFunctionalTest.java | 593 | + " return org.junit.jupiter.api.DynamicContainer.dynamicContainer(" | CODE |
| CRITICAL | …ialectprovider/HibernateDialectProviderPluginTest.java | 66 | org.hibernate.orm.tooling.dialectprovider.internal.ContractTestGenerator.generate( | CODE |
| CRITICAL | …ialectprovider/HibernateDialectProviderPluginTest.java | 72 | org.hibernate.orm.tooling.dialectprovider.internal.ContractTestGenerator.generate( | CODE |
| CRITICAL | …org/hibernate/vector/SpannerVectorIntegrationTest.java | 486 | new org.hibernate.dialect.schema.internal.SpannerPostgreSQLIndexExporter( pgDialect ); | CODE |
| CRITICAL | …org/hibernate/vector/SpannerVectorIntegrationTest.java | 523 | new org.hibernate.dialect.schema.internal.SpannerIndexExporter( new SpannerDialect() ); | CODE |
| CRITICAL | …hibernate/community/dialect/CUBRIDDialectTestCase.java | 17 | new org.hibernate.dialect.schema.spi.AlterColumnTypeRequest( "age", "integer", "integer not null" ) | CODE |
| CRITICAL | …ity/dialect/IdentityAndGeneratedValuesSupportTest.java | 64 | final var hsql1 = new org.hibernate.community.dialect.identity.internal.HSQLIdentityColumnSupport( | CODE |
| CRITICAL | …rg/hibernate/community/dialect/SingleStoreDialect.java | 267 | new org.hibernate.community.dialect.lock.internal.SingleStoreTransactionConcurrencyResolver( isForUpdateLockingEnabl | CODE |
| CRITICAL | …rg/hibernate/community/dialect/SingleStoreDialect.java | 488 | return org.hibernate.dialect.queryhint.spi.QueryHints.addUseIndexHint( query, hints ); | CODE |
| CRITICAL | …rg/hibernate/community/dialect/SingleStoreDialect.java | 1041 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.mysqlInline(); | CODE |
| CRITICAL | …a/org/hibernate/community/dialect/FirebirdDialect.java | 629 | ? org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn() | CODE |
| CRITICAL | …a/org/hibernate/community/dialect/FirebirdDialect.java | 630 | : org.hibernate.dialect.schema.spi.SchemaCommentSupports.none(); | CODE |
| CRITICAL | …bernate/community/dialect/PostgreSQLLegacyDialect.java | 240 | private final UniqueDelegate uniqueDelegate = new org.hibernate.dialect.unique.spi.DelegatingUniqueDelegate( | CODE |
| CRITICAL | …bernate/community/dialect/PostgreSQLLegacyDialect.java | 1038 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn(); | CODE |
| CRITICAL | …org/hibernate/community/dialect/DB2iLegacyDialect.java | 134 | : org.hibernate.dialect.sequence.spi.SequenceSupports.none(); | CODE |
| CRITICAL | …g/hibernate/community/dialect/OracleLegacyDialect.java | 1288 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn(); | CODE |
| CRITICAL | …rg/hibernate/community/dialect/MySQLLegacyDialect.java | 169 | private final UniqueDelegate uniqueDelegate = new org.hibernate.dialect.unique.spi.DelegatingUniqueDelegate( | CODE |
| CRITICAL | …rg/hibernate/community/dialect/MySQLLegacyDialect.java | 170 | org.hibernate.dialect.unique.spi.UniqueDelegates.alterTable( this ) ) { | CODE |
| CRITICAL | …rg/hibernate/community/dialect/MySQLLegacyDialect.java | 983 | : org.hibernate.dialect.queryhint.spi.QueryHints.addUseIndexHint( query, hints ); | CODE |
| CRITICAL | …rg/hibernate/community/dialect/MySQLLegacyDialect.java | 992 | return org.hibernate.dialect.sequence.spi.SequenceSupports.none(); | CODE |
| CRITICAL | …rg/hibernate/community/dialect/MySQLLegacyDialect.java | 1094 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.mysqlInline(); | CODE |
| CRITICAL | …ava/org/hibernate/community/dialect/IngresDialect.java | 162 | sequenceSupport = org.hibernate.dialect.sequence.spi.SequenceSupports.ansi(); | CODE |
| CRITICAL | …org/hibernate/community/dialect/HANALegacyDialect.java | 946 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.hanaInline(); | CODE |
| CRITICAL | …ava/org/hibernate/community/dialect/SQLiteDialect.java | 558 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn(); | CODE |
| CRITICAL | …a/org/hibernate/community/dialect/AltibaseDialect.java | 670 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn(); | CODE |
| CRITICAL | …a/org/hibernate/community/dialect/H2LegacyDialect.java | 214 | private final UniqueDelegate uniqueDelegate = new org.hibernate.dialect.unique.spi.DelegatingUniqueDelegate( | CODE |
| CRITICAL | …a/org/hibernate/community/dialect/H2LegacyDialect.java | 859 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn(); | CODE |
| CRITICAL | …a/org/hibernate/community/dialect/H2LegacyDialect.java | 1054 | return org.hibernate.dialect.queryhint.spi.QueryHints.addUseIndexHint( query, hints ); | CODE |
| CRITICAL | …va/org/hibernate/community/dialect/GaussDBDialect.java | 713 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn(); | CODE |
| CRITICAL | …/org/hibernate/community/dialect/DB2LegacyDialect.java | 956 | : org.hibernate.dialect.sequence.spi.SequenceSupports.db2(); | CODE |
| CRITICAL | …/org/hibernate/community/dialect/DB2LegacyDialect.java | 1048 | return org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn(); | CODE |
| CRITICAL | …ava/org/hibernate/community/dialect/CUBRIDDialect.java | 168 | new org.hibernate.dialect.unique.spi.DelegatingUniqueDelegate( | CODE |
| CRITICAL | …ava/org/hibernate/community/dialect/CUBRIDDialect.java | 169 | org.hibernate.dialect.unique.spi.UniqueDelegates.alterTable( this ) ) { | CODE |
| CRITICAL | …ibernate/community/dialect/SQLServerLegacyDialect.java | 798 | return org.hibernate.dialect.sequence.spi.SequenceSupports.none(); | CODE |
| CRITICAL | …org/hibernate/community/dialect/HSQLLegacyDialect.java | 763 | ? org.hibernate.dialect.schema.spi.SchemaCommentSupports.commentOn() | CODE |
| CRITICAL | …org/hibernate/community/dialect/HSQLLegacyDialect.java | 764 | : org.hibernate.dialect.schema.spi.SchemaCommentSupports.none(); | CODE |
| CRITICAL | …org/hibernate/community/dialect/DB2zLegacyDialect.java | 162 | ? org.hibernate.dialect.sequence.spi.SequenceSupports.none() | CODE |
| CRITICAL | …e/spatial/integration/functions/BasicFunctionTest.java | 70 | query.setParameter( "poly", org.geolatte.geom.jts.JTS.to( filterGeometry ) ); | CODE |
| CRITICAL | …bernate/spatial/testing/SpatialFunctionalTestCase.java | 182 | assertThat( geometryEquality.equals( org.geolatte.geom.jts.JTS.from( (Geometry) expected ), (org.geolatte.geom.Geome | CODE |
| CRITICAL | …ate/spatial/dialect/hana/TestHANASpatialFunctions.java | 1161 | return org.geolatte.geom.Geometry.class.getName(); | CODE |
| 155 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ibernate/processor/annotation/AbstractQueryMethod.java | 1361 | // return containerType == null | COMMENT |
| LOW | …nate/processor/annotation/InnerClassMetaAttribute.java | 21 | } | COMMENT |
| LOW | …bernate/processor/annotation/AnnotationMetaEntity.java | 2441 | ? LifecycleMethod.ParameterKind.LIST | COMMENT |
| LOW | …bernate/processor/annotation/AnnotationMetaEntity.java | 3141 | final var typeName = parameterType.toString(); | COMMENT |
| LOW | …/example/orm/dialect/ExampleMergeSqlAstTranslator.java | 1 | package org.example.orm.dialect; | COMMENT |
| LOW | …dialectprovider/HibernateDialectProviderExtension.java | 41 | /// Configure whether warning findings should fail provider-boundary | COMMENT |
| LOW | …/hibernate/orm/properties/jdk11/SettingsCollector.java | 61 | // does not match any defined sections, skip it | COMMENT |
| LOW | …/hibernate/orm/properties/jdk11/SettingsCollector.java | 81 | final String constantFieldFqn = row.selectFirst( ".colFirst a" ).id(); | COMMENT |
| LOW | …/hibernate/orm/properties/jdk11/SettingsCollector.java | 301 | } | COMMENT |
| LOW | …/hibernate/community/dialect/DerbyJpaTckUsageTest.java | 161 | em -> { | COMMENT |
| LOW | …/hibernate/community/dialect/DerbyJpaTckUsageTest.java | 181 | // " rs.addRow(1, \"Steve\");\n" + | COMMENT |
| LOW | …ernate/community/dialect/InformixSqlAstTranslator.java | 441 | assert !optionalTableUpdate.getMutatingTable().isOptional(); | COMMENT |
| LOW | …ibernate/community/dialect/SQLServerLegacyDialect.java | 1041 | //M nothing to do | COMMENT |
| LOW | …hibernate/community/dialect/sequence/package-info.java | 1 | /// Internal sequence-support implementations owned by the community Dialects. | COMMENT |
| LOW | hibernate-spatial/scripts/build-docker-db2.sh | 21 | # | COMMENT |
| LOW | hibernate-spatial/scripts/build-docker-db2.sh | 41 | #create or replace function db2gse.geomfromewkt(instring varchar(32000)) | COMMENT |
| LOW | hibernate-spatial/scripts/build-docker-db2.sh | 61 | COMMENT | |
| LOW | …rnate/spatial/predicate/GeolatteSpatialPredicates.java | 361 | return booleanExpressionToPredicate( | COMMENT |
| LOW | …rnate/spatial/predicate/GeolatteSpatialPredicates.java | 381 | // Geometry geometry2) { | COMMENT |
| LOW | …/hibernate/spatial/predicate/JTSSpatialPredicates.java | 321 | return touches( cb, geometry1, cb.value( geometry2 ) ); | COMMENT |
| LOW | …/hibernate/spatial/predicate/JTSSpatialPredicates.java | 341 | // nodeBuilder.function( SpatialFunction.filter.toString(), boolean.class, | COMMENT |
| LOW | …/hibernate/spatial/predicate/JTSSpatialPredicates.java | 361 | // return new JTSFilterPredicate( nodeBuilder, geometry1, geometry2 ); | COMMENT |
| LOW | …bernate/spatial/predicate/GeolatteFilterPredicate.java | 41 | public GeolatteFilterPredicate( | COMMENT |
| LOW | …rt/SingleTableWithSecondaryTableStaticInsertTests.java | 101 | // | COMMENT |
| LOW | …e/orm/test/mapping/mappedBy/IsNullAndMappedByTest.java | 161 | public void testAssociationEqualsInWhereClause(SessionFactoryScope scope) { | COMMENT |
| LOW | …st/java/org/hibernate/orm/test/mapping/where/User.java | 101 | // public String toString() { | COMMENT |
| LOW | …azytoone/mappedby/InverseToOneExplicitOptionTests.java | 61 | // - at that point there should be no SQL executed | COMMENT |
| LOW | …/orm/test/collection/delayedOperation/ListAddTest.java | 101 | quizz.addQuestion( 1, new Question( 5, "question that should be at index 1" ) ); | COMMENT |
| LOW | …rg/hibernate/orm/test/lob/PostgreSqlLobStringTest.java | 181 | // protected boolean isCleanupTestDataRequired() { | COMMENT |
| LOW | …/test/bootstrap/jpa/PersistenceUnitOverridesTests.java | 501 | // JdbcServices jdbcServices, | COMMENT |
| LOW | …/test/bootstrap/jpa/PersistenceUnitOverridesTests.java | 521 | // @Override | COMMENT |
| LOW | …orm/test/loading/multiLoad/MultiIdEntityLoadTests.java | 101 | } | COMMENT |
| LOW | …/orm/test/cache/polymorphism/PolymorphicCacheTest.java | 61 | // cache hit when it is the wrong class was to throw | COMMENT |
| LOW | …rnate/orm/test/formulajoin/AssociationFormulaTest.java | 161 | ); | COMMENT |
| LOW | …rnate/orm/test/formulajoin/AssociationFormulaTest.java | 181 | // | COMMENT |
| LOW | …/orm/test/locking/ExcludedFromVersioningTestsBase.java | 21 | import org.jboss.logging.Logger; | COMMENT |
| LOW | …/test/jpa/transaction/batch/FailingAddToBatchTest.java | 61 | @NotImplementedYet( reason = "Still need to work on entity update executors" ) | COMMENT |
| LOW | …/test/jpa/transaction/batch/FailingAddToBatchTest.java | 81 | } | COMMENT |
| LOW | …t/jpa/compliance/tck2_2/joincolumn/JoinColumnTest.java | 61 | // {quote} | COMMENT |
| LOW | …/jpa/metamodel/AbstractJpaMetamodelPopulationTest.java | 81 | // EntityType(null) - SimpleEntity (dynamic-map entity) | COMMENT |
| LOW | …/jpa/metamodel/AbstractJpaMetamodelPopulationTest.java | 121 | // CompositeIdAnnotatedEntity | COMMENT |
| LOW | …/orm/test/annotations/idmanytoone/IdManyToOneTest.java | 101 | criteria.where( criteriaBuilder.equal( student.get( "name" ), "Foo" ) ); | COMMENT |
| LOW | …/org/hibernate/orm/test/querycache/QueryCacheTest.java | 621 | // } | COMMENT |
| LOW | …/org/hibernate/orm/test/querycache/QueryCacheTest.java | 641 | // Transaction tx1 = s1.beginTransaction(); | COMMENT |
| LOW | …/org/hibernate/orm/test/querycache/QueryCacheTest.java | 661 | // } | COMMENT |
| LOW | …/org/hibernate/orm/test/querycache/QueryCacheTest.java | 681 | // s3.update( item1 ); | COMMENT |
| LOW | …ibernate/orm/test/action/queue/proof/package-info.java | 1 | /// Tests that GraphBasedActionQueue does in fact fix outstanding issues reported against | COMMENT |
| LOW | …test/java/org/hibernate/orm/test/cdi/type/UrlType.java | 21 | // because we cannot use CDI, injection is not available | COMMENT |
| LOW | …a/org/hibernate/orm/test/hql/ASTParserLoadingTest.java | 1301 | COMMENT | |
| LOW | …cascade/circle/AbstractMultiPathCircleCascadeTest.java | 341 | // return deliveryNode; | COMMENT |
| LOW | …cascade/circle/AbstractMultiPathCircleCascadeTest.java | 361 | // Node deliveryNode = new Node(); | COMMENT |
| LOW | …ibernate/orm/test/softdelete/timestamp/UsageTests.java | 121 | // final int affected = session.createMutationQuery( "delete Employee where id = 1" ).executeUpdate(); | COMMENT |
| LOW | …ava/org/hibernate/orm/test/query/hql/OrderByTests.java | 201 | session.createQuery( | COMMENT |
| LOW | …ava/org/hibernate/orm/test/query/hql/OrderByTests.java | 481 | // zoo1 Zoo 1313 Mockingbird Lane, Anywhere, IL USA | COMMENT |
| LOW | …te/orm/test/schemaupdate/columnoptions/TestEntity.java | 161 | // } | COMMENT |
| LOW | …eymanytoone/bidir/component/EagerKeyManyToOneTest.java | 121 | @JiraKey(value = "HHH-2277") | COMMENT |
| LOW | …est/tool/schema/SchemaToolTransactionHandlingTest.java | 41 | // 1) create-drop | COMMENT |
| LOW | …src/main/java/org/hibernate/SessionCreationOption.java | 21 | /// | COMMENT |
| LOW | …src/main/java/org/hibernate/SessionCreationOption.java | 41 | /// | COMMENT |
| LOW | …src/main/java/org/hibernate/SessionCreationOption.java | 61 | /// | COMMENT |
| 730 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …uide/chapters/pc/extras/pc-cascade-persist-example.sql | 2 | VALUES ( 'John Doe', 1 ) | CODE |
| LOW | …de/chapters/pc/extras/pc-where-persistence-example.sql | 2 | VALUES ('John Doe', 1) | CODE |
| LOW | …e/chapters/pc/extras/pc-filter-persistence-example.sql | 2 | VALUES ('John Doe', 1) | CODE |
| LOW | …pc/extras/pc-filter-join-table-persistence-example.sql | 2 | VALUES ('John Doe', 1) | CODE |
| LOW | …ng/extras/flushing-auto-flush-jpql-overlap-example.sql | 1 | INSERT INTO Person (name, id) VALUES ('John Doe', 1) | CODE |
| LOW | …/flushing/extras/flushing-commit-flush-sql-example.sql | 3 | INSERT INTO Person (name, id) VALUES ('John Doe', 1) | CODE |
| LOW | …de/chapters/flushing/extras/flushing-order-example.sql | 2 | VALUES ('John Doe', 2L) | CODE |
| LOW | …flushing/extras/flushing-auto-flush-commit-example.sql | 2 | INSERT INTO Person (name, id) VALUES ('John Doe', 1) | CODE |
| LOW | …/flushing/extras/flushing-always-flush-sql-example.sql | 1 | INSERT INTO Person (name, id) VALUES ('John Doe', 1) | CODE |
| LOW | …s/flushing/extras/flushing-auto-flush-jpql-example.sql | 5 | INSERT INTO Person (name, id) VALUES ('John Doe', 1) | CODE |
| LOW | …flushing/extras/flushing-commit-flush-jpql-example.sql | 9 | INSERT INTO Person (name, id) VALUES ('John Doe', 1) | CODE |
| LOW | …in/extras/basic/mapping-filter-persistence-example.sql | 2 | VALUES ('John Doe', 1) | CODE |
| LOW | …ain/extras/basic/mapping-where-persistence-example.sql | 2 | VALUES ('John Doe', 1) | CODE |
| LOW | …asic/mapping-filter-join-table-persistence-example.sql | 2 | VALUES ('John Doe', 1) | CODE |
| LOW | …ce/entity-inheritance-single-table-persist-example.sql | 2 | VALUES (100, 1.5, 'John Doe', 25, 'DebitAccount', 1) | CODE |
| LOW | …ce/entity-inheritance-single-table-persist-example.sql | 5 | VALUES (1000, 1.9, 'John Doe', 5000, 'CreditAccount', 2) | CODE |
| LOW⚡ | …e-single-table-discriminator-value-persist-example.sql | 2 | VALUES (100, 1.5, 'John Doe', 25, 'Debit', 1) | CODE |
| LOW⚡ | …e-single-table-discriminator-value-persist-example.sql | 5 | VALUES (1000, 1.9, 'John Doe', 5000, 'Credit', 2) | CODE |
| LOW⚡ | …e-single-table-discriminator-value-persist-example.sql | 8 | VALUES (1000, 1.9, 'John Doe', 3) | CODE |
| LOW | …nity/dialect/procedure/GaussDBStoredProcedureTest.java | 502 | person1 = new Person( 1L, "John Doe" ); | CODE |
| LOW | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 3 | Lorem 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.txt | 3 | Lorem 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.txt | 23 | Curabitur tortor tortor, rutrum sit amet fringilla vel, dignissim nec ligula. Nam ipsum eros, consequat eu consectetur i | CODE |
| LOW | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 23 | Curabitur tortor tortor, rutrum sit amet fringilla vel, dignissim nec ligula. Nam ipsum eros, consequat eu consectetur i | CODE |
| LOW | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 109 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus adipiscing nunc in ante elementum blandit. Mauris var | CODE |
| LOW | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 109 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus adipiscing nunc in ante elementum blandit. Mauris var | CODE |
| LOW | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 121 | Morbi quis rutrum risus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Morbi fer | CODE |
| LOW | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 121 | Morbi quis rutrum risus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Morbi fer | CODE |
| LOW⚡ | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 145 | Integer vehicula tortor elit. Sed euismod venenatis tortor, nec interdum risus pretium ultrices. Nullam rhoncus lobortis | CODE |
| LOW⚡ | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 145 | Integer vehicula tortor elit. Sed euismod venenatis tortor, nec interdum risus pretium ultrices. Nullam rhoncus lobortis | CODE |
| LOW⚡ | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 149 | Maecenas sodales posuere risus, in fringilla eros adipiscing eget. Pellentesque leo metus, consequat nec interdum sed, f | CODE |
| LOW⚡ | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 149 | Maecenas sodales posuere risus, in fringilla eros adipiscing eget. Pellentesque leo metus, consequat nec interdum sed, f | CODE |
| LOW | …ources/org/hibernate/jpa/test/packaging/loremipsum.txt | 167 | In adipiscing, lectus molestie commodo sodales, augue dui sagittis velit, mattis commodo ipsum sapien id tellus. Morbi p | CODE |
| LOW | …java/org/hibernate/temporal/audit/AuditEntityTest.java | 182 | e.address = new Address( "123 Main St", "Springfield" ); | CODE |
| LOW | …java/org/hibernate/temporal/audit/AuditEntityTest.java | 193 | assertEquals( "123 Main St", e.address.street ); | CODE |
| LOW⚡ | …/hibernate/temporal/audit/AuditSecondaryTableTest.java | 57 | emp.address = "123 Main St"; | CODE |
| LOW⚡ | …/hibernate/temporal/audit/AuditSecondaryTableTest.java | 58 | emp.phone = "555-0100"; | CODE |
| LOW⚡ | …/hibernate/temporal/audit/AuditSecondaryTableTest.java | 67 | emp.phone = "555-0200"; | CODE |
| LOW⚡ | …/hibernate/temporal/audit/AuditSecondaryTableTest.java | 78 | assertEquals( "123 Main St", emp.address ); | CODE |
| LOW⚡ | …/hibernate/temporal/audit/AuditSecondaryTableTest.java | 79 | assertEquals( "555-0100", emp.phone ); | CODE |
| LOW⚡ | …/hibernate/temporal/audit/AuditSecondaryTableTest.java | 89 | assertEquals( "555-0200", emp.phone ); | CODE |
| LOW | …/hibernate/temporal/audit/AuditSecondaryTableTest.java | 200 | session.find( Employee.class, 30L ).address = "123 Main St" | CODE |
| LOW | …/hibernate/temporal/audit/AuditSecondaryTableTest.java | 204 | session.find( Employee.class, 30L ).phone = "555-0100" | CODE |
| LOW | …java/org/hibernate/orm/test/pc/WhereJoinTableTest.java | 70 | reader1.setName( "John Doe" ); | CODE |
| LOW | …st/java/org/hibernate/orm/test/pc/MultiLoadIdTest.java | 51 | person2.setName( "John Doe" ); | CODE |
| LOW | …java/org/hibernate/orm/test/pc/CascadePersistTest.java | 25 | person.setName("John Doe"); | CODE |
| LOW | …bernate/orm/test/pc/CascadeOnDeleteCollectionTest.java | 35 | person.setName( "John Doe" ); | CODE |
| LOW | …rc/test/java/org/hibernate/orm/test/pc/FilterTest.java | 71 | .setName( "John Doe" ) | CODE |
| LOW | …/java/org/hibernate/orm/test/pc/CascadeRemoveTest.java | 23 | person.setName( "John Doe" ); | CODE |
| LOW | …org/hibernate/orm/test/pc/BytecodeEnhancementTest.java | 39 | person.setName("John Doe"); | CODE |
| LOW | …org/hibernate/orm/test/pc/BytecodeEnhancementTest.java | 54 | person.setName("John Doe"); | CODE |
| LOW | …java/org/hibernate/orm/test/pc/CascadeRefreshTest.java | 26 | person.setName( "John Doe" ); | CODE |
| LOW | …java/org/hibernate/orm/test/pc/CascadeRefreshTest.java | 47 | assertThat( person.getName() ).isEqualTo( "John Doe" ); | CODE |
| LOW | …/org/hibernate/orm/test/pc/PersistenceContextTest.java | 80 | person.setName( "John Doe" ); | CODE |
| LOW | …/org/hibernate/orm/test/pc/PersistenceContextTest.java | 127 | person.setName( "John Doe" ); | CODE |
| LOW | …/org/hibernate/orm/test/pc/PersistenceContextTest.java | 170 | person.setName( "John Doe" ); | CODE |
| LOW | …/org/hibernate/orm/test/pc/PersistenceContextTest.java | 218 | person.setName( "John Doe" ); | CODE |
| LOW | …ava/org/hibernate/orm/test/pc/FilterJoinTableTest.java | 41 | .setName("John Doe"); | CODE |
| LOW | …/java/org/hibernate/orm/test/pc/CascadeDetachTest.java | 26 | person.setName( "John Doe" ); | CODE |
| LOW | …ava/org/hibernate/orm/test/pc/CascadeOnDeleteTest.java | 34 | person.setName( "John Doe" ); | CODE |
| 340 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …re/xml/LazyManyToManyNonUniqueIdNotFoundWhereTest.java | 0 | create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, co | STRING |
| HIGH | …test/where/xml/LazyManyToManyNonUniqueIdWhereTest.java | 0 | create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, co | STRING |
| HIGH | …re/annotations/LazyManyToManyNonUniqueIdWhereTest.java | 0 | create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, co | STRING |
| HIGH | …ns/LazyElementCollectionBasicNonUniqueIdWhereTest.java | 0 | create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, co | STRING |
| HIGH | …ntCollectionWithLazyManyToOneNonUniqueIdWhereTest.java | 0 | create table main_table( id integer not null, name varchar(255) not null, code varchar(10) not null, primary key (id, co | STRING |
| HIGH | …re/xml/LazyManyToManyNonUniqueIdNotFoundWhereTest.java | 0 | create table collection_table( main_id integer not null, main_code varchar(10) not null, association_id int not null, as | STRING |
| HIGH | …test/where/xml/LazyManyToManyNonUniqueIdWhereTest.java | 0 | create table collection_table( main_id integer not null, main_code varchar(10) not null, association_id int not null, as | STRING |
| HIGH | …re/annotations/LazyManyToManyNonUniqueIdWhereTest.java | 0 | create table collection_table( main_id integer not null, main_code varchar(10) not null, association_id int not null, as | STRING |
| HIGH | …ntCollectionWithLazyManyToOneNonUniqueIdWhereTest.java | 0 | create table collection_table( main_id integer not null, main_code varchar(10) not null, association_id int not null, as | STRING |
| HIGH | …re/xml/LazyManyToManyNonUniqueIdNotFoundWhereTest.java | 0 | create table building_ratings( building_id integer not null, rating_id integer not null, primary key (building_id, ratin | STRING |
| HIGH | …test/where/xml/LazyManyToManyNonUniqueIdWhereTest.java | 0 | create table building_ratings( building_id integer not null, rating_id integer not null, primary key (building_id, ratin | STRING |
| HIGH | …re/annotations/LazyManyToManyNonUniqueIdWhereTest.java | 0 | create table building_ratings( building_id integer not null, rating_id integer not null, primary key (building_id, ratin | STRING |
| HIGH | …re/xml/LazyManyToManyNonUniqueIdNotFoundWhereTest.java | 0 | create table material_ratings( material_id integer not null, rating_id integer not null, primary key (material_id, ratin | STRING |
| HIGH | …test/where/xml/LazyManyToManyNonUniqueIdWhereTest.java | 0 | create table material_ratings( material_id integer not null, rating_id integer not null, primary key (material_id, ratin | STRING |
| HIGH | …re/annotations/LazyManyToManyNonUniqueIdWhereTest.java | 0 | create table material_ratings( material_id integer not null, rating_id integer not null, primary key (material_id, ratin | STRING |
| HIGH | …ntCollectionWithLazyManyToOneNonUniqueIdWhereTest.java | 0 | create table material_ratings( material_id integer not null, rating_id integer not null, primary key (material_id, ratin | STRING |
| HIGH | …/orm/test/sql/partition/MySQLPartitionedTableTest.java | 0 | * partition by range (pid) ( * partition p1 values less than (1000), * partition p2 values less than (2000) * ) * | STRING |
| HIGH | …orm/test/sql/partition/OraclePartitionedTableTest.java | 0 | * partition by range (pid) ( * partition p1 values less than (1000), * partition p2 values less than (2000) * ) * | STRING |
| HIGH | …/main/java/org/hibernate/annotations/PartitionKey.java | 0 | * partition by range (pid) ( * partition p1 values less than (1000), * partition p2 values less than (2000) * ) * | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/hibernate/tutorial/envers/EnversIllustrationTest.java | 58 | // 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.java | 138 | // BIG HACK - should probably utilize the table cache before going to the jdbcreader :( | COMMENT |
| MEDIUM | …g/hibernate/cache/internal/CacheKeyImplementation.java | 109 | //only in this case, leverage the hashcode comparison check first; | COMMENT |
| MEDIUM | …bernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java | 5232 | // if going this route, would be better to leverage the normal hierarchical lookup for package | COMMENT |
| MEDIUM | …al/hbm/IdentifierSourceNonAggregatedCompositeImpl.java | 71 | // NOTE : the HBM support for IdClass is very limited. Essentially | COMMENT |
| MEDIUM | …rg/hibernate/boot/model/internal/SoftDeleteHelper.java | 62 | "Specifying SoftDelete#converter in conjunction with SoftDeleteType.TIMESTAMP is not supported" | CODE |
| MEDIUM | …te/boot/model/process/spi/MetadataBuildingProcess.java | 107 | * Single step: as defined by the {@link #build} method; internally leverages the 2-step paradigm | COMMENT |
| MEDIUM | …src/main/java/org/hibernate/annotations/NaturalId.java | 103 | /// leverage [@NaturalIdClass][NaturalIdClass] for loading. | COMMENT |
| MEDIUM | …rg/hibernate/procedure/internal/ProcedureCallImpl.java | 1303 | // Essentially here we'd have a case where there are no more results | COMMENT |
| MEDIUM | …/queue/internal/decompose/entity/UpdateDecomposer.java | 556 | /// We treat this case specially in `#coordinateUpdate` to leverage | COMMENT |
| MEDIUM | …/queue/internal/decompose/entity/UpdateDecomposer.java | 556 | /// We treat this case specially in `#coordinateUpdate` to leverage | COMMENT |
| MEDIUM | …nate/dialect/function/xml/SQLServerXmlAggFunction.java | 77 | // Essentially, we try to move the subquery into the from clause and mark it as lateral. | COMMENT |
| MEDIUM | …nate/dialect/sql/ast/spi/AbstractSqlAstTranslator.java | 2301 | // really any dialect translator could leverage this | COMMENT |
| MEDIUM | …nate/dialect/sql/ast/spi/AbstractSqlAstTranslator.java | 8244 | // Essentially, the subquery determines how many rows come before the current row (including that), | COMMENT |
| MEDIUM | …rsister/entity/mutation/UpdateCoordinatorStandard.java | 493 | // We treat this case specially in `#coordinateUpdate` to leverage | COMMENT |
| MEDIUM | …rsister/entity/mutation/UpdateCoordinatorStandard.java | 493 | // We treat this case specially in `#coordinateUpdate` to leverage | COMMENT |
| MEDIUM | …on/SynchronizationCallbackCoordinatorTrackingImpl.java | 50 | // Essentially, we need to see if we can process the callback immediately. So here we check whether the | COMMENT |
| MEDIUM | …ain/java/org/hibernate/query/sqm/internal/SqmUtil.java | 738 | // TODO: currently no robust way to check the types | COMMENT |
| MEDIUM | …ql/spi/mutation/jdbc/OptionalTableUpdateOperation.java | 261 | // leverage the fact that bindings are contiguous to avoid full nested iterations | COMMENT |
| MEDIUM | …g/hibernate/sql/ast/spi/query/select/SqlSelection.java | 11 | /// Represents a selection at the SQL/JDBC level. Essentially made up of: | COMMENT |
| MEDIUM | …esting/junit4/BaseNonConfigCoreFunctionalTestCase.java | 218 | // whether that usage could not just leverage that capability | COMMENT |
| MEDIUM | …al/entities/mapper/relation/BasicCollectionMapper.java | 173 | // ultimately means that the equality check will leverage both reference and value equality | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 63 | // Step 1: Load Baz#1, creates a lazy proxy for Foo#1 typed as Foo (not Bar) | COMMENT |
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 67 | // Step 2: Access the reference, does NOT initialize the proxy | COMMENT |
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 71 | // Step 3: Load Bar#1 with its bazList using join fetch | COMMENT |
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 78 | // Step 4: Load Baz#1 again with join fetch on foo | COMMENT |
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 86 | // Step 5: This should not throw NPE | COMMENT |
| LOW | …/cache/ImmutableLazyBasicWithAssociationCacheTest.java | 159 | // Step 1: Persist an entity with the lazy field set | COMMENT |
| LOW | …/cache/ImmutableLazyBasicWithAssociationCacheTest.java | 175 | // Step 2: Load the entity in a new session — should come from 2LC | COMMENT |
| LOW | …/hibernate/internal/AbstractSharedSessionContract.java | 2623 | // Step 1 :: write non-transient state... | COMMENT |
| LOW | …/hibernate/internal/AbstractSharedSessionContract.java | 2627 | // Step 2 :: write transient state... | COMMENT |
| LOW | …/hibernate/internal/AbstractSharedSessionContract.java | 2639 | // Step 1 :: read back non-transient state... | COMMENT |
| LOW | …/hibernate/internal/AbstractSharedSessionContract.java | 2644 | // Step 2 :: read back transient state... | COMMENT |
| LOW | …org/hibernate/type/descriptor/java/StringJavaType.java | 100 | // Since NClob extends Clob, we need to check if type is an NClob | COMMENT |
| LOW | …ernate/query/sqm/sql/spi/BaseSqmToSqlAstConverter.java | 5691 | // We need to check if this is a treated left or full join, which case we should | COMMENT |
| LOW | …n/java/org/hibernate/engine/spi/ActionQueueLegacy.java | 431 | // We need to check if this collection's owner is an orphan being removed, | COMMENT |
| LOW | …tion/internal/metadata/CollectionMappedByResolver.java | 140 | // We need to check if the property is audited as well | COMMENT |
| LOW | …tion/internal/metadata/CollectionMappedByResolver.java | 160 | // We need to check if the property is audited as well | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 63 | // Step 1: Load Baz#1, creates a lazy proxy for Foo#1 typed as Foo (not Bar) | COMMENT |
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 67 | // Step 2: Access the reference, does NOT initialize the proxy | COMMENT |
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 71 | // Step 3: Load Bar#1 with its bazList using join fetch | COMMENT |
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 78 | // Step 4: Load Baz#1 again with join fetch on foo | COMMENT |
| LOW⚡ | …est/inheritance/joined/ProxyEntityCoexistenceTest.java | 86 | // Step 5: This should not throw NPE | COMMENT |
| LOW | …/cache/ImmutableLazyBasicWithAssociationCacheTest.java | 159 | // Step 1: Persist an entity with the lazy field set | COMMENT |
| LOW | …/cache/ImmutableLazyBasicWithAssociationCacheTest.java | 175 | // Step 2: Load the entity in a new session — should come from 2LC | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …in/java/org/hibernate/engine/internal/Nullability.java | 75 | // In this implementation, we keep this feature. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …sults/graph/entity/internal/EntityInitializerImpl.java | 1343 | // refresh the data as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ernate/query/sqm/sql/spi/BaseSqmToSqlAstConverter.java | 7422 | // so we don't forget to do it in what follows | COMMENT |
| LOW | gradle/libs.versions.toml | 7 | # make sure to remove the now unnecessary net.bytebuddy.experimental=true in relevant CI jobs. | COMMENT |
| MEDIUM | …t/envers/integration/query/OrderByThreeEntityTest.java | 35 | * It's worth noting that a mapping like this orders the collection based on the value | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rc/main/java/org/hibernate/testing/jdbc/JdbcSpies.java | 346 | private static class DatabaseMetaDataHandler implements InvocationHandler, Spy { | CODE |
| LOW | …rc/main/java/org/hibernate/testing/jdbc/JdbcSpies.java | 435 | private static class ParameterMetaDataHandler implements InvocationHandler, Spy { | CODE |
| LOW | …rc/main/java/org/hibernate/testing/jdbc/JdbcSpies.java | 514 | private static class ResultSetMetaDataHandler implements InvocationHandler, Spy { | CODE |
| LOW | …rc/main/java/org/hibernate/testing/jdbc/JdbcMocks.java | 221 | private static class DatabaseMetaDataHandler implements InvocationHandler { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …hibernate/boot/model/internal/GeneratorParameters.java | 244 | // TODO: implement unique constraint support | COMMENT |
| LOW | …-core/src/main/java/org/hibernate/type/EntityType.java | 714 | //TODO: implement 2nd level caching?! natural id caching ?! proxies?! | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docker-compose/build-config/edb/docker-entrypoint.sh | 47 | # Create the transaction log directory before initdb is run so the directory is owned by the correct user | COMMENT |