1. hibernate: cascade="none" Not working for update operation forum.hibernate.orgHi All, Help required about one-to-many operation. I have set cascade="none" explicitly on the relation. Even then an update operation on parent object triggers an update on child operation. Please help me in identifying the possible issue & also the cause. Thanks Anand Vardhan Below is my relation: |
2. cascade="none" forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.05 Code between sessionFactory.openSession() and session.close(): SchedaUtenza suHib = null; if(checkConcurrency) { String codTecnicoScheda = su.getCodTecnicoSchedaUtenza(); suHib = (SchedaUtenza) getHibernateTemplate().get(SchedaUtenza.class, codTecnicoScheda); if( (suHib.getDataModificaRecord() == null) || (suHib.getDataModificaRecord().equals(su.getDataModificaRecord())) ) update = true; else { String msg = "Aggiornamento non eseguito. Il dato e' gia' stato modificato da un altro utente."; ... |
3. how to prove cascade="none" is working for many-to forum.hibernate.orgHi I have a mapping that says the cascade="none" for parentCategory property but when I test it, I can't seem to prove cascade="none", it always gets persisted into DB as below E.g. Mapping Code: |