|
[Quote=Quote the reply fromxixi8558on the 2nd floor:]
Correct way of writing: public void save(Login login) {
Configuration config = new Configuration();
SessionFactory sf=config.configure().buildSessionFactory(); Session s=sf.openSession();
Transaction t =s.beginTransaction();
s.save(login);
t.commit();
s.close();
}
}
Wrong wording: public void save(Login login) {
Configuration config = new Configuration();
SessionFactory sf=config.…
[/Quote]
Positive solution, support. |
|