Book a Demo

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 - pstein

Pages: [1] 2 3
1
General Board / Re: Is 1...n the simplified notation of0..1
« on: September 09, 2012, 04:11:16 pm »
Quote
The only "optional" thing is the "0.." in [0..*]
So
Code: [Select]
[*] == [0..*]For the rest, is it as expressed.
So
Code: [Select]
[1] == [1..1] != [0..1]Geert

Ok, thank you.
But is this somehow officially defined?

Not that I doubt on your statement, but I need a proof for other colleagues:
Where can I read/verify this?

Is there an (semi-)official,central UML 2.0 syntax reference web page?

Thank you
Peter

2
General Board / Is 1...n the simplified notation of0..1 <--> 0..n
« on: May 30, 2012, 10:55:02 pm »
When creating a class diagram then sometimes the designer and authors talk about 1-n relationsships.

On other places the multiplicity is more detailed e.g.

0..1 <---->0..n

Is it the same?

Or does the "1" in an 1-n relation ALWAYS mean ONLY 1..1 and "n" always ONLY an 1...n relation? Mind the exclusion here of the "0"!

Peter



3
General Board / Abstract classes only for Java or for SQL generat?
« on: May 30, 2012, 10:58:26 pm »
If I define in an UML class model an abstract class.

Does this only matter if I plan to generate (later) Java skeleton classes from this diagram? Or is this useful for generating SQL DDL statements as well?

I cannot imagine how abstract UML classes should be mapped to corresponding DDL statements.

Peter

4
General Board / How to avoid the "Select Edition" startup prompt ?
« on: March 28, 2012, 07:06:11 am »
When I start v9 of Sparx Enterprise then at first (after startup)  a dialog appears prompting me for the intended version/Edition:

- Desktop
- Professional
- Corporate
- ....

How can I avoid this prompt?

Is there an option to set one of these entries as default and supress the dialog permanently?

Peter

5
General Board / How to import models as a copy and not as a refere
« on: February 03, 2011, 11:10:22 pm »
How to import models as a copy and not as a reference into *.eap container?

A while ago I setup an *.eap container and imported some external models (= *.xml files).
After the import the size of the *.eap file is still very small (approx 2 kb).
So I guess I imported only references to the external *.xml files rather than the model themselves.

Assume such an external referenced *.xml is changed/replaced by a newer version
(e.g. by copying in WinExplorer). Are then automatically the visible diagrams inside the *.eap container
(after a restart) automatically updated? Or do I have to perform an explicit "refresh"?

How exactly can I tell EAP (during import procedure ?) to import a FULL COPY of the external *.xml
files instead only of a reference?

Can I tell EAP AFTER an IMPORT-REFERENCE-ONLY operation to import/copy the full *.xml files anyway?

Or is the relationsship *.eap container vs. model fixed for the lifetime?

Peter

6
General Board / Can I pass diagram to open on cmdline when startin
« on: December 07, 2010, 09:17:55 pm »
I would like to start EAP sometimes with a non default diagram.

E.g. I want to open sample123.eap and automatically go/show diagram
mymodel456/package777/package888

in Project Browser and diagram pane.

How can I achieve this/pass this start location on cmdline?

is there something like
ea.exe myproj.eap -show=mymodel456/package777/package888

Again: Thie default view defined with menu

Diagram->Make Model Default

should NOT be used!

Peter

7
General Board / Re: Preventing new primary key when generating DDL
« on: December 03, 2010, 08:23:52 pm »
Hello Phil,

thank you, but some questions:

ad 2.) Do I really have to rename the primary key attribute to "classID" or did you mean to enable somewhere (where exactly ?) a checkbox with the property "classID" for the primary key attribute "myprimkey"?

ad1.) How do I modify the (default) DDL generation script? Where can I find it at all?

Peter

Quote
There are two possible ways:

1) Modify the DDL generation scripts, the way I did it was to assign a tagged value with the name PK (value Yes) and attach this to the attribute to the primary key (or keys)

2) Name the primary key attribute ClassID, then this attribute will be the primary key

Cheers
Phil

8
General Board / Preventing new primary key when generating DDL dia
« on: December 02, 2010, 06:47:13 pm »
Assume I have a UML class diagram.
One of the attributes of classs "aaa" is "myid" which should be the primary key in a corresponding DDL diagram.

However when I transform the current UML class diagram into a DDL diagram then always automatically a new attribute (=column) is invented/created: PK_myclass(INTEGER) instead of using the intended myid as primary key.

How can I prevent the auto-generation of a new field/column and tell EA to use "myid" as primary key in the target DDL diagram?

Peter

9
General Board / How to generate DDL from data class diagram?
« on: December 01, 2010, 03:02:59 am »
I have setup a data class diagram with a couple of data classes and theier attributes.

When I mark and right click now the package in project browser and select context menu:
Code engineering->Generate DDL

then the dialog window pops up.

Unfortunately NO objects appear in the lower part of this dialog window. So I cannot generate the SQL DDL statements for this diagram.

Whats wrong?

Peter

10
General Board / How to jump back to the last ("parent") diagram?
« on: October 12, 2010, 11:36:13 pm »
Assume I am viewing currently a certain Activity (or other diagram) "aaa"
in tab number 5

Then I double click on an activity inside which let me jump to a "child" activity "sub-aaa" diagram in another tab number 28.

Then after having done something I decide to go back to the "parent" diagram.

How can I achieve this without having to search through all open tabs?
I need a function key or menu or toolbar icon which let me go just one tab backwards in the call hierarchy (=Not an undo !).

Is there something like that in EA?

Peter

11
General Board / Problems with java code generation
« on: November 03, 2010, 11:50:36 pm »
When I want to generate java code from data class diagram then some but not all the variable have a prefix "m_"

How can I tell EA to omit the generation of these "m_" s?

Yes, in tools->options->source code enegineering I listed already in the appropriate entry field "Remove prefixes....":

....;m_;

but it didn't help.

How can I achieve it otherwise.

Furthermore I wonder how to generate also getXXX() and setXXX() for all variables. In  tools->options->source code enegineering->Java

there are already get and set prefixes defined.
Why does that not work? Do I have to check "Disable Language" additionally?

Peter

12
General Board / Prevent generation of "finalize()" methods?
« on: November 03, 2010, 06:51:33 pm »
Assume I have a data class diagram and generate appropriate Java Classes from it.

Unfortunately all java classes contain "finalize()" methods.

How can I tell EA to NOT generate those methods?

Peter

13
General Board / Define composition vs. aggregation? Target role?
« on: October 30, 2010, 12:26:07 am »
How can I distinguish between an aggregation and a composition when designing a class model?

Can one say when its an aggreation then on the tab "Target role" the Aggregation drop-down must be set on "shared" whereas for a composition the drop down must show "composite"?

If not: What else is the difference between Aggregation=shared vs. composite?

What does "none" mean ? Just an Association?

Peter

14
General Board / How to print a diagram with "Shrink to fit" page?
« on: October 29, 2010, 12:47:25 am »
Assume I want to print the current diagram.
Currently the diagram is filled on 4 physical pages (even if I use landscape mode).

I found no "Shrink to fit" option which let the diagram shrink just as much so that it fits one ONE paper page.

How can I achieve this?

Peter

15
General Board / Can I export to *.XMI and import in Eclipse UML?
« on: October 26, 2010, 08:23:05 pm »
Can I export a (=one) logical Class diagram to an *.XMI file and import it in Eclipse UML?

Are they compatible resp. can they be converted?

Is the other way round possible as well?

Peter

Pages: [1] 2 3