mysql « Cascade « JPA Q&A





1. Hibernate doesn't generate cascade    stackoverflow.com

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. ...

2. MySQL Server 5.1 - no cascading actions at all    forum.hibernate.org

Hi folks, I'm using Hibernate together with MySQL Community Server 5.1. I have a couple of entities with relations between them, some ManyToMany, some ManyToOne and OneToMany relations. For all of them cascading actions are set, but when I look at the foreign key relations in the database, there are no actions set for Delete or Update event of related objects, ...

3. Cascades with MySql    forum.hibernate.org

Hibernate version: 3.1.3 Name and version of the database you are using: MySql 5.0 Hello, I'm new to hibernate, so far everything works fine - except for one detail: i can't get on delete cascade to work. i'm using hibernate annotations. my entities look like this: Code: @Entity @Name("address") public class Address implements Serializable { @Id @GeneratedValue ...

4. ConstraintViolationException on cascade save in MySQL/InnoDB    forum.hibernate.org

Beginner Joined: Wed Apr 20, 2005 9:30 am Posts: 39 I have an association between two tables, with a 1->M relationship from one to the other. I use the mapping file to create a map of this relationship with cascade set to "all-delete-orphan". When I use InnoDB tables, I cannot save an new object, filled with the map, and then saving ...