1. Hibernate 3 On delete cascade stackoverflow.comI have a many-to-one mapping on bookings. A booking must belong to a room. And a room can have several bookings. If a room is deleted, I would like all the bookings on ... |
2. delete-orphan with hibernate annotation coderanch.comHello, I am using hibernate annotation (hibernate 3.2.5). I am not able to delete orphan objects using @Cascade( { CascadeType.DELETE_ORPHAN }). When I googled for this, I found that delete-orphan not supported for the version I am using. Even I tried with version 3.5.0. Any idea how to delete orphans ? Thanks, |
3. delete-all-orphan with annotations forum.hibernate.orgIsnt it a common pattern? I just used it in my very, very small private project where I tried something with hibernate - and for sure, I can live without it. So if you would get rid of this functionality I wont add it to JIRA as I have no real need for it. |
4. annotations : delete is not working? forum.hibernate.orgThis does not seem to work for me. Can someone help please! Code: try { DatabaseManager.registerClassToThePool(Node1.class); DatabaseManager.getSession(); DatabaseManager.beginTransaction(); Node1 AFFS_NodeEnvObj1 = new Node1(); AFFS_NodeEnvObj1.ID = "1"; AFFS_NodeEnvObj1.description = "1"; DatabaseManager.getSession().saveOrUpdate(AFFS_NodeEnvObj1); Node1 AFFS_NodeEnvObj2 = new Node1(); ... |
5. "all-delete-orphan" with annotations forum.hibernate.orgHi, This question has been posted in the forum before and there seem to be no replies for it. CascadeStrategy with "all-delete-orphan" with annotations does not seem to be implemented with Annotations, possibly because of the limitations of the current EJB 3.0 Spec. But then, there needs to be some solution for itl!! Someone kindly comment or advice and alternative! Here ... |
6. Hibernate Annotations to Forbid delete entity forum.hibernate.orghello everyone, I am learning hibernate annotations and I am stuck up with very first thing: how to forbid to remove object which was mapped using @OneToMany annotation, if it has related entities Code: [b]Somewhere:[/b] ..... @OneToMany(fetch=FetchType.LAZY,cascade = { CascadeType.PERSIST },mappedBy="city") @Fetch(FetchMode.SELECT) public List |