Skip to content

Conversation

sebersole
Copy link
Member

@sebersole sebersole commented Oct 9, 2025

Dropping usage of JUnit 4


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19846

}

public Set getEnrollments() {
public Set<Enrollment> getEnrollments() {

Check notice

Code scanning / CodeQL

Exposing internal representation Note test

getEnrollments exposes the internal representation stored in field enrollments. The value may be modified
after this call to getEnrollments
.
Cannot convert...
* org.hibernate.orm.test.hql.PostgreSQLFunctionSelectClauseTest - registering custom function
* org.hibernate.orm.test.hql.PostgreSQLFunctionWhereClauseTest - aux-db-object
Comment on lines +104 to +117
var companyId = factoryScope.fromTransaction( (session) -> {
Flight firstOne = new Flight();
firstOne.setId(1L);
firstOne.setName( "AF0101" );
firstOne.setDuration(1000L);
Company frenchOne = new Company();
frenchOne.setName( "Air France" );
firstOne.setCompany( frenchOne );

session.persist( firstOne );
session.persist( frenchOne );

return frenchOne.getId();
} );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Integer companyId' is never read.
Comment on lines +191 to +193
final EntityPersister entityDescriptor = sessionFactory
.getMappingMetamodel()
.getEntityDescriptor( entityClass );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'EntityPersister entityDescriptor' is never read.
Cannot convert...
* org.hibernate.orm.test.hql.PostgreSQLFunctionSelectClauseTest - registering custom function
* org.hibernate.orm.test.hql.PostgreSQLFunctionWhereClauseTest - aux-db-object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant