Skip to content

Commit

Permalink
Merge branch '2.5.x'
Browse files Browse the repository at this point in the history
Closes gh-27063
  • Loading branch information
philwebb committed Jun 24, 2021
2 parents 6102f10 + 093e7f7 commit 6b241d0
Showing 1 changed file with 13 additions and 12 deletions.
Expand Up @@ -54,14 +54,15 @@ public class DataSourceProperties implements BeanClassLoaderAware, InitializingB
private ClassLoader classLoader;

/**
* Name of the datasource. Default to "testdb" when using an embedded database.
* Whether to generate a random datasource name.
*/
private String name;
private boolean generateUniqueName = true;

/**
* Whether to generate a random datasource name.
* Datasource name to use if "generate-unique-name" is false. Defaults to "testdb"
* when using an embedded database, otherwise null.
*/
private boolean generateUniqueName = true;
private String name;

/**
* Fully qualified name of the connection pool implementation to use. By default, it
Expand Down Expand Up @@ -194,14 +195,6 @@ public DataSourceBuilder<?> initializeDataSourceBuilder() {
.url(determineUrl()).username(determineUsername()).password(determinePassword());
}

public String getName() {
return this.name;
}

public void setName(String name) {
this.name = name;
}

public boolean isGenerateUniqueName() {
return this.generateUniqueName;
}
Expand All @@ -210,6 +203,14 @@ public void setGenerateUniqueName(boolean generateUniqueName) {
this.generateUniqueName = generateUniqueName;
}

public String getName() {
return this.name;
}

public void setName(String name) {
this.name = name;
}

public Class<? extends DataSource> getType() {
return this.type;
}
Expand Down

0 comments on commit 6b241d0

Please sign in to comment.