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 - Thomas Mayr

Pages: [1]
1
Suggestions and Requests / Re: DDL to manage a changing schema
« on: August 20, 2008, 08:33:50 pm »
Hello David,

thanks for your answer! I don't want to say that JDevelope is the perfect tool (otherwise we would not look for an alternative!). It has it's limitations when you try to synchronize the datamodel with multiple database instances, and it doesn't support the conversion between different database types.

What we need is, to synchronze the logical database model with differeet database instances of different vendores (Oracle and MySql). We hoped, that we achieve this with EA, because it supports also the data type mapping. However es far as I can see now the database type is an attribute of the table. So when we want to generate a DDL for the different database types we have to change this in all tables?

However EA cannot help us in this aerea, so we'll have to look for another tool for this purpose. We just want not to spent money for another tool when this features are available in EA in the next two months.

Best regards Thomas

2
Suggestions and Requests / Re: DDL to manage a changing schema
« on: August 20, 2008, 12:32:20 am »
Hi,

we are currently evaluating EA, because we need a new tool for UML and data modeling. I'm also looking for this feature to alter an existing database. I wonder, why the suggested commands displayed when the database and generated DDL are compared cannot be executed.

JDeveloper form Oracle has this feature and is FOR FREE! Off course not everything is possible, but adding and deleting columns, constraints or procedures shouldn't be a problem.

It would also be nice to synchronize individual tables and not the whole schema. I really suggest you have a look at LDeveloper, which has really some nice features in thi aera!

So, the question is if there is a timeframe when this feature is implemented?

Best regards Thomas.

3
General Board / Re: Tagged value notes in code templates
« on: December 09, 2008, 08:41:13 pm »
One add on:

The problem is when comments like this are reverse engineered:

    /**
     * A method.
     * @param p1 First parameter.
     * @param p2 Second parameter
     * @returns true or false
     * @throws Exception An exception
     * @throws Throwable Any exception
     * @see java.lang.Exception
     */

... and afterwards code is generated the comment looks like this:

    /**
     * A method.
     * @returns true or false
     * @see java.lang.Exception
     *
     * @param p1    First parameter.
     * @param p2    Second parameter
     * @exception Throwable Any exception
     * @exception Exception An exception
     */

We don't want to get the @returns and @see tags above the @param tags!

Thomas

4
General Board / Re: Tagged value notes in code templates
« on: December 09, 2008, 08:15:42 pm »
Hi Simon,

JAVADOC_COMMENT does some formatting, which doesn't fit to your coding guidelines. So I want to remove the spaces between the parameter and the documentation after @param tags and to remove some new lines (\n). However, this is a minor problem.

I want further create @returns and @see JavaDoc tags from tagged values.

Another problem for us is, that @throws tags are converted to @exception when the code is synchronized with the model, am so @exception tags are created when code is generated from the model afterwards.

So it would be nice, if a more flexible JavaDoc formatting is supported by EA

Best regards Thomas

5
General Board / Tagged value notes in code templates
« on: December 08, 2008, 10:29:06 pm »
Hi,

I'm trying to generate JavaDoc @throws comments from the model. So I need access to the tagged value notes of an operation, where these comments should obviousely be entered. So I tried the following code:

/**
$notes = %opNotes%
%if $notes != ""%
$notes += "\n"
%endIf%
$notes += %list="Parameter__JavaDoc" @separator="\n"%
$exceptions = %opTag:"throws"=="" ? "": "\n@throws " value%
$notes += $exceptions
%WRAP_COMMENT($notes, "73", " ", "* ")%
 */

However this doesn't work for several reasons:

1. Only the first tagged value with name "throws" ist used here
2. The note of the tagged value is missing.

So my questions:

1. Is ist possible to use the tagged values together with a %list% macro?
2. How can I access the note of a tagged value.

Best regards Thomas

6
General Board / Numeric expressions in code templates
« on: December 05, 2008, 10:33:44 pm »
Hi,

I'm looking for a posibilty to create numeric expressions in code templates e.g.:

$notes = %opNotes%
$wrap = %genOptWrapComment% - 7
%WRAP_COMMENT($notes, $wrap, " ", "* ")%

But this doesn't work.

Is there an elegant posibility to do what I want?

Thomas

7
General Board / Pre-formatted comments in HTML report
« on: December 05, 2008, 03:29:16 am »
Hi,

I have some pre-formatted comments in my java source like the following:

<PRE>
void f()
{
    doSomething();
    doSomethingElse();
}
</PRE>

I synchronized this Java code with the model and generated an HTML report.  When I look at the generated HTML documentation with a browser, the formatting is destroyed. Is there a way to keep the formatting in certain sections of the Java comment? I think sections between <PRE> tags should be recognized by EA.

Thanks for hints Thomas

8
General Board / Re: EclipseLink error: switch eclipse workspace
« on: August 28, 2008, 04:56:54 pm »
One add on: When you link a package in EA to  an eclipse project, the link is not visible in the project explorer of the eclipse plugin. So the context menu entry "Code Services" doesn't appear. You have to link the package in the project explorer again (after you have linked it in EA), than it works.

I really don't know if this is the intended behaviour; at least it is not well documented.

Thomas

9
General Board / Re: EclipseLink error: switch eclipse workspace
« on: August 28, 2008, 04:49:32 pm »
Now I know why this happened: When you create the link to an eclipse project in the project explorer of the eclipse plugin (context menu of the package ->Current Package->Link this Package to an Eclipse Project) the package is not correctly connected and you get this problem. So the link should always be made from EA.

Thomas

10
General Board / Re: EclipseLink error: switch eclipse workspace
« on: August 26, 2008, 11:27:42 pm »
Hi,

at least I found the solution. I forgot to press the "Connect" button on the eclipse connection dialog to "really" connect the projects. The EA package appears to be connected (was decorated with eclipse icon), but was not really connected.

Thomas

11
General Board / Re: EclipseLink error: switch eclipse workspace
« on: August 26, 2008, 05:09:28 pm »
BTW: I have the latest version of EA: 7.1 Build 832 and the version of the eclipse plugin is  6.1.8144.

Regards Thomas

12
General Board / EclipseLink error: switch eclipse workspace
« on: August 22, 2008, 08:33:37 pm »
Hello,

when I try to generate code of a single class I get the error message "Please use eclipse to switch to the following workspace: C:\users\mayr\JavaEntwicklung".

I connected an eclipse and EA project and reverse engineered the java code to an EA model. Now I modified a class in the model and want to generate the code. The error occurs when I try this from the eclipse plugin or from EA directly. The error also occurs when I select "View source code..." in EA from the context menu of the class. However the source code is displayed afterward. When I do the same from the eclipse plugin ("View Code") it works without error message.

I'm also able to synchronize the EA model with this class (forward engineerieng). I modified the Java code and the modifications are reflected in the model.

I never had an eclipse workspace under the requested path; so I don't know why EA has the idea I should switch to this workspace?

Any ideas how to solve this problem?

Thanks Thomas

Pages: [1]