title: hibernate @JoinColumnsOrFormulas annotation with @id
body: <p>I have entity with 2 id and one has annotation @JoinColumnsOrFormulas </p>
  
  <pre><code>@AccessType("property")
  @Id
  @NotFound(action=NotFoundAction.IGNORE)
  @ManyToOne(optional = false, fetch = FetchType.LAZY)
  @JoinColumnsOrFormulas({
          @JoinColumnOrFormula( column=@JoinColumn(name="RE",  referencedColumnName="ret")),
          @JoinColumnOrFormula( formula=@JoinFormula(value="ret2", referencedColumnName="rete"))
  })
  @Fetch(FetchMode.SELECT)
  private rete ret;
  </code></pre>
  
  <p>but it throws exception:</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource... Invocation of init method failed; nested exception is java.lang.ClassCastException: org.hibernate.mapping.Formula cannot be cast to org.hibernate.mapping.Column
  at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  </code></pre>
  
  <p>Unable to @id annotation with @JoinColumnsOrFormulas???</p>