• Post Reply Bookmark Topic Watch Topic
  • New Topic

enitybean and java class relationship

 
rethna pillai
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case I want to show the relation ship between the entity and entity bean that persists that entity,How can we handle this.
For example I have java class called Studen and a EJB called studentEJB,How can we represent that in class diagarm
Thanks,
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can either show explicit containment using attributes - in the StudentEJB, simply include declare attribute Student aStudent. Alternatively you can show a dependency between the StudentEJB and Student class using UML dependency ( dotted line with an arrow ) notation.
 
rethna pillai
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ajith,
Can we use streotype called "delegates" when we are showing a dependence(dotted arrow) with another class.Is that UML compliant..?
Thanks,
Rethna
 
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!