Changeset 26 for trunk/fmgVen/test/com/fmguler/ven/sample
- Timestamp:
- Jan 2, 2011, 8:51:21 PM (14 years ago)
- Location:
- trunk/fmgVen/test/com/fmguler/ven/sample
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/fmgVen/test/com/fmguler/ven/sample/Sample.java
r25 r26 40 40 public static void main(String[] args) { 41 41 buildDatabase(); 42 test Get();43 //rollbackDatabase();42 testSave(); 43 rollbackDatabase(); 44 44 } 45 45 … … 139 139 Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(getDataSource().getConnection()); 140 140 Liquibase liquibase = new Liquibase("etc/test-db/test-db-changelog.xml", new FileSystemFileOpener(), database); 141 //liquibase.rollback(51, ""); 142 liquibase.rollback("0", ""); 141 liquibase.rollback("tag-single-table", ""); 143 142 Locale.setDefault(currLocale); 144 143 } catch (SQLException ex) { -
trunk/fmgVen/test/com/fmguler/ven/sample/domain/SomeDomainObject.java
r23 r26 25 25 */ 26 26 public class SomeDomainObject { 27 private int no;27 private Integer id; 28 28 private String name; 29 29 private String description; … … 31 31 32 32 /** 33 * @return the no33 * @return the id 34 34 */ 35 public int getNo() {36 return no;35 public Integer getId() { 36 return id; 37 37 } 38 38 39 39 /** 40 * @param no the noto set40 * @param id the id to set 41 41 */ 42 public void set No(int no) {43 this. no = no;42 public void setId(Integer id) { 43 this.id = id; 44 44 } 45 45 … … 87 87 88 88 public String toString() { 89 return no+ " " + name + " " + description + " " + date;89 return id + " " + name + " " + description + " " + date; 90 90 } 91 91 }
Note: See TracChangeset
for help on using the changeset viewer.