it updates it
Which it is it?
So the database gets updated properly, but the local bean Class 2 is not updated? Or class2 is updated, but the database is not updated?
Perhaps you're actually creating a new class 2, as opposed to actually updating a new instance. As such, the new class2 is updated, but the program holds a reference to the old value?
If this is the case, you may be having a 'pass by reference' type of issue. Check to see if you're using the new keyword anywhere with this second instance. I bet that's it.
-Cameron McKenzie