• Post Reply Bookmark Topic Watch Topic
  • New Topic

declare relationships in cmp mapping xml will cause what happen?  RSS feed

 
pamela lee
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
declare relationships in cmp mapping xml will cause what happen?
eg:
student & class are 2 tables,mapping into 2 cmps,
in student cmp,declare a 1-1 relationship with class
when insert a record into the student table,what the relationship will done?
what about update,delete?
:roll:
 
Karl Laird
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Relationship mapping and behaviour is expained very well in the EJB specification. For the best way to understand all the permutations of this (for 1-1, 1-m, m-m) and the different options that can be used I would recommend grabbing the EJB 2 spec and looking up the relationships section under CMP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!