git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
support
/
test
/
org
/
wamblee
/
test
/
HibernateUpdater.java
diff --git
a/support/test/org/wamblee/test/HibernateUpdater.java
b/support/test/org/wamblee/test/HibernateUpdater.java
index 833764c0486e9b10b352268cf85a55dd0535b3d0..576c1819878da434b5ec92b1cc869ba026b51dac 100644
(file)
--- a/
support/test/org/wamblee/test/HibernateUpdater.java
+++ b/
support/test/org/wamblee/test/HibernateUpdater.java
@@
-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.
* 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;
package org.wamblee.test;
@@
-23,18
+23,26
@@
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaUpdate;
/**
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(file);
+
Configuration conf = HibernateUtils.getConfiguration(dir);
Configuration conf = HibernateUtils.getConfiguration(dir);
-
- SchemaUpdate lSchemaUpdate = new SchemaUpdate(
conf
);
- lSchemaUpdate.execute(
true, true
);
+
+ SchemaUpdate lSchemaUpdate = new SchemaUpdate(
conf
);
+ lSchemaUpdate.execute(
true, true
);
}
}
}
}