• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity bean Realations

 
bhargavi kakarala
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

can somone explain CMP,CMR .I didn't get proper idea of usings CMP's in DD and beanclass .Can we call abstract getter and setter methodsin businessmethods,that r exposed to client?
can someone suggest where I can find some detailed explanation on this topic.Iam not getting clear idea on this Entitybean Relationships.
 
cyril vidal
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi bhargavi,
As far as I understood, the only difference between a CMP field and a CMR field consists in the TYPE. For both you have to define a pair of abstract getters and setters, but while setting and returning a value that maps to a column in a table (CMP), you set and return a reference to another (local component interface) entity bean, or to a Collection of (local component interface) entity beans.
Using CMR in your code is made only by calling the abstract getters and setters that you have defined, but that the Container implements at deploy-time.
Hope this helps,
Cyril
[ January 15, 2004: Message edited by: cyril vidal ]
 
Mikalai Zaikin
Ranch Hand
Posts: 3381
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by bhargavi kakarala:
hi all,

can somone explain CMP,CMR .I didn't get proper idea of usings CMP's in DD and beanclass .Can we call abstract getter and setter methodsin businessmethods,that r exposed to client?
can someone suggest where I can find some detailed explanation on this topic.Iam not getting clear idea on this Entitybean Relationships.

Hi bhargavi !
Look at this :
Examples about the rules and semantics for relationship assignment and relationship updating in a CMP bean.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!