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

Pages: [1]
1
General Board / When using code synchronization all classes are be
« on: September 05, 2013, 06:49:37 am »
When using code synchronization all classes are being duplicated.

EA 9.0.908

2
General Board / Re: Code Template Help
« on: July 22, 2005, 05:00:41 am »
Thank's a lot Simonm for replying me. It realy helpd me to solve this problem.

Thank´s again.

Good Day,

Moa.



3
General Board / Code Template Help
« on: July 21, 2005, 10:13:56 am »
Hi,

I want some help with custom code template. I need to create the comments bellow for classes with the <<EJBImplementation>> stereotype

/**
*
* @ejb.bean
*

name="ManterCategoriaFuncionalBean"
*

descripton="Realizar Manutencao de Categoria Funcional Bean"
*

display-name="ManterCategoriaFuncionalBean"
*

jndi-name="ejb/ManterCategoriaFuncionalEjb"


*  
local-jndi-name="ejb/ManterCategoriaFuncionalEjbLocal"
*

view-type="local"
*

type="Stateless"
*

transaction-type="Container"  
*
   impl-class-name="br.syndeo.dms.service.pessoa.ejb.ManterCategoriaFuncionalBean"
*
* @ejb.env-entry
*

name="ejb/BeanFactoryPath"
*

type="java.lang.String"
*

value="META-INF/applicationContext.xml"
*
* @ejb.home local-extends="javax.ejb.EJBLocalHome"
* @ejb.interface local-extends="javax.ejb.EJBLocalObject, br.syndeo.dms.service.ManterBase"
*
*/

I´m without luck with Templates and can´t make it work.
Could somebody help me, and send a step by step help.

thanks Moa.


Moa.

4
General Board / Re: Code Generation [COMMENTS]
« on: July 15, 2005, 11:52:10 am »
Quote
Sorry, I still can't replicate it.  What build of EA are you using?  If it's not the latest, are you able to update it?


I´m using EA 5.0 build 767

5
General Board / Re: Code Generation [COMMENTS]
« on: July 14, 2005, 05:37:26 am »
Quote
Hi,

I'm not able to replicate your problem.  Could you let us know what version and build of EA you are using?

Simon


Just create a new class in a diagram and add 2 attributes to it with comments for each attributes. Generate the java files and open it. Generate it again and look the generated files, you will see that you have duplicated comments.

Moa.

6
General Board / Re: Code Generation [COMMENTS]
« on: July 14, 2005, 05:26:05 am »
Quote
I observed this too. For fix it u should remove all generated files and try generate it again


yes, but if you couldn´t remove the files. If they has been filled with code and you are updating the classes. eg. add some new attributes.

Houston, I think we have a problem!

Moa.

7
General Board / Code Generation [COMMENTS]
« on: July 13, 2005, 05:40:41 am »
Hi,

I´m experiencing some problems when regenerating some classes. In the generated code there are new coments each time I try to regenerate the code.

It seams to be a forward generation problem.
Code: [Select]

public class Contato extends Pessoa {


/**

* INDICA SE É O CONTATO PRINCIPAL. PARA OPERAÇÕES ONDE O CONTATO NÃO FOR INFORMADO É UTILIZADO

* O CONTATO PRINCIPAL.

*/

/**

* INDICA SE É O CONTATO PRINCIPAL. PARA OPERAÇÕES ONDE O CONTATO NÃO FOR

* INFORMADO É UTILIZADO O CONTATO PRINCIPAL.

*/

private boolean principal;

/**

* LISTA DE AREAS DE INTERESSES DO CONTATO
*/

/**

* LISTA DE AREAS DE INTERESSES DO CONTATO

*/

private Collection areasInteresse;

8
General Board / EA and Java Generics
« on: July 13, 2005, 08:44:33 am »
Hello, ::)

I want to no know how EA will treat Java Generics Feature?

Tank's

Moa.

9
My report is set to print messages from sequence diagrams but they are not being printed.

This is an Example

Code: [Select]
package >

{Pkg.Name}

diagram >

{Diagram.DiagramImg}

Messages
messages >

{DiagramMsgs.MessageSequence}

{DiagramMsgs.Notes}

< messages
< diagram
child packages >
< child packages
< package

10
Hello,

I'm still having problems with JAVA code generation.

Create a class then put some attributes on it.
Add some comments for each attributes.
Now try to generate this class. [ctrl + g]
Please note that the option "Allways synchronize with existing flies" needs to be selected.

Ok now you have successfull generated the JAVA class.
Now generate it again, and you will have duplicated comments.


package br.syndeo.dms.domain.servico;

/**
* @author Marcelo Dutra
* @version 1.0
* @created 12-ago-2005 08:36:14
*/
public class Defeito {


/**

* É o código que identifica o defeito

*/

/**

* É o código que identifica o defeito

*/

private int codDefeito;

/**

* É a descrição do defeito

*/

/**

* É a descrição do defeito

*/

private String dscDefeito;

/**

* Indica se o defeito

*/

/**

* Indica se o defeito

*/

private boolean trinca;


public Defeito(){


}


/**

* É o código que identifica o defeito

*/

/**

* É o código que identifica o defeito

*/

public int getCodDefeito(){


return codDefeito;

}


/**

* É a descrição do defeito

*/

/**

* É a descrição do defeito

*/

public String getDscDefeito(){


return dscDefeito;

}


/**

* Indica se o defeito

*/

/**

* Indica se o defeito

*/

public boolean isTrinca(){


return trinca;

}


/**

* É o código que identifica o defeito

*

* @param newVal

*/

/**

* É o código que identifica o defeito

*

* @param newVal

*/

public void setCodDefeito(int newVal){


codDefeito = newVal;

}


/**

* É a descrição do defeito

*

* @param newVal

*/

/**

* É a descrição do defeito

*

* @param newVal

*/

public void setDscDefeito(String newVal){


dscDefeito = newVal;

}


/**

* Indica se o defeito

*

* @param newVal

*/

/**

* Indica se o defeito

*

* @param newVal

*/

public void setTrinca(boolean newVal){


trinca = newVal;

}

}

Pages: [1]