org.hibernate.jpa.internal.util.PersistenceUtilHelper Java Examples
The following examples show how to use
org.hibernate.jpa.internal.util.PersistenceUtilHelper.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PersistenceUnitUtilImpl.java From lams with GNU General Public License v2.0 | 6 votes |
@Override public boolean isLoaded(Object entity, String attributeName) { // added log message to help with HHH-7454, if state == LoadState,NOT_LOADED, returning true or false is not accurate. log.debug( "PersistenceUnitUtil#isLoaded is not always accurate; consider using EntityManager#contains instead" ); LoadState state = PersistenceUtilHelper.isLoadedWithoutReference( entity, attributeName, cache ); if ( state == LoadState.LOADED ) { return true; } else if ( state == LoadState.NOT_LOADED ) { return false; } else { return PersistenceUtilHelper.isLoadedWithReference( entity, attributeName, cache ) != LoadState.NOT_LOADED; } }
Example #2
Source File: ReactivePersistenceProvider.java From hibernate-reactive with GNU Lesser General Public License v2.1 | 4 votes |
@Override public LoadState isLoadedWithoutReference(Object proxy, String property) { return PersistenceUtilHelper.isLoadedWithoutReference( proxy, property, cache ); }
Example #3
Source File: ReactivePersistenceProvider.java From hibernate-reactive with GNU Lesser General Public License v2.1 | 4 votes |
@Override public LoadState isLoadedWithReference(Object proxy, String property) { return PersistenceUtilHelper.isLoadedWithReference( proxy, property, cache ); }
Example #4
Source File: ReactivePersistenceProvider.java From hibernate-reactive with GNU Lesser General Public License v2.1 | 4 votes |
@Override public LoadState isLoaded(Object o) { return PersistenceUtilHelper.isLoaded(o); }
Example #5
Source File: FastBootHibernatePersistenceProvider.java From quarkus with Apache License 2.0 | 4 votes |
@Override public LoadState isLoadedWithoutReference(Object proxy, String property) { return PersistenceUtilHelper.isLoadedWithoutReference(proxy, property, cache); }
Example #6
Source File: FastBootHibernatePersistenceProvider.java From quarkus with Apache License 2.0 | 4 votes |
@Override public LoadState isLoadedWithReference(Object proxy, String property) { return PersistenceUtilHelper.isLoadedWithReference(proxy, property, cache); }
Example #7
Source File: FastBootHibernatePersistenceProvider.java From quarkus with Apache License 2.0 | 4 votes |
@Override public LoadState isLoaded(Object o) { return PersistenceUtilHelper.isLoaded(o); }
Example #8
Source File: PersistenceUnitUtilImpl.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public boolean isLoaded(Object entity) { // added log message to help with HHH-7454, if state == LoadState,NOT_LOADED, returning true or false is not accurate. log.debug( "PersistenceUnitUtil#isLoaded is not always accurate; consider using EntityManager#contains instead" ); return PersistenceUtilHelper.isLoaded( entity ) != LoadState.NOT_LOADED; }
Example #9
Source File: HibernatePersistenceProvider.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public LoadState isLoadedWithoutReference(Object proxy, String property) { return PersistenceUtilHelper.isLoadedWithoutReference( proxy, property, cache ); }
Example #10
Source File: HibernatePersistenceProvider.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public LoadState isLoadedWithReference(Object proxy, String property) { return PersistenceUtilHelper.isLoadedWithReference( proxy, property, cache ); }
Example #11
Source File: HibernatePersistenceProvider.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public LoadState isLoaded(Object o) { return PersistenceUtilHelper.isLoaded(o); }