Skip to content
Snippets Groups Projects
Commit a7959c02 authored by Razzan Yoni's avatar Razzan Yoni
Browse files

feat : implement migrate to db

parent c8a863cb
Branches
Tags
1 merge request!1Merge dev to main
package org.tonality.db;
import org.hibernate.SessionFactory;
import org.tonality.util.HibernateUtil;
import static java.lang.System.exit;
public class Migration {
public static void main(String[] args) {
System.out.println("Migrating Data...");
try {
SessionFactory sessionFactory = HibernateUtil.getSessionFactory();
System.out.println(sessionFactory);
System.out.println("Migration Complete!");
} catch (Exception e) {
System.out.println("Error: " + e.getMessage());
exit(1);
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment