« University of Duisburg-Essen に戻る

Attribute "Class Cardinalities" in metamodel too short (STRING)

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Attribute "Class Cardinalities" in metamodel too short (STRING)
community class cardinality documentation
答え
14/03/27 11:45
The class attribute "Class Cardinalities" is limited due to the data type "STRING" to 3699 characters. A change to LONGSTRING is not possible since the attribute is derived from the ADOxx metamodel. The attached screenshot shows the error message in case the definition is longer than the number of characters.
画像の固定

添付ファイル: 20130612 Cardinalities Feld STRING zu kurz.png (47.2k)

RE: Field "Class Cardinalities" in Metamodel too short (STRING)
答え
13/06/13 7:54 匿名へのコメント
As a solution to the issue above, it is recommended to store the definition of the cardinalities and (potentially any other class attribute) in a file and include it in the library by using the IMPORT statement. Please find below the recommended steps to perform this change:

1. Save the content of the respective field in a text file using your preferred text editor and naming convention (e.g. "cardinality_d_<Klassenname>.leo")

2. Import the file(s) into the library
a. Open the ADOxx Development Toolkit
b. Navigate in the menu to "Extras" -> "File Management..." (see attachment File_Management_1.PNG)
c. Select application library (see attachment File_Management_2.PNG)
d. Click on "Import"
e. Select file(s) and click on "Open" to import(see attachments Open_Files.bmp, Success_Message.PNG)

3. Instead of writing the code in the attribute, include the respective file from the library:

@INCLUDE "db:\\<Dateiname>.leo"
画像の固定

画像の固定

画像の固定

画像の固定

添付ファイル: File_Management_1.PNG (16.6k), File_Management_2.PNG (11.4k), Open_Files.PNG (25.7k), Success_Message.PNG (16.6k)