Skip to content

Commit

Permalink
Remove "dataSource_" from bean name as dataSourceName of GroovyChange…
Browse files Browse the repository at this point in the history
… when using additional dataSources
  • Loading branch information
nobeans committed Mar 26, 2024
1 parent a1234f5 commit dadc5d5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ class GroovyChange extends AbstractChange {

ctx = parsedNode.getChildValue(null, 'applicationContext', ApplicationContext)
dataSourceName = parsedNode.getChildValue(null, DATA_SOURCE_NAME_KEY, String)
if (dataSourceName.startsWith("dataSource_")) {
dataSourceName = dataSourceName.substring("dataSource_".length())
}
initClosure = parsedNode.getChildValue(null, 'init', Closure)
validateClosure = parsedNode.getChildValue(null, 'validate', Closure)
changeClosure = parsedNode.getChildValue(null, 'change', Closure)
Expand Down

0 comments on commit dadc5d5

Please sign in to comment.