title: Automatically Add a Prefix to Column Names for @Embeddable Classes
body: <p>I am developing a project in which I am persisting some POJOs by adding Hibernate annotations. One problem I am running into is that code like this fails, as Hibernate tries to map the sub-fields within the <code>Time_T</code> onto the same column (i.e. <code>startTime.sec</code> and <code>stopTime.sec</code> both try to map to the colum <code>sec</code>, causing an error).</p>
  
  <pre><code>@Entity
  public class ExampleClass
  {
    @Id
    long eventId;
  
    Time_T startTime;
    Time_T stopTime;
  }
  
  @Embeddable
  public class Time_T
  {
    int sec;
    int nsec;
  }
  </code></pre>
  
  <p>As there will be many occurrences like this throughout the system, it would be nice if there was an option to automatically append a prefix to the column name (e.g. make the columns be <code>startTime_sec</code>, <code>startTime_nsec</code>, <code>stopTime_sec</code>, <code>stopTime_nsec</code>), without having to apply overrides on a per-field basis. Does Hibernate have this capability, or is there any other reasonable work-around?</p>