title: Can I save only the name of the File class in java and hibernate?
body: <p>Can I save <code>File</code> class as a <code>VARCHAR</code>, because I want to save a real file on a disc and save only filename in database as a <code>VARCHAR</code>. Maybe there is an annotation for example as</p>
  <pre class="lang-java prettyprint-override"><code>@SaveAsString
  private File file;
  </code></pre>
  <p>I'am using PostgreSQL and by default it saves <code>File</code> class as a <code>bytea</code> datatype.</p>