| 
					
						 Hibernate version: 3.1.3 
 
 I have a class, say Class1,  mapped from "subselect". The "subselect" contains a SQL query that join two tables, say table1 and table2.
 
 I have another class, say Class1_1, mapped to table1.
 
 In a dao method, I update Class1_1 first and then do a get() for Class1 with Class1_1's id, the returned Class1 from the get() contains the old values of Class1_1 instead of the updated values.
 
 I have show sql turned on it looks like the update() is executed after the "select" even though my code has "update" followed by "select".
 
 Any ideas?
 
 Thanks in advance. 
					
  
						
					 |