1 /** 2 * 2008, Digitalis Informatica. All rights reserved. Distribuicao e Gestao de Informatica, Lda. Estrada de Paco de Arcos 3 * num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999 http://www.digitalis.pt 4 */ 5 6 package pt.digitalis.maven.ormgenerator.hibernate; 7 8 import java.util.Properties; 9 10 import org.hibernate.cfg.Configuration; 11 import org.hibernate.tool.hbm2x.GenericExporter; 12 import org.hibernate.tool.hbm2x.pojo.POJOClass; 13 14 /** 15 * Custom exporter class for Hibernate tools. 16 * 17 * TODO: Viegas: Substitute this class in the hbmtemplate task. Use: 18 * exporterclass="pt.digitalis.maven.ormgenerator.hibernate.CustomGenericExporter" Must override some code. Goal to 19 * accept the package as a parameter so to override the jdbcconfiguration packagename parameter. Thus we can refactor 20 * the build.xml so we have a single seep of the database. Will be significantly faster! 21 * 22 * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a><br/> 23 * @created Jan 20, 2009 24 */ 25 public class CustomGenericExporter extends GenericExporter { 26 27 /** 28 * @see org.hibernate.tool.hbm2x.GenericExporter#getPackageNameForFile(org.hibernate.tool.hbm2x.pojo.POJOClass) 29 */ 30 @Override 31 protected String getPackageNameForFile(POJOClass element) 32 { 33 // TODO Auto-generated method stub 34 return super.getPackageNameForFile(element); 35 } 36 37 /** 38 * @see org.hibernate.tool.hbm2x.AbstractExporter#getConfiguration() 39 */ 40 @Override 41 public Configuration getConfiguration() 42 { 43 // TODO Auto-generated method stub 44 return super.getConfiguration(); 45 } 46 47 /** 48 * @see org.hibernate.tool.hbm2x.AbstractExporter#getProperties() 49 */ 50 @Override 51 public Properties getProperties() 52 { 53 // TODO Auto-generated method stub 54 return super.getProperties(); 55 } 56 57 }