Joined: Tue Feb 20, 2007 9:42 am Posts: 1 Location: Santiago, Chile				
			 | 
			
				
				
					| 
					
						 The In Action Hibernate book folks offer us examples 
 of classes with the method names of makePersistent 
 which will call the HibernateUtil.getSession().saveOrUpdate.
 
 But sometimes you only are interested in saving data.  If 
 the data already exists you need to throw an error.  
 Therefore you are obligated to call HibernateUtil.getSession().save
 
 Other times you only want to Update.  If the data doesn´t 
 exist you you need to throw an error. 
 So you need to call the HibernateUtil.getSession().Update
 
 Shouldn´t the folks at Hibernate in Action have offered us 
 
 makePersistentSaveOnly and a makePersistentUpdateOnly methods.
 
 Shouldn´t these be included in the GenericHibernateDAO in Hibernate 3? 
					
  
						
					 | 
				 
				 
			 |