Add support for 'short' column types

Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/src/com/google/gwtorm/schema/sql/SqlDialect.java b/src/com/google/gwtorm/schema/sql/SqlDialect.java
index 0cf29ae..13c35df 100644
--- a/src/com/google/gwtorm/schema/sql/SqlDialect.java
+++ b/src/com/google/gwtorm/schema/sql/SqlDialect.java
@@ -27,6 +27,7 @@
   protected SqlDialect() {
     types = new HashMap<Class<?>, SqlTypeInfo>();
     types.put(Boolean.TYPE, new SqlBooleanTypeInfo());
+    types.put(Short.TYPE, new SqlShortTypeInfo());
     types.put(Integer.TYPE, new SqlIntTypeInfo());
     types.put(Long.TYPE, new SqlLongTypeInfo());
     types.put(String.class, new SqlStringTypeInfo());
diff --git a/src/com/google/gwtorm/schema/sql/SqlShortTypeInfo.java b/src/com/google/gwtorm/schema/sql/SqlShortTypeInfo.java
new file mode 100644
index 0000000..5220f47
--- /dev/null
+++ b/src/com/google/gwtorm/schema/sql/SqlShortTypeInfo.java
@@ -0,0 +1,36 @@
+// Copyright 2008 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+package com.google.gwtorm.schema.sql;
+
+import com.google.gwtorm.schema.ColumnModel;
+
+import java.sql.Types;
+
+public class SqlShortTypeInfo extends SqlTypeInfo {
+  @Override
+  protected String getJavaSqlTypeAlias() {
+    return "Short";
+  }
+
+  @Override
+  protected int getSqlTypeConstant() {
+    return Types.SMALLINT;
+  }
+
+  @Override
+  public String getSqlType(final ColumnModel column) {
+    return "SMALLINT DEFAULT 0 NOT NULL";
+  }
+}