@@ -34,6 +34,7 @@ import org.springframework.lang.Nullable;
|
||||
* versa.
|
||||
*
|
||||
* @author Jens Schauder
|
||||
* @author Mark Paluch
|
||||
* @since 1.1
|
||||
*/
|
||||
public interface JdbcConverter extends RelationalConverter {
|
||||
|
||||
@@ -50,6 +50,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Moises Cisneros
|
||||
* @author Hebert Coelho
|
||||
* @author Diego Krupitza
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
public class JdbcQueryMethod extends QueryMethod {
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ class DerivedSqlIdentifier implements SqlIdentifier {
|
||||
@Override
|
||||
public String toSql(IdentifierProcessing processing) {
|
||||
|
||||
// using a local copy of volatile this.sqlName to ensure thread safety.
|
||||
CachedSqlName sqlName = this.sqlName;
|
||||
if (sqlName == null || sqlName.processing != processing) {
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ class DefaultSqlIdentifier implements SqlIdentifier {
|
||||
@Override
|
||||
public String toSql(IdentifierProcessing processing) {
|
||||
|
||||
// using a local copy of volatile this.sqlName to ensure thread safety.
|
||||
CachedSqlName sqlName = this.sqlName;
|
||||
if (sqlName == null || sqlName.processing != processing) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user