the load of session seems to be useless,if I need to create a pojo,why i need to use load to create a object that will not be callable?

```
@Test
public void testTwoSession() {
    Session session = sessionFactory.getCurrentSession();
    session.beginTransaction();
    Teacher t = (Teacher) session.load(Teacher.class, 2);
    System.out.println(t);
    session.getTransaction().commit();
    System.out.println(t);
}

```

before the commit,the object will be printed,but when the session is committed,the print operation will fail.now I am wondering why not just use get method to get the Teacher object.