{"id":657,"date":"2023-03-31T22:11:08","date_gmt":"2023-11-04T00:37:23","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/"},"modified":"2025-08-01T01:25:56","modified_gmt":"2025-07-31T16:25:56","slug":"jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/","title":{"rendered":"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 &#8211; Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<p>JPA\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001Java\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u3084\u5217\u306a\u3069\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002Hibernate\u306f\u3001JPA\u4ed5\u69d8\u306e\u6700\u3082\u4eba\u6c17\u306e\u3042\u308b\u5b9f\u88c5\u3067\u3042\u308a\u3001\u3044\u304f\u3064\u304b\u306e\u8ffd\u52a0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u4eca\u65e5\u306f\u3001JPA\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3068Hibernate\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3001\u77ed\u3044\u30b3\u30fc\u30c9\u4f8b\u3068\u5171\u306b\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>JPA\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 &#8211; Hibernate\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649583daa94e2bdf7bf7b2\/2-0.png\" alt=\"JPA Annotations, Hibernate Annotations\" \/><\/div>\n<pre class=\"post-pre\"><code>&lt;dependency&gt;\r\n    &lt;groupId&gt;org.hibernate.javax.persistence&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;hibernate-jpa-2.1-api&lt;\/artifactId&gt;\r\n    &lt;version&gt;1.0.0.Final&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n<\/code><\/pre>\n<h3>Java\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u305f\u3081\u306eJPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u91cd\u8981\u306aJPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u90e8\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u3089\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001javax.persistence\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>javax.persistence.Entity: \u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30af\u30e9\u30b9\u304c\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3067\u3042\u308b\u3053\u3068\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30af\u30e9\u30b9\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3001\u5217\u6319\u578b\u306b\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>import javax.persistence.Entity;<\/p>\n<p>@Entity<br \/>\npublic class Employee implements Serializable {<br \/>\n}<\/p>\n<p>@Table: \u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u3053\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u304c\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306f\u300cemployee\u300d\u30c6\u30fc\u30d6\u30eb\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002@Table\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306ename\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>import javax.persistence.Entity;<br \/>\nimport javax.persistence.Table;<\/p>\n<p>@Entity<br \/>\n@Table(name = &#8220;employee&#8221;)<br \/>\npublic class Employee implements Serializable {<br \/>\n}<\/p>\n<p>@Column: @Column\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u5217\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306ename\u5c5e\u6027\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u5217\u540d\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>import javax.persistence.Column;<br \/>\nimport javax.persistence.Entity;<br \/>\nimport javax.persistence.Table;<\/p>\n<p>@Entity<br \/>\n@Table(name = &#8220;employee&#8221;)<br \/>\npublic class Employee implements Serializable {<\/p>\n<p>@Column(name = &#8220;employee_name&#8221;)<br \/>\nprivate String employeeName;<br \/>\n}<\/p>\n<p>@Id: \u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u4e3b\u30ad\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>import javax.persistence.*;<\/p>\n<p>@Entity<br \/>\n@Table(name = &#8220;employee&#8221;)<br \/>\npublic class Employee implements Serializable {<br \/>\n@Id<br \/>\n@Column(name = &#8220;id&#8221;)<br \/>\nprivate int id;<br \/>\n}<\/p>\n<p>@GeneratedValue: \u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u4e3b\u30ad\u30fc\u306e\u5024\u306e\u751f\u6210\u6226\u7565\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>import javax.persistence.*;<\/p>\n<p>@Entity<br \/>\n@Table(name = &#8220;employee&#8221;)<br \/>\npublic class Employee implements Serializable {<\/p>\n<p>@Id<br \/>\n@Column(name = &#8220;id&#8221;)<br \/>\n@GeneratedValue(strategy=SEQUENCE, generator=&#8221;ID_SEQ&#8221;)<br \/>\nprivate int id;<br \/>\n}<\/p>\n<p>@Version: \u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30d0\u30fc\u30b8\u30e7\u30cb\u30f3\u30b0\u3084\u540c\u6642\u5b9f\u884c\u5236\u5fa1\u3092\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>import javax.persistence.*;<\/p>\n<p>@Entity<br \/>\n@Table(name = &#8220;employee&#8221;)<br \/>\npublic class Employee implements Serializable {<br \/>\n@Version<br \/>\n@Column(name = &#8220;version&#8221;)<br \/>\nprivate Date version;<br \/>\n}<\/p>\n<p>@OrderBy: @OrderBy\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u30bd\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001\u3059\u3079\u3066\u306eemployees_address\u3092id\u3067\u6607\u9806\u306b\u4e26\u3079\u66ff\u3048\u307e\u3059\u3002<\/p>\n<p>@OrderBy(&#8220;id asc&#8221;)<br \/>\nprivate Set employee_address;<\/p>\n<p>@Transient: \u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u3059\u3079\u3066\u306e\u975estatic\u3067\u975etransient\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u6c38\u7d9a\u7684\u3068\u898b\u306a\u3055\u308c\u307e\u3059\u304c\u3001@Transient\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u9650\u308a\u3067\u3059\u3002<\/p>\n<p>@Transient<br \/>\nPrivate int employeePhone;<\/p>\n<p>@Lob: \u5927\u304d\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f@Lob\u3092\u4f7f\u7528\u3057\u3066\u5ba3\u8a00\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>@Lob<br \/>\npublic String getEmployeeAddress() {<br \/>\nreturn employeeAddress;<br \/>\n}<\/p>\n<p>\u4e0a\u8a18\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u30bb\u30c3\u30c8\u306f\u3001\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u6700\u3082\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308bJPA\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<h3>\u30c6\u30fc\u30d6\u30eb\u9593\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u305f\u3081\u306eHibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u79c1\u305f\u3061\u306f\u3001\u7570\u306a\u308b\u30c6\u30fc\u30d6\u30eb\u3068\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u95a2\u9023\u4ed8\u3051\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u5225\u306e\u6ce8\u91c8\u30bb\u30c3\u30c8\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u8003\u3048\u3066\u3001\u4f8b\u3092\u6319\u3052\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Tables \u2018employee\u2019 and \u2018employeeDetail\u2019 have one-to-one association and they share the same primary key.<\/li>\n<li>Tables \u2018communication\u2019 and \u2018communicationDetail\u2019 are linked by a foreign key. It is also a one to one association.<\/li>\n<li>Tables \u2018communication\u2019 and \u2018employee\u2019 are linked using a foreign key in many-to-one association with communication being the owner.<\/li>\n<li>Tables \u2018employee\u2019 and \u2018employeeStatus\u2019 are linked through a foreign key in many-to-one association with employee being the owner.<\/li>\n<\/ul>\n<p>@OneToOne\u306eEmployee\u3068EmployeeDetail\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306f\u3001\u540c\u3058\u4e3b\u30ad\u30fc\u3092\u5171\u6709\u3057\u3066\u304a\u308a\u3001@OneToOne\u3068@PrimaryKeyJoinColumn\u3092\u4f7f\u7528\u3057\u3066\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001EmployeeDetail\u306eid\u30d7\u30ed\u30d1\u30c6\u30a3\u306f@GeneratedValue\u3067\u6ce8\u91c8\u4ed8\u3051\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002Employee\u306eid\u5024\u304cEmployeeDetail\u306eid\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>@Entity\r\n@Table(name = \"employee\")\r\npublic class Employee implements Serializable {\r\n   \r\n  @Id\r\n  @Column(name = \"id\")\r\n  @GeneratedValue\r\n  private int id;\r\n   \r\n  @OneToOne(cascade = CascadeType.MERGE)\r\n  @PrimaryKeyJoinColumn\r\n  private EmployeeDetail employeeDetail;\r\n}\r\n \r\n@Entity\r\n@Table(name = \"employeeDetail\")\r\npublic class EmployeeDetail implements Serializable {\r\n \r\n  @Id\r\n  @Column(name = \"id\")\r\n  private int id;\r\n}\r\n<\/code><\/pre>\n<p>\u6ce8\u610f\u3059\u3079\u304d\u30dd\u30a4\u30f3\u30c8\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>@PrimaryKeyJoinColumn should be used for associated entities sharing the same primary key.<\/li>\n<li>@JoinColumn &amp; @OneToOne should be mappedBy attribute when foreign key is held by one of the entities.<\/li>\n<\/ul>\n<p>\u901a\u4fe1\u3068\u901a\u4fe1\u306e\u8a73\u7d30\u306f\u3001\u5916\u90e8\u30ad\u30fc\u3092\u4ecb\u3057\u3066\u30ea\u30f3\u30af\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001@OneToOne\u3068@JoinColumn\u306e\u6ce8\u91c8\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b9\u30cb\u30da\u30c3\u30c8\u3067\u3001\u901a\u4fe1\u306e\u305f\u3081\u306b\u751f\u6210\u3055\u308c\u305fID\u306f\u3001\u901a\u4fe1\u306e\u8a73\u7d30\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u300ccommunication_id\u300d\u5217\u306b\u30de\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002\u540c\u3058\u3053\u3068\u3092\u884c\u3046\u305f\u3081\u306b@MapsId\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>@Entity\r\n@Table(name = \"communicationDetail\")\r\npublic class CommunicationDetail implements Serializable {\r\n \r\n  @Id\r\n  @Column(name = \"id\")\r\n  @GeneratedValue\r\n  private int id;\r\n   \r\n  @OneToOne\r\n  @MapsId\r\n  @JoinColumn(name = \"communicationId\")\r\n  private Communication communication;\r\n}\r\n \r\n@Entity\r\n@Table(name = \"communication\")\r\npublic class Communication implements Serializable {\r\n \r\n  @Id\r\n  @Column(name = \"ID\")\r\n  @GeneratedValue\r\n  private Integer id;\r\n \r\n  @OneToOne(mappedBy = \"communication\", cascade = CascadeType.ALL)\r\n  private CommunicationDetail communicationDetail;\r\n}\r\n<\/code><\/pre>\n<p>\u591a\u304f\u306e\u5f93\u696d\u54e1\u304c\u540c\u3058\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u5171\u6709\u3067\u304d\u308b\u305f\u3081\u3001\u5f93\u696d\u54e1\u3068\u5f93\u696d\u54e1\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u95a2\u4fc2\u306f\u591a\u5bfe\u4e00\u3067\u3059\u3002\u540c\u3058\u3053\u3068\u306b\u306f @ManyToOne \u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>@Entity\r\n@Table(name = \"employee\")\r\npublic class Employee implements Serializable {\r\n \r\n  @ManyToOne\r\n  @JoinColumn(name = \"statusId\")\r\n  private EmployeeStatus status;\r\n}\r\n<\/code><\/pre>\n<p>@OneToMany\u306e\u5f93\u696d\u54e1\u304b\u3089\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306f\u30011\u5bfe\u591a\u306e\u95a2\u4fc2\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u95a2\u4fc2\u306e\u30aa\u30fc\u30ca\u30fc\u306f\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308a\u3001\u5f93\u696d\u54e1\u306b\u306f\u53cc\u65b9\u5411\u306e\u95a2\u4fc2\u3092\u4f5c\u308b\u305f\u3081\u306b\u300cmappedBy\u300d\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>@Entity\r\n@Table(name = \"employee\")\r\npublic class Employee implements Serializable {\r\n \r\n  @OneToMany(mappedBy = \"employee\", fetch = FetchType.EAGER)\r\n  @OrderBy(\"firstName asc\")\r\n  private Set communications;\r\n}\r\n<\/code><\/pre>\n<p>@PrimaryKeyJoinColumn\u306f\u3001\u540c\u3058\u30d7\u30e9\u30a4\u30de\u30ea\u30ad\u30fc\u3092\u5171\u6709\u3059\u308b\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u95a2\u9023\u4ed8\u3051\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>@Entity\r\n@Table(name = \"employee\")\r\npublic class Employee implements Serializable {\r\n   \r\n  @Id\r\n  @Column(name = \"id\")\r\n  @GeneratedValue\r\n  private int id;\r\n   \r\n  @OneToOne(cascade = CascadeType.MERGE)\r\n  @PrimaryKeyJoinColumn\r\n  private EmployeeDetail employeeDetail;\r\n}\r\n<\/code><\/pre>\n<p>@Entity\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001@JoinColumn\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u30011\u5bfe1\u307e\u305f\u306f\u591a\u5bfe1\u306e\u95a2\u9023\u304c\u3042\u308a\u3001\u5916\u90e8\u30ad\u30fc\u304c\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u3046\u3061\u306e1\u3064\u306b\u3088\u3063\u3066\u4fdd\u6301\u3055\u308c\u308b\u5834\u5408\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>@ManyToOne\r\n@JoinColumn(name = \"statusId\")\r\nprivate EmployeeStatus status;\r\n<\/code><\/pre>\n<p>@JoinTable: @JoinTable\u3068mappedBy\u306f\u3001\u9023\u60f3\u30c6\u30fc\u30d6\u30eb\u3092\u4ecb\u3057\u3066\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306b\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n@MapsId: \u5171\u6709\u30ad\u30fc\u3092\u6301\u30642\u3064\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092\u3001@MapsId\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u6c38\u7d9a\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>@OneToOne\r\n@MapsId\r\n@JoinColumn(name = \"communicationId\")\r\nprivate Communication communication;\r\n<\/code><\/pre>\n<h3>\u7d99\u627f\u30de\u30c3\u30d4\u30f3\u30b0\u306e\u305f\u3081\u306eHibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3<\/h3>\n<p>\u4eca\u5ea6\u306f\u3001Hibernate\u306b\u304a\u3051\u308b\u7d99\u627f\u30de\u30c3\u30d4\u30f3\u30b0\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u7406\u89e3\u3057\u307e\u3057\u3087\u3046\u3002Hibernate\u306f\u3001\u57fa\u672c\u7684\u306a\u7d99\u627f\u30de\u30c3\u30d4\u30f3\u30b0\u6226\u7565\u30923\u3064\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>table per class hierarchy<\/li>\n<li>table per subclass<\/li>\n<li>table per concrete class<\/li>\n<\/ul>\n<p>\u5404\u30bf\u30a4\u30d7\u306b\u3064\u3044\u3066\u3001\u4f8b\u3092\u8003\u3048\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30af\u30e9\u30b9\u968e\u5c64\u3054\u3068\u306e\u30c6\u30fc\u30d6\u30eb &#8211; \u30af\u30e9\u30b9\u968e\u5c64\u3054\u3068\u306e\u30b7\u30f3\u30b0\u30eb\u30c6\u30fc\u30d6\u30eb\u6226\u7565\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@Entity<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@Inheritance(strategy=InheritanceType.SINGLE_TABLE)<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>@DiscriminatorColumn(name=&#8221;cartype&#8221;, discriminatorType=DiscriminatorType.STRING )<\/ol>\n<\/li>\n<\/ol>\n<p>@DiscriminatorValue(&#8220;Car&#8221;)<br \/>\npublic class Car { }<\/p>\n<p>@Entity<br \/>\n@DiscriminatorValue(&#8220;BMW&#8221;)<br \/>\npublic class BMW extends Car { }<\/p>\n<p>\u30af\u30e9\u30b9\/\u30b5\u30d6\u30af\u30e9\u30b9\u3054\u3068\u306e\u30c6\u30fc\u30d6\u30eb &#8211; \u30b5\u30d6\u30af\u30e9\u30b9\u7d50\u5408\u6226\u7565\u3002<br \/>\n@Entity<br \/>\n@Inheritance(strategy=InheritanceType.JOINED)<br \/>\npublic class Ship implements Serializable {}<\/p>\n<p>@Entity<br \/>\n@PrimaryKeyJoinColumn<br \/>\npublic class Titanic extends Ship {}<\/p>\n<p>\u5177\u8c61\u30af\u30e9\u30b9\u3054\u3068\u306e\u30c6\u30fc\u30d6\u30eb\u3002<br \/>\n@Entity<br \/>\n@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)<br \/>\npublic class Aeroplane implements Serializable {}<\/p>\n<p>@DiscriminatorColumn: \u305d\u306e\u540d\u524d\u304b\u3089\u3082\u5206\u304b\u308b\u3088\u3046\u306b\u3001\u3053\u306e\u30ab\u30e9\u30e0\u306f\u8b58\u5225\u5b50\u3067\u3042\u308a\u3001\u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306fSINGLE_TABLE\u304a\u3088\u3073JOINED\u306e\u7d99\u627f\u30de\u30c3\u30d4\u30f3\u30b0\u6226\u7565\u306e\u305f\u3081\u306e\u8b58\u5225\u5b50\u30ab\u30e9\u30e0\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n@Entity<br \/>\n@Inheritance(strategy=InheritanceType.SINGLE_TABLE)<br \/>\n@DiscriminatorColumn(name=&#8221;cartype&#8221;, discriminatorType=DiscriminatorType.STRING )<\/p>\n<p>JPA\u3068Hibernate\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0a\u3067\u3059\u3002\u53c2\u8003\u6587\u732e\uff1aJSR338\u3001Hibernate API\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JPA\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306f\u3001Java\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u3084\u5217\u306a\u3069\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002Hibernate\u306f\u3001JPA\u4ed5\u69d8\u306e\u6700\u3082\u4eba\u6c17\u306e\u3042\u308b\u5b9f\u88c5\u3067\u3042\u308a\u3001\u3044\u304f\u3064\u304b\u306e\u8ffd\u52a0\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/jpa\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3-hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\" \/>\n<meta property=\"og:description\" content=\"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/jpa\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3-hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-04T00:37:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T16:25:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649583daa94e2bdf7bf7b2\/2-0.png\" \/>\n<meta name=\"author\" content=\"\u512a\u6597, \u671d\u967d\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u512a\u6597, \u671d\u967d\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"17\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\",\"name\":\"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-11-04T00:37:23+00:00\",\"dateModified\":\"2025-07-31T16:25:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\"},\"description\":\"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 &#8211; Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28\",\"name\":\"\u512a\u6597, \u671d\u967d\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g\",\"caption\":\"\u512a\u6597, \u671d\u967d\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Blog - Silicon Cloud","description":"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/jpa\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3-hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\/","og_locale":"ja_JP","og_type":"article","og_title":"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3","og_description":"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/jpa\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3-hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-04T00:37:23+00:00","article_modified_time":"2025-07-31T16:25:56+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649583daa94e2bdf7bf7b2\/2-0.png"}],"author":"\u512a\u6597, \u671d\u967d","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u512a\u6597, \u671d\u967d","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"17\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/","name":"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-11-04T00:37:23+00:00","dateModified":"2025-07-31T16:25:56+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28"},"description":"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 - Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"JPA\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3 &#8211; Hibernate\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cab7534c71201607a41f395de14d7d28","name":"\u512a\u6597, \u671d\u967d","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56ecb1d20648a2ff67709eeaa7b6eddeb4d52aca0d46febc7f12bbef507187d0?s=96&d=mm&r=g","caption":"\u512a\u6597, \u671d\u967d"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yutoasahi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/jpa%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3-hibernate%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=657"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":43373,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/657\/revisions\/43373"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}