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: 33
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: 6934
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: 33
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: 6934
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:Exception raised when applying stereotype
Goto Forum:
  


Current Time: Sun Nov 29 00:07:04 GMT 2020

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

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

Back to the top