Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Guido Spadotto

Pages: [1]
1
You can find some basic installation instructions here:
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/setup.html

I've not been able to find "real" Java examples, but if you look at
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/codeexamples.html and keep in mind that for any Object.attribute in VB there should be the corresponding getters and setters in Java, you should be able to start.

2
I know it doesn't make much sense, but that's the only way I've found to get what I wanted. The generated DDLs are perfect now.

I had to reverse engineer and compare the exported XMI files to figure this out.

On a compound primary key, each attribute that composes it is not required to be unique. It's the composition of them all that has to. This, however, would not apply to primary keys that are not "compound".

I'd like someone from Sparx to comment on this.

BTW, another example of "stretched semantic", from the help page for the "Attribute" class:
IsStatic Indicates if the current attribute is a static feature or not. If the attribute represents a database column, this when set represents the Unique option.

3
For future reference, these statements seem to do what I wanted:

targetAttribute.SetAllowDuplicates(true);
targetAttribute.SetIsOrdered(true);
targetAttribute.Update();



4
Hi all,
 is it possible, using just the automation interface, to set a «column» attribute of a «table» element to be a primary key (that is: the programmatic equivalent of manually ticking the "Primary Key" checkbox in the Attributes dialog for a «table» class)?

I doubt it, given that an attribute does not always represent a column within a table, but I might miss something.

I'm already creating the PK_${TABLE_NAME} method, but I miss the primary key definitions when I export the containing package to DDL.

I'm using EA Corporate V7.5.844 and its associated Automation Interface jar file.

Thanks.

Pages: [1]