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
class Antlr4Plugin implements Plugin<Project> { | |
void apply(Project project) { | |
project.with { | |
apply plugin : 'java' | |
configurations.maybeCreate 'antlr' | |
Antlr4GenerationTask genTask = tasks.create 'generateGrammarSource', Antlr4GenerationTask | |
genTask.group = 'Build' | |
genTask.description = 'Generate source code from ANTLR grammar' |
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
/** | |
* Controls the base integer for binding JDBC-style ({@code ?}) ordinal | |
* parameters when the Hibernate SessionFactory is bootstrapped via the native | |
* bootstrapping API. JPA says that all non-named parameter binding is explicitly | |
* 1-based; so when bootstrapped via JPA, Hibernate always treats these as 1-based. | |
* <p/> | |
* Note that this affects only ordinal parameters. Positional | |
* parameters (e.g. {@code ?1}) explicitly define the binding position (1) in | |
* their declaration, whereas the binding position is implicit with ordinal | |
* parameters based on its ordinal position in the query. As of 6.0, support |
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
/** | |
* Region is a conceptual contract. It defines named access to specific | |
* storage within the underlying cache provider. It is a conceptual idea in | |
* that it does not necessarily map to any single concept in the underlying | |
* caching implementation. How the specific cache provider (RegionFactory | |
* implementor) maps the idea of a Region to any underlying concept is | |
* completely dependent on the provider. | |
* | |
* @author Steve Ebersole | |
*/ |
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
package org.hibernate.query; | |
import java.util.List; | |
/** | |
* Allows defining transformation of the result List from a Query from | |
* one form to another. | |
* | |
* @see TupleTransformer | |
* |
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
public class EventType<T, X extends OperationContext> { | |
... | |
; | |
private final String eventName; | |
private final Class<T> baseListenerInterface; | |
private final Optional<Class<X>> operationContextInterface; | |
private final int ordinal; | |
... |
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
8:27:59,692 DEBUG parseTree:46 - -> SelectionContext (selection) [`concat(111,substr(222222,1,3))`] | |
08:27:59,693 DEBUG parseTree:46 - -> SelectExpressionContext (selectExpression) [`concat(111,substr(222222,1,3))`] | |
08:27:59,693 DEBUG parseTree:46 - -> FunctionExpressionContext (expression) [`concat(111,substr(222222,1,3))`] | |
08:27:59,693 DEBUG parseTree:46 - -> FunctionContext (function) [`concat(111,substr(222222,1,3))`] | |
08:27:59,694 DEBUG parseTree:46 - -> StandardFunctionContext (standardFunction) [`concat(111,substr(222222,1,3))`] | |
08:27:59,694 DEBUG parseTree:46 - -> ConcatFunctionContext (concatFunction) [`concat(111,substr(222222,1,3))`] | |
08:27:59,694 DEBUG parseTree:46 - -> LiteralExpressionContext (expression) [`111`] | |
08:27:59,695 DEBUG parseTree:46 - -> LiteralContext (literal) [`111`] | |
08:27:59,695 DEBUG parseTree:76 - <- LiteralContext (literal |
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
task generateEnversStaticMetamodel(type: JavaCompile) { | |
source = sourceSets.main.java | |
include "org/hibernate/envers/**" | |
classpath = sourceSets.main.runtimeClasspath + sourceSets.test.compileClasspath | |
options.compilerArgs = [ | |
"-proc:only", | |
"-processor", | |
"org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor" | |
] | |
destinationDir = new File( "${projectDir}/src/main/java" ) |
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
@Override | |
public synchronized void deRegisterChild(ServiceRegistryImplementor child) { | |
if ( childRegistries == null ) { | |
throw new IllegalStateException( "No child ServiceRegistry registrations found" ); | |
} | |
childRegistries.remove( child ); | |
if ( childRegistries.isEmpty() ) { |
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
@MappedSuperclass | |
class B { | |
int b; | |
void setB (int b) { | |
$$_hibernate_setB( b ); | |
} | |
public void $$_hibernate_setB(int b) { | |
this.b = b; |
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
final Integer sessionLocalJdbcBatchSize = jdbcCoordinator.getJdbcSessionOwner().getBatchSize(); | |
final int jdbcBatchSizeToUse = sessionLocalJdbcBatchSize == null ? this.size : sessionLocalJdbcBatchSize; | |
return jdbcBatchSizeToUse > 1 | |
? new BatchingBatch( key, jdbcCoordinator, jdbcBatchSizeToUse ) | |
: new NonBatchingBatch( key, jdbcCoordinator ); |