I just begin my JPA 2.0 studies, and I have this piece of code:
em = SessionFactory.startSession();
tx = em.getTransaction();
My problem is: I'm not sure if I completly understand the difference between the use of a session and the use of a transaction. In a few lines, can anyone please tell me the biggest differences between them ? Thanks !