cascade
Hibernate. 2 functions : simpleSave() , saveWithCascade() . can it be done ? and how?
I have a scenario in which i have: A parent class Parent which has some simple properties (int, String, etc) and 2 set of children.[详细]
2022-12-31 17:23 分类:问答CascadeType problem in One to Many Relation
I have two classes which have a Unidirectional One to Many relation with each other. public cla开发者_StackOverflowss Offer{[详细]
2022-12-31 05:56 分类:问答What is best practice about having one-many hibernate
I believe this is a common scenario. Say I have a one-many mapping in hibernate: Category has many Items[详细]
2022-12-30 18:44 分类:问答Hibernate doesn't generate cascade
I have a set hibernate.hbm2ddl.auto to create so that Hibernate creates the tables in mysql for me. However, it doesn\'t seem that hibernate correctly adds Cascade on the references in the table. It[详细]
2022-12-30 11:47 分类:问答How do I change a child's parent in NHibernate when cascade is delete-all-orphan?
I have two entities in a bi-directional one-to-many relationship: public class Storage { public IList<Box> Boxes { get; set; }[详细]
2022-12-28 21:07 分类:问答Hibernate - how to set null value so that cascading worked [interesting!]?
I\'m talking about a detached object, that later I want to update with saveOrUpdate(). How can we at the same time set null and clear() a referenced collection?[详细]
2022-12-26 21:28 分类:问答Hibernate cascading
All what Hibernate reverse engineering generates is something like this @ManyToOne(fetch = FetchType.LAZY)[详细]
2022-12-25 18:10 分类:问答Will MySQL InnoDB ON UPDATE CASCADE constraints update properly during a MySQL REPLACE command?
If I have table B with foreign key references to table A (set to ON UPDATE CASCADE) and I run a LOAD DATA INFILE file.txt REPLACE INTO TABLE A;[详细]
2022-12-24 13:01 分类:问答Hibernate annotations cascading doesn't work
I\'ve decided to change hbm.xml style to annotations using hibernate. I had in my hbm.xml: <hibernate-mapping package=\"by.sokol.jpr.data\">[详细]
2022-12-24 07:01 分类:问答nhibernate does not cascade delete children
The scenario is as follows, I have 3 objects (i simplified the names) named Parent, parent\'s child & child\'s child[详细]
2022-12-21 21:24 分类:问答
加载中,请稍侯......