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.

Topics - mrpmorris

Pages: [1]
Suggestions and Requests / "Website" forum
« on: April 19, 2012, 07:01:38 pm »
Perhaps you should have a forum for discussing changes on the website?

For example

Says that "Import Reference Data" is in the Tools menu, but it is in Project->Model Import/Export

General Board / Default language to C#
« on: April 19, 2012, 10:57:39 pm »
Is there a way to tell EA I want new classes to default to C# and not Java?

General Board / Profile problem
« on: April 19, 2012, 10:02:11 pm »
I have created a profile, then saved it as a profile.
Then I created a class using my NHEntity stereotype from the tool box.
I see my "TableName" tagged value in NHibernateProfile as expected.

I have now added another attribute to my NHEntity metaclass, saved the profile, and then reimported the profile into my test project.  New NHEntity classes added to my model have the new IDType value, but NHEntities created before the re-import do not.

This is also apparent in specifying that an attribute is an enumeration.  Here is the profile

At first the enumeration wasn't in the profile and the IDType was a string.  I later changed it to an enumeration.

After re-importing the profile I see that the class I originally added to my test project does not realise it is an enumeration

Whereas a class I add to the diagram after re-importing does


It seems the template's metaclass attributes and their types are only added to the new class when it is created, and not re-applied when the profile is re-imported.

This would be a major pain if I had a large model and for some reason had to re-import a modified profile.  Is there a step I am missing, or does EA simply not do this?

General Board / Duplicate attribute when CamelCasing
« on: April 07, 2012, 07:33:53 am »
I have added a stereotype overload for the code template "attribute declaration" (as below.)  If I do not camel case the attribute name then on subsequent code generations EA notices I have an "ID" attribute already in the source file and doesn't add it again, however if I do camel case the attribute name then EA sees there is no "ID" (because it is "iD") and applies this template again.

How do I prevent that from happening?

 %CONVERT_NAME(attName, "Pascal Case", "Camel Case")%;\n
      get { return %CONVERT_NAME(attName, "Pascal Case", "Camel Case")%; }\n
      private set { %CONVERT_NAME(attName, "Pascal Case", "Camel Case")% = value; }\n

General Board / Profiles and properties
« on: April 06, 2012, 10:30:35 pm »
I created a profile which extends Class and Property.  The attributed I added to class appears in the properties window for the class when I set the PersistentEntity stereotype.  But when I create a property how do I

1: Mark it as virtual?
2: Tell EA I don't want a private field + getter + setter but just want the shortened format "public virtual Guid ID { get; protected set; }
3: How do I set the profile attributes on that property?  Unlike the Class Properties window I do not see a tree item for my profile in the property's "Properties" window, and EA keeps insisting on giving it a "property" stereotype
4: How do I make the setter protected and the getter public? (Set Scope is always disabled)


General Board / NHibernate
« on: April 02, 2012, 10:28:36 pm »
Does anyone have some kind of NHibernate template for EA, or a blog describing any experiences?

Pages: [1]