Skip to content

Commit 92a27e0

Browse files
committed
本質的でない修飾子を除去
1 parent bdf9027 commit 92a27e0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/sources/embeddable.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ Embeddable(エンベッダブル)は、データベースのテーブルや
1818
@Embeddalbe
1919
public class Address {
2020
21-
private final String city;
21+
final String city;
2222
23-
private final String street;
23+
final String street;
2424
2525
@Column(name = "ZIP_CODE")
26-
private final String zip;
26+
final String zip;
2727
2828
public Address(String city, String street, String zip) {
2929
this.city = city;
@@ -39,9 +39,9 @@ Embeddable(エンベッダブル)は、データベースのテーブルや
3939
@Entity
4040
public class Employee {
4141
@Id
42-
private final Integer id;
42+
Integer id;
4343
44-
private final Address address;
44+
Address address;
4545
}
4646
4747
テーブルや結果セットとのマッピングにおいて、上記のクラス定義は下記のクラス定義と同等です。
@@ -51,14 +51,14 @@ Embeddable(エンベッダブル)は、データベースのテーブルや
5151
@Entity
5252
public class Employee {
5353
@Id
54-
private final Integer id;
54+
Integer id;
5555
56-
private final String city;
56+
String city;
5757
58-
private final String street;
58+
String street;
5959
6060
@Column(name = "ZIP_CODE")
61-
private final String zip;
61+
String zip;
6262
}
6363
6464
@@ -97,7 +97,7 @@ Embeddable(エンベッダブル)は、データベースのテーブルや
9797
.. code-block:: java
9898
9999
@Column(name = "ZIP_CODE")
100-
private final String zip;
100+
final String zip;
101101
102102
識別子
103103
------

0 commit comments

Comments
 (0)