<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>n-kizashi</author_name>
  <author_url>https://blog.hatena.ne.jp/n-kizashi/</author_url>
  <blog_title>Think Not Forever</blog_title>
  <blog_url>https://n-kizashi.hatenadiary.org/</blog_url>
  <categories>
    <anon>S2JDBC</anon>
  </categories>
  <description>うーん。むずかしい。そりゃ、EmployeeテーブルのキーIdに外部キーを張っているProjectテーブルがあったとして、そのProjectテーブルにある意味的に「リーダ」を表すカラムがemployee_idだったらいい。Projectエンティティクラスは、 public class Project { @Id @GeneratedValue public BigDecimal id; public BigDecimal employeeId; @ManyToOne public Employee employee; : とすれば、自動的に多対1を実現してくれる。Joinしたときに、Proje…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fn-kizashi.hatenadiary.org%2Fentry%2F20080930%2F1222778893&quot; title=&quot;＠ManyToOneの指定(解決) - Think Not Forever&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-09-30 21:48:13</published>
  <title>＠ManyToOneの指定(解決)</title>
  <type>rich</type>
  <url>https://n-kizashi.hatenadiary.org/entry/20080930/1222778893</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
