@@ -239,7 +239,7 @@ public class Flight implements Serializable {
239
239
</tip >
240
240
241
241
<para ><literal >@Entity.name</literal > lets you define the shortcut name
242
- of the entity you can used in JP-QL and HQL queries. It defaults to the
242
+ of the entity you can use in JP-QL and HQL queries. It defaults to the
243
243
unqualified class name of the class.</para >
244
244
245
245
<para >Hibernate goes beyond the JPA specification and provide additional
@@ -932,7 +932,7 @@ class UserId implements Serializable {
932
932
<programlisting role =" XML" >< class name="Customer">
933
933
< composite-id name="id" class="CustomerId">
934
934
< key-property name="firstName" column="userfirstname_fk"/>
935
- < key-property name="lastName" column="userfirstname_fk "/>
935
+ < key-property name="lastName" column="userlastname_fk "/>
936
936
< key-property name="customerNumber"/>
937
937
< /composite-id>
938
938
@@ -1075,7 +1075,7 @@ class UserId implements Serializable {
1075
1075
</section >
1076
1076
1077
1077
<section >
1078
- <title >Multiple id properties with with a dedicated identifier
1078
+ <title >Multiple id properties with a dedicated identifier
1079
1079
type</title >
1080
1080
1081
1081
<para ><classname >@IdClass</classname > on an entity points to the
@@ -2594,7 +2594,7 @@ public class Order {
2594
2594
2595
2595
@Embedded private Address address;
2596
2596
public Address getAddress() { return address; }
2597
- public void setAddress() { this.address = address; }
2597
+ public void setAddress(Address address ) { this.address = address; }
2598
2598
}
2599
2599
2600
2600
@Entity
@@ -2605,15 +2605,15 @@ public class User {
2605
2605
2606
2606
private Address address;
2607
2607
@Embedded public Address getAddress() { return address; }
2608
- public void setAddress() { this.address = address; }
2608
+ public void setAddress(Address address ) { this.address = address; }
2609
2609
}
2610
2610
2611
2611
@Embeddable
2612
2612
@Access(AcessType.PROPERTY)
2613
2613
public class Address {
2614
2614
private String street1;
2615
2615
public String getStreet1() { return street1; }
2616
- public void setStreet1() { this.street1 = street1; }
2616
+ public void setStreet1(String street1 ) { this.street1 = street1; }
2617
2617
2618
2618
private hashCode; //not persistent
2619
2619
}</programlisting >
@@ -2631,7 +2631,7 @@ public class Order {
2631
2631
2632
2632
@Access(AccessType.PROPERTY)
2633
2633
public String getOrderNumber() { return userId + ":" + orderId; }
2634
- public void setOrderNumber() { this.userId = ... ; this.orderId = ... ; }
2634
+ public void setOrderNumber(String userId, String orderId ) { this.userId = userId ; this.orderId = orderId ; }
2635
2635
}</programlisting >
2636
2636
2637
2637
<para >In this example, the default access type is
@@ -3130,10 +3130,10 @@ public class Country implements Serializable {
3130
3130
Address homeAddress;</programlisting >
3131
3131
3132
3132
<para >Hibernate Annotations supports something that is not explicitly
3133
- supported by the JPA specification. You can annotate a embedded object
3133
+ supported by the JPA specification. You can annotate an embedded object
3134
3134
with the <literal >@MappedSuperclass</literal > annotation to make the
3135
3135
superclass properties persistent (see
3136
- <literal >@MappedSuperclass</literal > for more informations ).</para >
3136
+ <literal >@MappedSuperclass</literal > for more information ).</para >
3137
3137
3138
3138
<para >You can also use association annotations in an embeddable object
3139
3139
(ie <literal >@OneToOne</literal >, <classname >@ManyToOne</classname >,
@@ -3852,7 +3852,7 @@ public class Plane extends FlyingObject {
3852
3852
<title >Mapping one entity to several tables</title >
3853
3853
3854
3854
<para >While not recommended for a fresh schema, some legacy databases
3855
- force your to map a single entity on several tables.</para >
3855
+ force you to map a single entity on several tables.</para >
3856
3856
3857
3857
<para >Using the <literal >@SecondaryTable</literal > or
3858
3858
<literal >@SecondaryTables</literal > class level annotations. To
@@ -4083,9 +4083,9 @@ public class Cat implements Serializable {
4083
4083
</section >
4084
4084
4085
4085
<section >
4086
- <title >Mapping one to one and one to many associations</title >
4086
+ <title >Mapping one to one and many to one associations</title >
4087
4087
4088
- <para >To link one entity to an other , you need to map the association
4088
+ <para >To link one entity to another , you need to map the association
4089
4089
property as a to one association. In the relational model, you can
4090
4090
either use a foreign key or an association table, or (a bit less common)
4091
4091
share the same primary key value between the two entities.</para >
@@ -4303,7 +4303,7 @@ public class Child {
4303
4303
alter table Child add constraint FK_PARENT foreign key (parent_id) references Parent</programlisting >
4304
4304
</example >
4305
4305
4306
- <para >Sometimes, you want to link one entity to an other not by the
4306
+ <para >Sometimes, you want to link one entity to another not by the
4307
4307
target entity primary key but by a different unique key. You can
4308
4308
achieve that by referencing the unique key column(s) in
4309
4309
<methodname >@JoinColumn.referenceColumnName</methodname >.</para >
@@ -5869,7 +5869,7 @@ class CreditCard {
5869
5869
to define either of these rules.</para >
5870
5870
</note >
5871
5871
5872
- <para >If a property uses more that one column, you must use the
5872
+ <para >If a property uses more than one column, you must use the
5873
5873
<literal >forColumn</literal > attribute to specify which column, the
5874
5874
expressions are targeting.</para >
5875
5875
0 commit comments