Improving Code Generation for Associations: Enforcing Multiplicity Constraints and Ensuring Referential Integrity

  • Omar Badreddin
  • Andrew Forward
  • Timothy C. Lethbridge
Conference paper

DOI: 10.1007/978-3-319-00948-3_9

Volume 496 of the book series Studies in Computational Intelligence (SCI)
Cite this paper as:
Badreddin O., Forward A., Lethbridge T.C. (2014) Improving Code Generation for Associations: Enforcing Multiplicity Constraints and Ensuring Referential Integrity. In: Lee R. (eds) Software Engineering Research, Management and Applications. Studies in Computational Intelligence, vol 496. Springer, Heidelberg

Abstract

UML classes involve three key elements: attributes, associations, and methods. Current object-oriented languages, like Java, do not provide a distinction between attributes and associations. Tools that generate code from associations currently provide little support for the rich semantics available to modellers such as enforcing multiplicity constraints or maintaining referential integrity. In this paper, we introduce a syntax for describing associations using a model-oriented language called Umple. We show source code from existing code-generation tools and highlight how the issues above are not adequately addressed. We outline code generation patterns currently available in Umple that resolve these difficulties and address the issues of multiplicity constraints and referential integrity.

Keywords

Associations Model Driven Development UML Code Generation Umple Reverse Engineering 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer International Publishing Switzerland 2014

Authors and Affiliations

  • Omar Badreddin
    • 1
  • Andrew Forward
    • 1
  • Timothy C. Lethbridge
    • 1
  1. 1.School of Electrical Engineering and Computer ScienceUniversity of OttawaOttawaCanada