• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CMR fields

 
Jayashree Mohan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Primary key fields cannot be exposed to client view , is this valid for CMR fields also?
 
Greg Charles
Sheriff
Posts: 3002
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, and it's not in general true for CMP fields. Only the CMP fields that are part of the primary key can't be exposed, and even then only the setters. A CMR field could never be part of the primary key.
 
Jayashree Mohan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, its true that the CMR field can never be a part of the primary key. But what I meant to ask was - Can CMR fields be exposed to the client view? Can getters and setter methods be declared in the component interface?
 
Greg Charles
Sheriff
Posts: 3002
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry if I wasn't clear. Yes, CMR getters and setters can be exposed to the client view. CMP getters and setters can be exposed to the client view if they are not part of the primary key, and getters for the CMP fields that are part of the primary can be exposed in the client view.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic