(no commit message)
[utils] / support / test / org / wamblee / test / HibernateUpdater.java
index 833764c0486e9b10b352268cf85a55dd0535b3d0..3882ebfd70a6c08288505cb83cbcce1a70c2c53f 100644 (file)
@@ -12,7 +12,7 @@
  * 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 org.wamblee.test;
 
@@ -23,18 +23,26 @@ import org.hibernate.cfg.Configuration;
 import org.hibernate.tool.hbm2ddl.SchemaUpdate;
 
 /**
- * Exporting the hibernate mapping. 
+ * Exporting the hibernate mapping.
  */
-public class HibernateUpdater {
+public final class HibernateUpdater {
     
-    public static void main(String[] args) throws IOException {  
-        String file = args[0]; 
-        File dir = new File(args[0]); 
-      
+    /**
+     * Disabled constructor.
+     *
+     */
+    private HibernateUpdater() { 
+        // Empty
+    }
+
+    public static void main(String[] aArgs) throws IOException {
+        String file = aArgs[0];
+        File dir = new File(aArgs[0]);
+
         Configuration conf = HibernateUtils.getConfiguration(dir);
-        SchemaUpdate lSchemaUpdate = new SchemaUpdate( conf );
-        lSchemaUpdate.execute( true, true );
+
+        SchemaUpdate lSchemaUpdate = new SchemaUpdate(conf);
+        lSchemaUpdate.execute(true, true);
     }
 
 }