Skip to content

Conversation

@jrenaat
Copy link
Member

@jrenaat jrenaat commented Nov 17, 2025

  • a few very minor cleanups

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

…nces from jcache + a few very minor cleanups

Signed-off-by: Jan Schatteman <[email protected]>
Session session = entityManager.unwrap(Session.class);
//tag::caching-entity-native-example[]
Person person = session.get(Person.class, 1L);
Person person = session.find(Person.class, 1L);

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Person person' is never read.
//tag::caching-management-cache-mode-entity-native-example[]
session.setCacheMode(CacheMode.REFRESH);
Person person = session.get(Person.class, 1L);
Person person = session.find(Person.class, 1L);

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'Person person' is never read.
@jrenaat jrenaat merged commit 23d784f into hibernate:main Nov 18, 2025
27 of 28 checks passed
@jrenaat jrenaat deleted the HHH-19847_jcache branch November 18, 2025 12:12
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