• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

@Annotations in class diagram

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I'm working on Part 2 and I have a question

On Cade's class diagram, the author uses annotation to describe Session beans, entities, and so on. This use is not UML compliat but if sun loves it....

the question is.... if I want to show declarative security on my solution, is the correct way? am I making it all up?

Any feedback is greatly appreciated

regards
Alessandro
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Usage of Stereotypes on a class is UML compliant. You can define your own stereotypes or use the ones available by your modeling tool.

So, if you say...<<stateless>> on your class diagram..you would be fine..
If you say... <<@stateless>> there are no issues..because either one is a stereotype..

However if you use something like @Stateless, I think its invalid UML..i have never bothered to check the UML standard..so i cant be sure..

 
Alessandro Aloisi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you are right but I have read many post of people who used this annotation style and passed

Ok, I decided I'll use standard notation

But, what about declarative roles? Where and how do I have to write them? I'm thinking that a note is sufficient ...
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think a note is fine. And I used annotations where there were standard Java ones. I think either way is fine on that front.
 
Alessandro Aloisi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I finally decided to use a constraint in my class diagram to declare pragmatically security

Thanks to all!
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic