title: ManyToOne relationship with a String field
body: <p>I have two classes: <code>TranscriptionService</code> and <code>TranscriptionConfig</code>. </p>
  
  <p><code>TranscriptionConfig</code> has a <code>serviceName</code> variable, that is a string, with setters and getters.</p>
  
  <p><code>TranscriptionService</code> has no variables or references in the class to <code>TranscriptionConfig</code>.</p>
  
  <p>There are two database tables: <code>transcriptionConfig</code> and <code>transcriptionServices</code>. <code>transcriptionConfig</code> has a foreign key between its field <code>serviceName</code>, and <code>name</code> inside <code>transcriptionServices</code>.</p>
  
  <p>An admin should be able to set the string value of <code>serviceName</code> inside <code>transcriptionConfig</code>. This then references the equivalent string inside <code>name</code> in <code>transcriptionServices</code>. The <code>transcriptionServices</code> entries in the database are pre defined manually, so they never need to be set using an object.</p>
  
  <p>My current hibernate code inside <code>transcriptionConfig</code> for the <code>serviceName</code> is as follows:</p>
  
  <pre><code>@ManyToOne
  @JoinColumn(name = "serviceName", nullable = false)
  private String transcriptionService;
  </code></pre>
  
  <p>However, it will not allow me to do this, as a <code>String</code> is not an entity. I have tried adding <code>target-entity</code> to no avail.</p>
  
  <p>It seems to have a <code>manyToOne</code> relationship, it would need to have an instance of the <code>TranscriptionService</code> class, but I do not want <code>transcriptionConfig</code> to contain this object. It just needs a reference with the names. </p>
  
  <p>How I can use this <code>ManyToOne</code> relationship, but just pass around the string for the name?</p>