Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ronnie Mccoy   on Mar 22 In Java Category.

  
Question Answered By: Shannon Hughes   on Mar 22

one comment here:

CMT demarcation must be used by Entity EJB components

cascade is used for deleting complex relationships not for setting them

because you have a 1-> * relationship you need to consider to use a Composite Entity and define your Business Objects as POJOs, it's very difficult and error prone to have all Business Objects as Entity Beans and also it's not a good practice to do so

I'd say

1. Review how you have defined/designed your complex Entity relationship
2. Review the specification relative to your EJB version for transaction demarcation

but still have in mind

CMT demarcation must be used by Entity EJB components

Share: