Skip to content

Conversation

@sebersole
Copy link
Member

@sebersole sebersole commented May 2, 2025

HHH-19420 - Support batch-size for collections in mapping.xml


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-19420

} );

scope.inTransaction( (session) -> {
List<ProductLine> list = session.createQuery( "from ProductLine pl order by pl.description" ).list();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
QueryProducerImplementor.createQuery
should be avoided because it has been deprecated.
} );

scope.inTransaction( (session) -> {
List<Model> models = session.createQuery( "from Model m" ).list();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
QueryProducerImplementor.createQuery
should be avoided because it has been deprecated.
} );

scope.inTransaction( (session) -> {
Iterator<Model> iter = session.createQuery( "from Model" ).list().iterator();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
QueryProducerImplementor.createQuery
should be avoided because it has been deprecated.

session.clear();

List<ProductLine> list = session.createQuery( "from ProductLine" ).list();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
QueryProducerImplementor.createQuery
should be avoided because it has been deprecated.
} );

scope.inTransaction( (session) -> {
List<ProductLine> list = session.createQuery( "from ProductLine pl order by pl.description" ).list();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
QueryProducerImplementor.createQuery
should be avoided because it has been deprecated.
@sebersole sebersole merged commit cc18eb8 into hibernate:main May 2, 2025
24 of 25 checks passed
@sebersole sebersole deleted the xml-collection-batch-size branch May 2, 2025 21:04
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