mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-03 00:09:19 +00:00
HHH-4999 implement new added method in the ExecutionEnvironment.Settings
This commit is contained in:
parent
7ffe291739
commit
e521d91dbb
@ -135,7 +135,7 @@ protected Class getTransactionFactoryClass() {
|
||||
/**
|
||||
* Apply any node-specific configurations to our first node.
|
||||
*
|
||||
* @param the
|
||||
* @param cfg
|
||||
* Configuration to update.
|
||||
*/
|
||||
protected void configureFirstNode(Configuration cfg) {
|
||||
@ -145,7 +145,7 @@ protected void configureFirstNode(Configuration cfg) {
|
||||
/**
|
||||
* Apply any node-specific configurations to our second node.
|
||||
*
|
||||
* @param the
|
||||
* @param cfg
|
||||
* Configuration to update.
|
||||
*/
|
||||
protected void configureSecondNode(Configuration cfg) {
|
||||
@ -186,7 +186,12 @@ public SecondNodeSettings() {
|
||||
this.delegate = DualNodeTestCase.this;
|
||||
}
|
||||
|
||||
/**
|
||||
@Override
|
||||
public Class[] getAnnotatedClasses() {
|
||||
return this.delegate.getAnnotatedClasses();
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the important one -- we extend the delegate's work by adding second-node specific
|
||||
* settings
|
||||
*/
|
||||
|
@ -68,7 +68,7 @@ private void standardConfigure(Configuration cfg) {
|
||||
/**
|
||||
* Apply any node-specific configurations to our first node.
|
||||
*
|
||||
* @param the Configuration to update.
|
||||
* @param cfg Configuration to update.
|
||||
*/
|
||||
protected void configureFirstNode(Configuration cfg)
|
||||
{
|
||||
@ -78,7 +78,7 @@ protected void configureFirstNode(Configuration cfg)
|
||||
/**
|
||||
* Apply any node-specific configurations to our second node.
|
||||
*
|
||||
* @param the Configuration to update.
|
||||
* @param cfg Configuration to update.
|
||||
*/
|
||||
protected void configureSecondNode(Configuration cfg)
|
||||
{
|
||||
@ -166,7 +166,10 @@ public ExecutionEnvironment getSecondNodeEnvironment() {
|
||||
public class SecondNodeSettings implements ExecutionEnvironment.Settings {
|
||||
|
||||
private DualNodeTestCaseBase delegate;
|
||||
|
||||
public Class[] getAnnotatedClasses() {
|
||||
return this.delegate.getAnnotatedClasses();
|
||||
}
|
||||
|
||||
public SecondNodeSettings() {
|
||||
this.delegate = DualNodeTestCaseBase.this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user