1. Insert and Update collection on cascade. forum.hibernate.orgHi, i am trying to insert/update a collection in cascade. i already saw the samples provided in the documentation. Quote: Parent p = .....; Child c = new Child(); p.getChildren().add(c); session.save(c); session.flush(); In this case the child is added to the collection of the parent an then the child is saved. What I am trying to do is to set the ... |
2. Cascade update executes an insert forum.hibernate.orgI am using Hibernate 3.2. I have a two tables Test, Query and QueryPart with a one-to-one mapping between Test and Query as below and one-to-many mapping between Query and QueryPart as below. However, when I try to do an update on Test, there is a new entry inserted into the Query and QueryParts table, instead of doing an update. Why ... |
3. Does Hibernate DDL support Oracle ON DELETE CASCADE ENABLE forum.hibernate.org |
4. Cascade insert problem forum.hibernate.orgLogin Register FAQ Search View unanswered posts | View active topics Board index Hibernate & Java Persistence Hibernate Users All times are UTC - 5 hours [ DST ] Cascade insert problem Page 1 of 1 [ 1 post ] Previous topic | Next topic ... |
5. cascaded insert failed ! forum.hibernate.orgHello, Today is my first day on Hibernate. I try to build a prototype application with some advanced features of Hibernate. One of them is the cascading insert: My main object EMPLOYE owns a SET of SALAIRE (Salaries, in english). When I create a new employee with new salaries, Hibernate does the following: - insert the new Employee : RIGHT ! ... |
6. Insert problem with cascade forum.hibernate.orgI have a (so far) simple application with subscribers and attributes associated to subscribers. My mapping is as follows: Code: |
7. Cascade insert fails in one-to-many... forum.hibernate.orgHi, I have a problem with cascaded insert in the following example. //------------------ Mapping - parent --------------------------- |
8. cascade all-delete-orphan on an insert forum.hibernate.orgRegular Joined: Tue Sep 02, 2003 5:09 pm Posts: 81 Location: Whitefish Montana A developer here is working on a program that has an entity containing a List of children. He defined the relationship with this mapping: |
9. cascade insert? forum.hibernate.orgi`m trying to map a collection. Code: /** * @hibernate.class */ public class BClass { private long id; private List test; /** * @hibernate.id generator-class="native" */ public long getId() { ... |
10. Cascade insert pb : forum.hibernate.orgTransaction tx= session.beginTransaction(); Parent parent = new Parent(); parent.setName("parent1"); parent.setChild(new TreeSet()); ... |
11. cascade insert fail forum.hibernate.orgHi, I am trying to use cascade insert but even I checked the FAQ site and followed the alternatives but out of luck The problem that I have is the foreign key is altered after the row is created. So I was wondering if you could look the following and point out what I miss. Thanks in advance, Hibernate version:2.1.8 (package ... |
12. Extra insert with unidirectional many-to-many & cascade forum.hibernate.orgAuthor Message cbredesen Post subject: Extra insert with unidirectional many-to-many & cascade Posted: Thu May 12, 2005 5:13 pm Red Hat Associate Joined: Mon Aug 16, 2004 11:14 am Posts: 253 Location: Raleigh, NC I have a unidirectional many-to-many with cascade="save-update". When I create a new transient parent, and attach a transient item to the Set (many-to-many) and call ... |
13. hibernate updating, not inserting on cascade of parent forum.hibernate.orgHi, This should be a simple problem, but it's driving me crazy. I have a parent class with a one-to-one unidirectional association to another class. Primary keys are the same, but are assigned, so I need to set them manually in each class. mapping in the parent class is: |
14. Hibernate does additional updates when inserting on cascade. forum.hibernate.orgHibernate version: 2.1 Name and version of the database you are using:8.1-407 JDBC 3 I'm having a problem when I try to insert a entity (Loan) in my database using hibernate. This entity has a set (one-to-many) relationship with another entity (LoanParcel). The entity (LoanParcel), in turn, has a set (one-to-many) relationship with the entity (LoanParcelPayment). Below it's a part of ... |
15. cascading insertion forum.hibernate.org |
16. Slow inserts with cascade enabled forum.hibernate.orgHibernate version: 3.2.2 Name and version of the database you are using: JavaDB Hi, I have a problem with slow performance when inserting a large number of objects through cascade. I have an application that generates up to 1000 objects A that should be written to DB. Each object A has a set of 1000 objects B which also should be ... |
17. (Solved) @OnyToMany entry inserted twice on Cascade.ALL forum.hibernate.org |
18. Cascading Key Insert forum.hibernate.orgI've searched high and low for a solution to this. From what I understand it should be a pretty simple matter for hibernate to see the key (user_id) on the parent and populate the key on any child objects when doing an insert. Am I missing something in my mapping to tell hibernate to do this or am I asking too ... |
19. one to may cascade(for delete and insert not for update) forum.hibernate.orgHi i am using cascade="all" for now, but i ran into a peculiar situation when i want to update the child tables are getting updated, in case if i add more records than the current one in the child tables, the child tables are not getting updated so i took a stupid approach like, i do a findBy then delte and ... |