At first,i think Hibernate Criteria is the Object-oriented of sql norms,but later discovered that Hibernate only implement the retrieve function but not to the delete and update.
Although Hibernate itself have one object delete and update method, but sometimes also need batch operation, of course, we can used HQL, when conditions are diversified, using the criteria in this way(criteria way) would be better.
So why not hibernate have delete/update criteria.
Any suggestion or solution?
Last edited by sdhjc on Wed May 31, 2006 10:26 am, edited 1 time in total.
|