title: AndroMDA maven code generation and JPA Annotations
body: <p>I am using the AndroMDA plugin for maven to generate code from an uml diagram made in MagicDraw.</p>
  
  <p>When the code is generated, AndroMDA desings the JPA annotation for the persitence layer. I think that at the compilation process AndroMDA uses Naming Strategies to determine the Table and Column names for the DataBase.</p>
  
  <p>I want to determine how AndroMDA desings this JPA annotations, because I need to display this DataBase names based on the UML entity and atributtes names.</p>
  
  <p>I was regarding if there is an API of AndroMDA that I could use to do this by giving it the uml diagram. Or at least, to know the Naming Strategies used by AndroMDA to achive that.</p>
  
  <hr>
  
  <p>AndroMDA at the compilation process design the JPA annotations for the Entities, Attributes, etc that are written in my java classes under a series of rules that exist within the EJB3 cartridge of AndroMDA. (The further Database is created using those JPA annotations).</p>
  
  <p>I want to create a program that returns me the same Table and Attributes names wrote on the JPA annotations, by giving it the .xml file of the uml diagram of a project.</p>
  
  <p>I was hoping that I could take advantage of the EJB3 cartridge to generate those Tables and Attribute names with my program. One way could be using an API of AndroMDA that do this(if it exits), or at least, by implementing the same rules used by the EJB3 cartridge for that matter.</p>
  
  <p>To be more illustrative, For example:</p>
  
  <p>If in my uml model I have an Entity called “CompanyGroup”, AndroMDA would generate the following code for the class definition: </p>
  
  <p>@javax.persistence.Entity</p>
  
  <p>@javax.persistence.Table(name = "<strong>COMPANY_GR</strong>") </p>
  
  <p>Public class <strong>CompanyGroup</strong> implements java.io.Serializable, Comparable&lt; <strong>CompanyGroup</strong> ></p>
  
  <p>This is just an example (not a real case), but nevertheless, the way how AndroMDA do the translation from “<strong>CompanyGroup</strong>” to “<strong>COMPANY_GR</strong>” has to be specified somewhere.</p>
  
  <p>Hope this explanation is useful enough.</p>
  
  <p>Thanks. </p>