1. check if foreign key is used in other tables before delete data row hibernate stackoverflow.comI have the following table structure: table A --------- id | name table B -------------- id | x | y | z table B (id) : references table A (id)I can modify name of ... |
2. How to check if object is referenced before deleting stackoverflow.comI have java application with web interface (Spring MVC) using Hibernate. I have quite simple DB scheme here with a Group entity which you can add/delete on one webpage. Then there ... |
3. hibernate, check dependancy before delete. coderanch.comJust a question on hibernate. Right now I have, of course, classes that contain other classes. There are cases that I want to delete a class, but I want to make sure nothing is 'pointing' to it first. example (not a real one) lets say I have Several different Objects: Car, Motorcycle, Truck with no relation. They each contain an engine ... |
4. Why does hibernate delete this entity during dirty checking? forum.hibernate.orgIn pseudo I have a foo method that does as follows: Code: foo() { Domain object = retrievalMethod(); } Domain retrievalMethod() { //begin transaction here Domain object = session.get(Domain.class, 1); //commit transaction here } My domain object contains some collections of other domain objects for which relationships ... |
5. Checking an object exists before delete or update forum.hibernate.orgHi there, not being able to find anything on this by searching, I wonder if anyone here could help me please. I am using Hibernate to persist basic domain objects currently and have a couple of questions. Firstly, is there any way to obtain how many results a session.update(Object) or a session.delete(Object) has affected. If I try and run these on ... |
6. Why check if object is updated before deleting it? forum.hibernate.orgHi, Can someone tell me why DefaultFlushEntityEventListener checks to see if an object is updated before it deletes it? The comment of "ignoring collections unless versioned" seeeeems to indicate that hibernate might be checking to see if someone else has updated the object in the meantime (in which was we'd want the delete to fail). The code Im looking at is: ... |
7. Hibernate nullability check on delete? forum.hibernate.orgHibernate version: 3.0.5 I am having a problem with Hibernate caring about nullability for objects it is about to delete. I am having the following problem. 1) Calling SaveOrUpdate on an Object X. 2) Hibernate traverses my Object X graph 3) Hibernate find Object A (which was deleted) and proceeds to delete the object and set the reference to NULL 4) ... |