Hello,
I have a question about order of hibernate updates. My simple example looks like:
Code:
Session session;
Transaction tx = session.beginTransaction();
Invoice invoice = session.load(Invoice.class, 1);
Employee employee = session.load(Employee .class, 1);
invoice.setValue(12);
employee.setName("New name");
session.update(employee);
session.update(invoice);
tx.commit();
but in console I see that hibernate first make a update invoice object and after that employee. Whay hibernate don't update in my order (employee->invoice) ?
Best regards