• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entity Beans in Component Diagram

 
Tanveer Ahmad
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Dont know if I am re-asking the same question. But Is it a wise idea to show Entity bean or the Business Object (J2EE D.P.) in the component diagram?

Cade does not show any of those, instead shows DAO. What If I want to use CMP-CMR (without DAO)?

Thanks
Tanveer
[ March 05, 2008: Message edited by: Tanveer Ahmad ]
 
Kai-Uwe Herrmann
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What If I want to use CMP-CMR (without DAO)?


Then actually you do not have a special component, have you? Rather, you are handling the entities within your business logic, right?

To me it does not make sense to show entities in a component diagram.

Cheers
[ March 06, 2008: Message edited by: Kai-Uwe Herrmann ]
 
Juan Pablo Crossley
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the components are not classes, so its ok if you put something like "Business Entities" in your diagram, I think its good to put it, but not as grained entities.

If you want to show the Session Facade pattern I think you should include the Entity component (not the entity classes).
 
Anindo Ghosh
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

To me it does not make sense to show entities in a component diagram.



For eg. lets say I have a 'Beer Rating Component' in my application.
The Beer Rating component gets us the rating for a particular beer brand by querying an external service.
In my application I have a SLSB which actually queries the external service to get the fetch the rating.
Is it a good idea to show the SLSB inside my 'Beer Rating Component' ?
OR Should I just have a component with a comment that it uses a SLSB etc ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic