<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>letitride</author_name>
  <author_url>https://blog.hatena.ne.jp/letitride/</author_url>
  <blog_title>追憶行</blog_title>
  <blog_url>https://www.letitride.jp/</blog_url>
  <categories>
    <anon>テック</anon>
    <anon>テック-playframework</anon>
    <anon>テック-scala</anon>
  </categories>
  <description>PlayでAnornを使用していて、RepositoryクラスをDIした時のメモ。といってもAnormは関係ない。 Repositoryクラス 差し替え可能であること前提で抽象化するようtraitを用意しておく。 Trait trait ShopRepositoryTrait { def withBegin():ShopRepository def getList():List[String] def add():Option[Long] def delete():Option[Int] } Repository Anormを使用していれば、DatabaseはすでにDIコンテナに入っているはず…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.letitride.jp%2Fentry%2F2020%2F06%2F02%2F094138&quot; title=&quot;Playframework データアクセスするRepositoryクラスのDependencyInjection - 追憶行&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>2020-06-02 09:41:38</published>
  <title>Playframework データアクセスするRepositoryクラスのDependencyInjection</title>
  <type>rich</type>
  <url>https://www.letitride.jp/entry/2020/06/02/094138</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
