Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Cascade error  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

Im having a strange issue, whatever map I try to use cascade=CascadeType.ALL and use ddl-generation gives me a Restrict type in the table

already happened to someone that?

im using netbeans, glassfish v2, mysql 5 and toplink.ddl-generation to do that map

thanks in advance
 
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the issue that this is causing? Are the cascades not working? Do you get an error when you try to add, update or delete? Is there an exception? Or are you just wondering why this type gets generated?

-Cameron McKenzie
 
alexandre nofre
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im wondering why I map with cascade.all and when I open the table in mysql administrator it show cascade type as restrict
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I also have the same issue here. Though when I'm creating the object relation mapping I use cascade=CascadeType.ALL,
somehow when auto-generating the new database schema cascade types (e.g. update,delete) are set to restrict, although
no errors are presented during the process of generating the schema and the foreign keys relations are created correctly.
Here is a small snippet of how my code looks like.

Entity A (AnotherEntity)


Entity B(EventType)


I'm wondering if anybody has any idea about the problem I'm facing. Btw I'm using JPA - hibernate ddl-generation on mysql 5 and
deploy on jboss 4.2

Thanks in advance for the help

--
y.p.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!