|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.hibernate.objectstore.tools.internal.Nof2HbmXml
public class Nof2HbmXml
Create hbm.xml mapping document for a Naked Object domain class.
If property valueFieldAccess is true values are mapped with access="field", but field names must be the same as the property name (i.e. method getXxx() and field xxx). This will allow Hibernate to circumvent any container.resolve() calls inside the getters, and dirty setting in setters.
Similarly, if property associationFieldAccess is true assocations are mapped with access="field".
| Constructor Summary | |
|---|---|
Nof2HbmXml()
|
|
| Method Summary | |
|---|---|
void |
configure(org.hibernate.cfg.Configuration cfg)
Add all classes loaded in Naked Objects to the hibernate configuration |
protected org.dom4j.Document |
createDocument(PersistentNakedClass persistentNakedClass)
|
void |
createMappingFiles()
|
protected org.w3c.dom.Document |
createW3cDoc(org.dom4j.Document doc4j)
|
void |
exportHbmXml(java.lang.String basedir)
Export Hibernate mapping files for all Naked Objects currently in NakedObjects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Nof2HbmXml()
| Method Detail |
|---|
public void configure(org.hibernate.cfg.Configuration cfg)
public void createMappingFiles()
protected org.w3c.dom.Document createW3cDoc(org.dom4j.Document doc4j)
protected org.dom4j.Document createDocument(PersistentNakedClass persistentNakedClass)
public void exportHbmXml(java.lang.String basedir)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||