1. persisting of multiple dependant objects using hibernate stackoverflow.comI am using multiple tables A and B. I need to persist dependant objects A as well as Object B at a time on giving saveOrUpdate. Is there anything like I ... |
2. Multiple updates forum.hibernate.org |
3. Saving one XML documento into multiple tables forum.hibernate.orgHello. I have an XML I need to persist. The root element has several attributes (master values) and several children (detail rows), but those are in an encapsulating tag. So, I need to save that into master-detail tables. e.g. Code: |
4. Multiple updates forum.hibernate.orgHello, I need to update to B a property of all of the objects of certain class which have this property set to A. I could have a great collection of those objects. In SQL I can execute this statement: UPDATE the_table SET the_field = B WHERE the_field = A; The only way that I could think to do it in ... |
5. Simple update results in multiple SQL calls forum.hibernate.orgHi all I have a one-to-many relationship between zone and asset (a zone has many assets). It's mapped both ways - on zone side it's |
6. Update multiple dbs under one tx forum.hibernate.org |
7. How to save an object to multiple tables? forum.hibernate.orgHi, I have a complex object, which has no equival table in my database schema. This object is composed of another objects, which do have tables in dbs. The question is, how to write an .xml mapping file, so that I will call: myComplexObject.save() and it will take all the subobject, and save them to the corresponding tables. (I stucked up ... |
8. multiple updates forum.hibernate.org |
9. Table update returns multiple results due to update trigger forum.hibernate.orgHere is an interesting one we ran across today. We have a single table called "Contact" and a "Contact" object to represent it. When updating rows in this table we get the error : org.hibernate.HibernateException: Unexpected row count: 0 expected: 1 The cause of the error is becuase we have a trigger on the contact table that writes rows to an ... |
10. Is it possible to persist object data to multiple tables forum.hibernate.org |
11. How to update data in multiple tables forum.hibernate.orgI am not sure I understand what your problem is. But remember that each POJO (your objects) should refer to each table. So if you want to insert into multiple tables, you will need to create the objects, put the values in its set methods, and then save it. For instance. Man man = new Man(); man.setHeight("180"); man.setWeight("88"); "session stuff" session.save(man); ... |
12. Multiple updates triggered from single object change forum.hibernate.orgHi all, I have a graph of objects, one of which I update. When I call session.saveOrUpdate() on the top-level object, all of the objects in the graph are updated rather than just the one that I've updated. Why is this? I thought Hibernate would only update the ammended one. Sorry if this is a stupid question but I'm quite new ... |
13. Handling updates to DB with multiple applications forum.hibernate.org |
14. How to post multiple saveorupdate from a single form? forum.hibernate.orgHi I am a newbie.. I have a form with multiple names and few other columns like address and phone number, in a form. For everyname in that list, the rest of the columns in that form are same. That means the address, telephone etcc are same for all the users. When I am trying to put the saveorUpdate method (for ... |
15. saving same object multiple times forum.hibernate.orgthis is probably a stupid question.. but is there any way to force hibernate to do an insert instead of an update when doing multiples saves of 1 object? for example.. i instantiate my object and save it. now depending on some other factors i might change 1 field in this object and save it again (and rinse/repeat many times). when ... |
16. updating multiple tables forum.hibernate.orgHello Friends, I am using Hibernate 3 with Spring 2 and I am a newbie. I have 2 tables persons and activities, It is a one-to-many relationship, one person can have many activities. What I need is, whenever an activity is added for a person I need to update the activity_status column of that particular person in the person table. How ... |
17. Unable to persist to multiple tables. forum.hibernate.orgI have an object called "User", which has two other objects "UserAddress" and "UserContInfo" objects. And i have 3 tables corresponding to each class. When i try to save the "User" object, i can see only entry into "User" table and i don't see any entries in other two tables. Do i need to call save on each object? Here is ... |
18. one merge cause multiple updates forum.hibernate.orgHello Sometimes Hibernate (despite not launching "merge") update entity. In application there is a few methods which changes record, and at the end of transaction (JBoss manages transaction) there is EJB component which calls em.merge. But Hibernate sometimes save changes earlier. What is worse, some of this updates do nothing (sets previously setted value) I know, thet Hibernate can do update ... |
19. Problem saving the same (in Java) object multiple times forum.hibernate.orgI tried to search for an answer to this problem to no avail, so I will post my problem. Domain object: Person, Education and School; each maps to a table in the DB. An education is defined as an object containing a school, a start date and an end date. A person can have multiple educations (i.e. have gone to the ... |