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

Pages: [1]
1
General Board / Re: Possible bug in Foreign key relationships
« on: September 25, 2004, 05:07:32 am »
I must admit, I had a similar problem, but in reverse. I changed table names to uppercase, but the constraints all stayed in lower case. In particular the primary key was the most frustrating as retaining a naming convention helps to keep some of the semantics of the model in the naming. Would be handy if looking at the next version as to whether constraint names which are created based on the table name or column name could be automatically updated.

Would still like to say how impressive the EA features are in this area (and how stable it is). It is so nice to be pernickity (sorry, know how this can be annoying) rather than just wishing the basics would work properly (like ERWin - that doesn't model very well and its designed specifically for this purpose)!

2
General Board / Re: UML real world example??
« on: September 25, 2004, 05:01:05 am »
If you're wondering what to say (rather than how to say it...using UML of course), then look at some of the architecture frameworks kicking around. They help to lay out what needs to be said when describing a system. RUP is one, along with RM-ODP, DoDAF, FEAF, TOGAF...the list is ever growing. The latter ones are enterprise architecture frameworks and describe the business as well as technical architectures. At the end of the day, they recommend what needs to be said to meet a particular perspective or stakeholder concerns. A good meta-architecture framework is the IEEE-1471 standard. It takes you away from UML a little bit, but it gives a good insight into what a good architecture specification is compared to a bad one.

Good luck!

3
Uml Process / BPMN
« on: September 29, 2004, 08:45:35 am »
With BPML out now, and it looking quite like UML Activity Diagrams, is there a way of producing XML/BPML notation for Business Process and Activity Diagrams from EA?

I noticed there was a mention of BPMN in the RUP thread, but it quickly became drowned out by debates over the horse and cart, and which did the leading.

4
Automation Interface, Add-Ins and Tools / Re: Generating Hibernate Mappings
« on: February 07, 2007, 08:27:53 am »
I'm not sure if it especially complicated, but it will be quite a big job. As you say, you have to create the Java, the DDL, and the Hibernate mapping files (hbm.xml).

There are tools within Hibernate that generate the Java and DDL from the Hibernate mapping files. Similarly, you can use XDoclet to generate the Hibernate mapping files from the Java, and then in turn generate the DDL from the Hibernate mapping files.

The next issue you have is keeping the Java and DDL in sync in EA if you use EA to generate the Java and DDL. I've found the Model Transformation generators struggle with many-to-many relationships, particularly those from associative objects, which seems to form quite large parts of my models owing to vague requirements for understanding the relationship between classes. ???

I found quite a quick way was to modify the EA Java code generators to add XDoc comments into the headers, and then use XDoclet to do the hard work of creating the hbm.xml files. However, I abandoned its widescale use because it repeated the comments for both the get and set methods, which resulted in two column entries for each attribute. I now have a Perl script that generates the Java, DDL, and hbm.xml files. It is still a pain to create the Perl-based configuration files from the design, but the process is much faster than generating all by hand.

Saying that, if someone does do a proper job for creating the transforms, they'll have me as a customer! If I can help with some of the concepts, don't hesitate to contact me.

5
Hi,

I'm sure it has been discussed before, but has anyone done a model transformation script for Hibernate or NHibernate?

I did one some time ago using coded Java comments and XDoc which worked ok, but it repeated the comments on both get and set, resulting in two identical fields/attributes (doh!).

6
Automation Interface, Add-Ins and Tools / Re: Java / Hibernate Classes
« on: December 11, 2005, 05:24:18 pm »
I don't suppose anyone has any Java_Code_Template.xml for Hibernate generation available do they? And has anyone done a dedicated Hibernate language template? I am looking for potentially a hibernate mapping file (.xml) code generator before I start looking at writing one myself - and look at the time...1.30am!

Pages: [1]