• 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 ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

CMP Inheritance problem in WAS 5.1  RSS feed

Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody,
I am using inheritance in my CMP ejbs and using root-leaf inheritance, not single-table inheritance. I have a simple case, where I want to delete a
leaf entity of inheritance hierarchy. WAS does not let me delete the entity
giving an integrity violation error, saying child exists. The database constraint the error gives, is between the leaf entity and root. Now if I was deleting the root while leaf exits, I would understand the the error but I am deleting the leaf for which no child exists. Going thru debug I guess WAS is trying to delete the root entity even when I am deleting the leaf entity.
Has anybody else faced this problem or has some suggestions?
I am using WAS5.1/WSAD 5.1.1/Oracle9i/Windows XP/Top down mapping.

Thanks in advance
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!