Skip to content
Snippets Groups Projects
Commit dd4a2f9a authored by Goik Martin's avatar Goik Martin
Browse files

Add comment on database object state

parent 007d1107
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@ public class CompareNewlyCreated {
{
final Session session = HibernateUtil.createSessionFactory("session2/hibernate.cfg.xml").openSession();
final Transaction transaction = session.beginTransaction();
// previously saved as new User(123, "goik", "Martin Goik");
final User user = (User) session.load(User.class, 1L);
System.out.println("a.equals(user)):" + a.equals(user));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment