It is state of the art to provide UML modeling by means of class diagrams and code generation from there. But whereas drawing diagrams is most often well supported, code generation is limited in scope. Association classes, multiplicities, aggregation and composition are not correctly or not at all processed by most code generators. One reason may be that the UML semantics is not formally defined in the UML specification. As a result of that, associations are usually transformed into code by using properties of the same type as the associated classes or corresponding typed sets. This approach must fail although the UML2 Superstructure Specification considers association ends owned by a class to be equal to a property of the owning class. In this paper, we describe why associations should be implemented as classes when generating code from class diagrams. © 2008 Springer-Verlag Berlin Heidelberg.
CITATION STYLE
Gessenharter, D. (2008). Mapping the UML2 semantics of associations to a Java code generation model. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 5301 LNCS, pp. 813–827). https://doi.org/10.1007/978-3-540-87875-9_56
Mendeley helps you to discover research relevant for your work.