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

Pages: 1 ... 24 25 [26] 27 28 ... 34
376
General Board / Re: Where are the DDL Generation Templates?
« on: March 28, 2010, 10:25:08 am »
Presumably you are referring to the DDL Model to DDL script generation and not PIM->DLL model. If its the former then presently there is no way to modifying the generation of DDL script. The only modifications you can make are via a dialog that pops up when you go though the code generation option. i.e tick boxes with things like "create primary/foreign key constraints" etc.

Not sure why you want to modify that script as it seems to work okay.

If this is related to your other post regarding wrong primary keys then suggest you modify the PIM->DLL transformation so you get those gUIDs.

377
General Board / Re: MDA Transf. -> DDL - wrong primary keys genera
« on: March 28, 2010, 10:37:41 am »
With regards to the example diagram provided, you do realize that the way the elements on the left have been modelled with inheritance means that the EcomLogin class will end up with three gUID attributes. Its own, the one it inherited from Identity class and the one it inherited from ExchangeableBusinessObject.  
Thought I'd just point that out in case it hadn't occurred to you.

378
General Board / Re: MDA Transf. -> DDL - wrong primary keys gen
« on: March 28, 2010, 10:14:10 am »
Not sure what you are trying to achieve but it looks like you may a problem with your thoughts on what is a platform independent model (PIM). Generally you don't worry about implementation details such as gUID's as this is platform specific. So from your example you would delete the gUID attribute from the elements on the left. If you really need a primary key called gUID then modify the DDL transform to change the primary and foreign keys. You will need to modify the scripts under DDL.Class, DDL.Connector and DDL.ForeignKey.

For example in the DDL.Class script you would change the attribute "name" in script below
...
  PrimaryKey
  {
    Column
    {
     name=%qt%%CONVERT_NAME(className, "Pascal Case","Camel Case")%ID%qt%
      type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,"Integer")%%qt%
    }
  }
...

To something like this
     name=%qt%gUID%qt%

You'll also need to modify those other scripts DDL.Connector and DDL.ForeignKey in a similar fashion.

Well I hope that helps.

379
General Board / Re: Can anyone share experience with code sync?
« on: March 24, 2010, 03:49:55 pm »
Here is a thought if you are using C# you can use partial classes to separate generated code from hand crafted.

380
General Board / Re: Persistence - Ongoing "Model-first"
« on: March 23, 2010, 06:21:56 pm »
I'm sure the MDA purists would say the PIM is the master and everything is generated from it so when change happens you only maintain the PIM and re-generated everything. So in theory you only need to maintain one model, the PIM. However, you know what they say about theory and practice. In theory they are the same but in practice they are different.

Here is a thought for LINQ - you could write you own MDA to create your LINQ model and code from the DDL Model. A kind of two phase MDA process. You would need to identify the common LINQ pattens you would want to use in your application first. You may like to look at LINQ examples to identify the patterns you think would be most useful (See http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx).

I did an PIM->DDL->Stored Procedures (two phase) MDA transformation a few years back on a project that worked quite well and saved a truck load of time.

Afraid EA doesn't support Persistence Frameworks out of the box other than EJB - you have to do the customization yourself.

If your looking for other persistence frameworks as alternatives then consider NHibernate or IBATIS. Unfortunately using any of these with EA means you need to do some customization to EA.

Here is an opportunity for the EA community to contribute to the success of EA by creating MDA scripts to support persistence frameworks such as LINQ. We could upload them to the EA community site
http://community.sparxsystems.com/

Well there is my 2 cents worth.

381
General Board / Re: C++ MDA Transform
« on: March 24, 2010, 04:07:52 pm »
Yes it seems to be an oversight no PIM->C++ MDA transformation.
Its not difficult to create your own MDA transformation. Give yourself a few days to learn the scripting language and create the first draft. Then about a week or two afterwards to fine tune it when you are using it in anger.
You may wish to consider copying the C# MDA transform and tweaking it to C++ rather than starting from scratch.

Don't forget to set the collection classes under tools>options>source code engineering>C++

382
General Board / Re: UI niggles - Keeping some panels, closing othe
« on: February 26, 2010, 07:35:50 pm »
I've used EA for about 5 years and I like the start page. :)

383
General Board / Re: SQL Server vs Oracle 10g
« on: January 29, 2010, 12:50:39 pm »
I've used SQL server 2008 for over a year now with no problems other than importing visio diagrams. Sorry haven't used Oracle 10g with Enterprise Architect.

384
General Board / Re: Visio Business Process Modelling Conversion
« on: August 27, 2009, 12:36:10 pm »
I've used the visio importer successfully in the past. I imported several process diagrams into Enterprise Architecture as activity diagrams. There was a little post processing of the diagram after importing but it worked.
One problem I did encounter was when I moved from an EAP file to SQL Server based model. For some reason it just wouldn't work when the EA respository was based on a SQL Server DB. My work around was;

1) Import the visio diagram into an EA model based on EAP file
2) Export the result into XMI file
3) Import the XMI file into the EA model based on SQL Server.

A bit convoluted but it worked.

I have to confess that I haven't tried the new Visio importer version 1.5 yet as I'm not doing any visio importing at the moment.

385
General Board / Re: How to hide package names in class diagrams?
« on: August 11, 2009, 05:23:58 pm »
To remove the package name in the class diagram, open up the diagram properties dialog by right clicking on diagram and selecting properties. In the properties dialog select the diagram tab. On the diagram tab uncheck the "Show Namespace" option. Click okay button and hey presto package name disappears from classes on the diagram.

386
General Board / Re: HTML Report
« on: June 30, 2009, 08:20:28 pm »
In answer to those two questions

1. You can create a Web Style template and modify the defaults then use the new template to generate the HTML Report. You can modify the template via the resource window under Resources>Templates>Web Style Templates. Create a new template and then try Editing the "Page - ToC" part of the template.

2. Afraid the answer is no not at present. You could ask Sparxs to add it in the next release though.

Hope that helps

Regards,
Paul

387
General Board / Re: Trying to model relationships for ASP.NET web
« on: June 30, 2009, 08:42:44 pm »
You may find some help in a book by Jim Conallen called Building Web Applications with UML.

http://books.google.co.nz/books?id=B1n8zzPcMbYC&printsec=frontcover&dq=building+web+applications+with+UML+conallen

Regards,
Paul

388
Bugs and Issues / Re: Sparx EA and Windows 10
« on: August 19, 2015, 08:37:12 am »
Yes, thanks saw that about windows 10 not being supported yet.
Will log a bug report and supply the model over the weekend.

389
Bugs and Issues / Re: Sparx EA and Windows 10
« on: August 17, 2015, 05:21:38 pm »
Tried using the compatibility mode built into Win 10 to use Win 7 instead however the problem of crashes still happened.
Found when I transferred the project to another eap file or a feap file the problem goes away in the new copy.
Weird aye?

390
Bugs and Issues / Sparx EA and Windows 10
« on: August 17, 2015, 11:00:30 am »
Just been trying out Sparx EA(Buid 1215) on Windows 10 Home Edition.  In a particular model (.eap file) I've found I can reliably crash Sparx EA when clicking on certain packages (yet not all packages). Tried doing the same thing with the same model on Win 7 Pro without any crashes.
Anyone else tried Win 10 and had similar problems?

Pages: 1 ... 24 25 [26] 27 28 ... 34