summaryrefslogtreecommitdiff
path: root/myapp/src/main
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-08-04 18:50:18 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-08-04 18:50:18 +0200
commit6d4c6960e69b53c124bd84beb3d008bd5a4bb319 (patch)
tree1bd812b044d35b629ac2b49f4910b28cfdc29a12 /myapp/src/main
parent381c368b8907640bdd7cd81db2294724e082a119 (diff)
downloadcontainer-playground-6d4c6960e69b53c124bd84beb3d008bd5a4bb319.tar.gz
container-playground-6d4c6960e69b53c124bd84beb3d008bd5a4bb319.tar.bz2
container-playground-6d4c6960e69b53c124bd84beb3d008bd5a4bb319.tar.xz
container-playground-6d4c6960e69b53c124bd84beb3d008bd5a4bb319.zip
wip
o Adding Joda time's DateTime and UUID. o Registering @SequenceGenerator's on fields and getters. o Skipping static methods. o Generating SQL to drop sequences.
Diffstat (limited to 'myapp/src/main')
-rw-r--r--myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java b/myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java
index 0101004..d5a1170 100644
--- a/myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java
+++ b/myapp/src/main/java/io/trygvis/container/myapp/AddressBook.java
@@ -87,7 +87,7 @@ public class AddressBook {
public void run(Connection c) throws Exception {
Statement statement = c.createStatement();
statement.executeUpdate(ContactDao.createTableSql);
- for (String sql : Sequences.sequences) {
+ for (String sql : Sequences.createSequences) {
statement.executeUpdate(sql);
}
}
@@ -98,6 +98,9 @@ public class AddressBook {
public void run(Connection c) throws Exception {
Statement statement = c.createStatement();
statement.executeUpdate(ContactDao.dropTableSql);
+ for (String sql : Sequences.dropSequences) {
+ statement.executeUpdate(sql);
+ }
}
}