Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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
-Roshan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!