title: One to one realationship with ormlite
body: <p>How to implement one to one table relationship in Ormlite? Let’s say I have entities <strong>Country</strong> and <strong>Capital</strong>.</p>
  
  <pre><code>@DatabaseTable(tableName = "countries")
  public class Country {
  
      @DatabaseField(generatedId = true)
      int id;
  
      @DatabaseField
      String name;
  
      public Country() {
      }
  
  }
  
  @DatabaseTable(tableName = "capitals")
  public class Capital {
  
      @DatabaseField(generatedId = true)
      int id;
  
      @DatabaseField
      String name;
  
      public Capital() {
      }
  
  }
  </code></pre>
  
  <p>Is it true that I need to have this field in <strong>Country</strong> class?</p>
  
  <pre><code>@DatabaseField(foreign = true)
  Capital capital;
  </code></pre>
  
  <p>...and this field in <strong>Capital</strong> class?</p>
  
  <pre><code>@DatabaseField
  Country country;
  </code></pre>