[HHH-2714] Three typos in code examples

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@12767 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Diego Plentz 2007-07-16 04:18:27 +00:00
parent 394abb8fbf
commit 9fda5ffa29
21 changed files with 28 additions and 28 deletions

View File

@ -830,7 +830,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
</class>
<class name="Item">
<id name="id" column="CATEGORY_ID"/>
<id name="id" column="ITEM_ID"/>
...
<!-- inverse end -->

View File

@ -312,8 +312,8 @@ while ( iter.hasNext() ) {
while ( kittensAndMothers.hasNext() ) {
Object[] tuple = (Object[]) kittensAndMothers.next();
Cat kitten = tuple[0];
Cat mother = tuple[1];
Cat kitten = (Cat) tuple[0];
Cat mother = (Cat) tuple[1];
....
}]]></programlisting>

View File

@ -735,7 +735,7 @@ Transaction t = session.beginTransaction();
int oldVersion = foo.getVersion();
session.load( foo, foo.getKey() ); // load the current state
if ( oldVersion!=foo.getVersion ) throw new StaleObjectStateException();
if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException();
foo.setProperty("bar");
t.commit();

View File

@ -838,7 +838,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
</class>
<class name="Item">
<id name="id" column="CATEGORY_ID"/>
<id name="id" column="ITEM_ID"/>
...
<!-- inverse end -->

View File

@ -309,8 +309,8 @@ while ( iter.hasNext() ) {
while ( kittensAndMothers.hasNext() ) {
Object[] tuple = (Object[]) kittensAndMothers.next();
Cat kitten = tuple[0];
Cat mother = tuple[1];
Cat kitten = (Cat) tuple[0];
Cat mother = (Cat) tuple[1];
....
}]]></programlisting>

View File

@ -653,7 +653,7 @@ session = factory.openSession();
Transaction t = session.beginTransaction();
int oldVersion = foo.getVersion();
session.load( foo, foo.getKey() ); // load the current state
if ( oldVersion!=foo.getVersion ) throw new StaleObjectStateException();
if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException();
foo.setProperty("bar");
t.commit();
session.close();]]></programlisting>

View File

@ -814,7 +814,7 @@ kittens = cat.getKittens(); // Ok, la collection kittens est un Set
</class>
<class name="Item">
<id name="id" column="CATEGORY_ID"/>
<id name="id" column="ITEM_ID"/>
...
<!-- inverse end -->

View File

@ -305,8 +305,8 @@ while ( iter.hasNext() ) {
while ( kittensAndMothers.hasNext() ) {
Object[] tuple = (Object[]) kittensAndMothers.next();
Cat kitten = tuple[0];
Cat mother = tuple[1];
Cat kitten = (Cat) tuple[0];
Cat mother = (Cat) tuple[1];
....
}]]></programlisting>

View File

@ -713,7 +713,7 @@ catch (RuntimeException e) {
int oldVersion = foo.getVersion();
session.load( foo, foo.getKey() ); // Charger l'état courant
if ( oldVersion!=foo.getVersion )
if ( oldVersion != foo.getVersion() )
throw new StaleObjectStateException();
foo.setProperty("bar");

View File

@ -830,7 +830,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
</class>
<class name="Item">
<id name="id" column="CATEGORY_ID"/>
<id name="id" column="ITEM_ID"/>
...
<!-- inverse end -->

View File

@ -298,8 +298,8 @@ while ( iter.hasNext() ) {
while ( kittensAndMothers.hasNext() ) {
Object[] tuple = (Object[]) kittensAndMothers.next();
Cat kitten = tuple[0];
Cat mother = tuple[1];
Cat kitten = (Cat) tuple[0];
Cat mother = (Cat) tuple[1];
....
}]]></programlisting>

View File

@ -858,7 +858,7 @@ Transaction t = session.beginTransaction();
int oldVersion = foo.getVersion();
session.load( foo, foo.getKey() ); // load the current state
if ( oldVersion!=foo.getVersion ) throw new StaleObjectStateException();
if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException();
foo.setProperty("bar");
t.commit();

View File

@ -777,7 +777,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
</class>
<class name="Item">
<id name="id" column="CATEGORY_ID"/>
<id name="id" column="ITEM_ID"/>
...
<!-- inverse end -->

View File

@ -276,8 +276,8 @@ while ( iter.hasNext() ) {
while ( kittensAndMothers.hasNext() ) {
Object[] tuple = (Object[]) kittensAndMothers.next();
Cat kitten = tuple[0];
Cat mother = tuple[1];
Cat kitten = (Cat) tuple[0];
Cat mother = (Cat) tuple[1];
....
}]]></programlisting>

View File

@ -659,7 +659,7 @@ Transaction t = session.beginTransaction();
int oldVersion = foo.getVersion();
session.load( foo, foo.getKey() ); // load the current state
if ( oldVersion!=foo.getVersion ) throw new StaleObjectStateException();
if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException();
foo.setProperty("bar");
t.commit();

View File

@ -830,7 +830,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
</class>
<class name="Item">
<id name="id" column="CATEGORY_ID"/>
<id name="id" column="ITEM_ID"/>
...
<!-- inverse end -->

View File

@ -319,8 +319,8 @@ while ( iter.hasNext() ) {
while ( kittensAndMothers.hasNext() ) {
Object[] tuple = (Object[]) kittensAndMothers.next();
Cat kitten = tuple[0];
Cat mother = tuple[1];
Cat kitten = (Cat) tuple[0];
Cat mother = (Cat) tuple[1];
....
}]]></programlisting>

View File

@ -756,7 +756,7 @@ Transaction t = session.beginTransaction();
int oldVersion = foo.getVersion();
session.load( foo, foo.getKey() ); // load the current state
if ( oldVersion!=foo.getVersion ) throw new StaleObjectStateException();
if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException();
foo.setProperty("bar");
t.commit();

View File

@ -722,7 +722,7 @@ LinkedHashMap实现)。 它是在SQL查询中完成排序而不是在内存
</class>
<class name="Item">
<id name="id" column="CATEGORY_ID"/>
<id name="id" column="ITEM_ID"/>
...
<!-- inverse end -->

View File

@ -274,8 +274,8 @@ while ( iter.hasNext() ) {
while ( kittensAndMothers.hasNext() ) {
Object[] tuple = (Object[]) kittensAndMothers.next();
Cat kitten = tuple[0];
Cat mother = tuple[1];
Cat kitten = (Cat) tuple[0];
Cat mother = (Cat) tuple[1];
....
}]]></programlisting>

View File

@ -566,7 +566,7 @@ Transaction t = session.beginTransaction();
int oldVersion = foo.getVersion();
session.load( foo, foo.getKey() ); // load the current state
if ( oldVersion!=foo.getVersion ) throw new StaleObjectStateException();
if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException();
foo.setProperty("bar");
t.commit();