org.makumba.db.hibernate
Class MddToMapping
java.lang.Object
org.makumba.db.hibernate.MddToMapping
public class MddToMapping
- extends Object
Method Summary |
void |
generateMapping(DataDefinition dd,
org.hibernate.cfg.Configuration cfg)
Creates an xml file for the given DataDefinition and adds it to the configuration resource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tf
SAXTransformerFactory tf
takenColumnNames
Set<String> takenColumnNames
columnNames
Map<String,Object> columnNames
MddToMapping
public MddToMapping(Vector<String> v,
org.hibernate.cfg.Configuration cfg,
String generationPath,
String prefix,
NameResolver nr)
throws TransformerConfigurationException,
SAXException
- Throws:
TransformerConfigurationException
SAXException
MddToMapping
public MddToMapping(DataDefinition dd,
org.hibernate.cfg.Configuration cfg,
String generationPath,
String prefix)
throws TransformerConfigurationException,
SAXException
- Throws:
TransformerConfigurationException
SAXException
generateMapping
public void generateMapping(DataDefinition dd,
org.hibernate.cfg.Configuration cfg)
throws TransformerConfigurationException,
SAXException
- Creates an xml file for the given DataDefinition and adds it to the configuration resource
- Parameters:
dd
- DataDefinition that needs to be mappedcfg
- Configuration in which it will be used
- Throws:
TransformerConfigurationException
SAXException