# Migrating custom refactorings from 1.9.5 to 2.0.3

**URL:** <https://forum.liquibase.org/t/migrating-custom-refactorings-from-1-9-5-to-2-0-3/1750>\
**Category:** General Discussion\
**Created:** [November 30, 2011, 9:49am UTC](https://forum.liquibase.org/t/migrating-custom-refactorings-from-1-9-5-to-2-0-3/1750 "2011-11-30T09:49:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acohen1644](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@acohen1644](https://forum.liquibase.org/u/acohen1644)\
**Post date:** [November 30, 2011, 9:49am UTC](https://forum.liquibase.org/t/migrating-custom-refactorings-from-1-9-5-to-2-0-3/1750/1 "2011-11-30T09:49:00Z")

</div>

I’m trying to upgrade to Liquibase 2.0.3, and I’m having a little trouble migrating my custom refactorings. I have a few idioms that seem to occur over and over in my code. Here’s one:

&nbsp; &nbsp; database

&nbsp; &nbsp; &nbsp; .getJdbcTemplate()

&nbsp; &nbsp; &nbsp; &nbsp; .comment

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ("Found "

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ constants.length

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ " constants in the Java code.");

It looks like Database.getJdbcTemplate() has gone away, or maybe just moved somewhere else.

Here’s another use of getJdbcTemplate() that frequently occurs in my code:

&nbsp; &nbsp; &nbsp; if (database.getJdbcTemplate().executesStatements())

&nbsp; &nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; database.getJdbcTemplate().update( new RawSqlStatement(queryString));

&nbsp; &nbsp; &nbsp; }

So, what’s the right/best/easiest way to migrate these custom refactorings to 2.0.3?

Thanks for any help, and let me know if you need more information,

&nbsp; &nbsp; &nbsp;Andy

---

<div class="post-metadata">

**Author:** ![mikemil2713](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@mikemil2713](https://forum.liquibase.org/u/mikemil2713)\
**Post date:** [November 30, 2011, 9:49am UTC](https://forum.liquibase.org/t/migrating-custom-refactorings-from-1-9-5-to-2-0-3/1750/2 "2011-11-30T09:49:00Z")

</div>

I haven’t done any of the custom work with the product but do remember researching a similar question and seeing that the jdbctemplate has been refactored/morphed into another class.&nbsp; Please see the link below where Nathan responded and maybe that will help.  
  
[http://forum.liquibase.org/topic/databaseconnection-1-9-5-vs-2-0-3#49382000000325056](http://forum.liquibase.org/topic/databaseconnection-1-9-5-vs-2-0-3#49382000000325056)

---

<div class="post-metadata">

**Author:** ![acohen1644](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@acohen1644](https://forum.liquibase.org/u/acohen1644)\
**Post date:** [November 30, 2011, 9:49am UTC](https://forum.liquibase.org/t/migrating-custom-refactorings-from-1-9-5-to-2-0-3/1750/3 "2011-11-30T09:49:00Z")

</div>

Thanks very much - that was just the information I was looking for.
