[HHH-1920] Incorrect documentation regarding XML manipulation in Hibernate reference manual (chapter 18.3)
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@12943 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
bd414941f8
commit
ee0f78562d
|
@ -252,7 +252,7 @@ List results = dom4jSession
|
||||||
for ( int i=0; i<results.size(); i++ ) {
|
for ( int i=0; i<results.size(); i++ ) {
|
||||||
//add the customer data to the XML document
|
//add the customer data to the XML document
|
||||||
Element customer = (Element) results.get(i);
|
Element customer = (Element) results.get(i);
|
||||||
doc.add(customer);
|
doc.getRootElement().add(customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
|
|
@ -248,7 +248,7 @@ List results = dom4jSession
|
||||||
for ( int i=0; i<results.size(); i++ ) {
|
for ( int i=0; i<results.size(); i++ ) {
|
||||||
//add the customer data to the XML document
|
//add the customer data to the XML document
|
||||||
Element customer = (Element) results.get(i);
|
Element customer = (Element) results.get(i);
|
||||||
doc.add(customer);
|
doc.getRootElement().add(customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
|
|
@ -257,7 +257,7 @@ List results = dom4jSession
|
||||||
for ( int i=0; i<results.size(); i++ ) {
|
for ( int i=0; i<results.size(); i++ ) {
|
||||||
//add the customer data to the XML document
|
//add the customer data to the XML document
|
||||||
Element customer = (Element) results.get(i);
|
Element customer = (Element) results.get(i);
|
||||||
doc.add(customer);
|
doc.getRootElement().add(customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
|
|
@ -264,7 +264,7 @@ List results = dom4jSession
|
||||||
for ( int i=0; i<results.size(); i++ ) {
|
for ( int i=0; i<results.size(); i++ ) {
|
||||||
//add the customer data to the XML document
|
//add the customer data to the XML document
|
||||||
Element customer = (Element) results.get(i);
|
Element customer = (Element) results.get(i);
|
||||||
doc.add(customer);
|
doc.getRootElement().add(customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
|
|
@ -239,7 +239,7 @@ List results = dom4jSession
|
||||||
for ( int i=0; i<results.size(); i++ ) {
|
for ( int i=0; i<results.size(); i++ ) {
|
||||||
//add the customer data to the XML document
|
//add the customer data to the XML document
|
||||||
Element customer = (Element) results.get(i);
|
Element customer = (Element) results.get(i);
|
||||||
doc.add(customer);
|
doc.getRootElement().add(customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
|
|
@ -255,7 +255,7 @@ List results = dom4jSession
|
||||||
for ( int i=0; i<results.size(); i++ ) {
|
for ( int i=0; i<results.size(); i++ ) {
|
||||||
//add the customer data to the XML document
|
//add the customer data to the XML document
|
||||||
Element customer = (Element) results.get(i);
|
Element customer = (Element) results.get(i);
|
||||||
doc.add(customer);
|
doc.getRootElement().add(customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
|
|
@ -238,7 +238,7 @@ List results = dom4jSession
|
||||||
for ( int i=0; i<results.size(); i++ ) {
|
for ( int i=0; i<results.size(); i++ ) {
|
||||||
//add the customer data to the XML document
|
//add the customer data to the XML document
|
||||||
Element customer = (Element) results.get(i);
|
Element customer = (Element) results.get(i);
|
||||||
doc.add(customer);
|
doc.getRootElement().add(customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
tx.commit();
|
tx.commit();
|
||||||
|
|
Loading…
Reference in New Issue