* 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;
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);
}
}