Hi,
In my hibernate app, all my POJOs extend a common class, DataObject, which has a save() method, which, when called, runs
Code:
session.saveOrUpdate(this);
session.flush();
Now, this works perfectly, and I can see the database query in the log, and I can see the row in the database.
When I come to load its associated parent object (Group), however, I get
Code:
org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org....User#25]
This is part of an API, so the workflow is:
1. Complete web form for new user, submit
2. Hibernate creates new user
3. Website loads group (list of users)
4. Hibernate loads and returns group
5. Website displays group
The error is occurring during stage 4.
Any help would be greatly appreciated, I've been tearing my hair out for about 6 hours on this!