Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Business Key
Business Key [message #1816281] Fri, 25 October 2019 10:42 Go to next message
jo ber is currently offline jo berFriend
Messages: 94
Registered: August 2018
Member
Hi

In the context of UML2, what is the most appropriate way to set certain properties within a class (possibly in other related classes) as business keys for a class?

kind regards,
Re: Business Key [message #1816290 is a reply to message #1816281] Fri, 25 October 2019 12:57 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

It depends what you want to achieve.

If it's documentation use a Comment.

You need might fall within the capabilities of isId, else nested properties.

If you want sophisticated code generation you might want to use Stereotypes to identify your distinguished behaviours.

Regards

Ed Willink
Re: Business Key [message #1816301 is a reply to message #1816290] Fri, 25 October 2019 16:30 Go to previous messageGo to next message
jo ber is currently offline jo berFriend
Messages: 94
Registered: August 2018
Member
thank you.
Is it also an appropriate option to use constraint defined in ocl?
Re: Business Key [message #1816303 is a reply to message #1816301] Fri, 25 October 2019 20:46 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

You've given no clue as to what you mean by a business key, so all my replies are guesses.

OCL can be used for a variety of things, so you might use OCL to define your business logic, but I would have thought that using OCL to declare a business key would be a bit perverse.

Regards

Ed Willink
Previous Topic:Difference uml2 vs emf
Next Topic:Forum on Privacy and Data Protection Challenges in System Development
Goto Forum:
  


Current Time: Fri Apr 19 06:35:58 GMT 2024

Powered by FUDForum. Page generated in 0.01772 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top