[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:
parent
394abb8fbf
commit
9fda5ffa29
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -722,7 +722,7 @@ LinkedHashMap实现)。 它是在SQL查询中完成排序,而不是在内存
|
|||
</class>
|
||||
|
||||
<class name="Item">
|
||||
<id name="id" column="CATEGORY_ID"/>
|
||||
<id name="id" column="ITEM_ID"/>
|
||||
...
|
||||
|
||||
<!-- inverse end -->
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue