This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadEventHandler handler = ...; | |
EventListenerGroup<LoadEventListener> listenerGroup = ...; | |
listenerGroup.withListeners( | |
(listeners) -> { | |
if ( listeners == null ) { | |
// short-circuit | |
return handler.load( ... ); | |
} | |
else if ( listeners.length == 1 ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface LoadEventHandler { | |
/** | |
* Perform the load | |
*/ | |
Object load( | |
String entityName, | |
Object id, | |
LockMode lockMode, | |
LoadType loadType, | |
SessionImplementor session); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
card 0: PCH [HDA Intel PCH], device 0: ALC257 Analog [ALC257 Analog] | |
Subdevices: 0/1 | |
Subdevice #0: subdevice #0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 24.472153] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC257: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker | |
[ 24.472155] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) | |
[ 24.472156] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0) | |
[ 24.472157] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0 | |
[ 24.472158] snd_hda_codec_realtek hdaudioC0D0: inputs: | |
[ 24.472159] snd_hda_codec_realtek hdaudioC0D0: Mic=0x19 | |
[ 24.472160] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x12 | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TableGroupImpl ... { | |
private final TableReference primaryRef; | |
private final BiFunction<TableReference,String,TableReferenceJoin> joinCreator; | |
private List<TableReferenceJoin> tableJoins; | |
... | |
@Override | |
public TableReference resolveTableReference(String tableExpression) { | |
if ( primaryRef... ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testQueryConcurrency(SessionFactoryScope scope) throws InterruptedException { | |
final int numberOfIterations = 40; | |
final int numberOfForks = 5; | |
final ExecutorService executor = Executors.newFixedThreadPool( 5 ); | |
final List<Future<String>> futures = CollectionHelper.arrayList( numberOfIterations * numberOfForks ); | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testCustomProviderPassingIntegrationOverrides() { | |
PersistenceProvider provider = new HibernatePersistence() { | |
@Override | |
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) { | |
properties.putAll( ConnectionProviderBuilder.getConnectionProviderProperties() ); | |
return super.createContainerEntityManagerFactory( info, properties ); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enhanced Enhanced | |
allow_enhancement_as_proxy=true allow_enhancement_as_proxy=false Non-enhanced | |
Session#load: returns uninitialized, enhanced entity return enhanced entity that return entity | |
(entity/proxy (per HHH-11147) implements HibernateProxy that implements | |
not in PC HibernateProxy | |
yet) | |
LazyToOne: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enhanced Enhanced | |
allow_enhancement_as_proxy=true allow_enhancement_as_proxy=false Non-enhanced | |
Session#load: returns uninitialized, enhanced entity return enhanced entity that return entity | |
(entity/proxy (per HHH-11147) implements HibernateProxy that implements | |
not in PC HibernateProxy | |
yet) | |
LazyToOne: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sebersole@t460p hibernate-core]$ gradlew -m release | |
:release SKIPPED | |
:hibernate-core:antlr SKIPPED | |
:hibernate-core:xjc SKIPPED | |
:hibernate-core:compileJava SKIPPED | |
:hibernate-core:processResources SKIPPED | |
:hibernate-core:classes SKIPPED | |
:hibernate-core:osgiClasses SKIPPED | |
:hibernate-core:jar SKIPPED |
NewerOlder