Say, I have following entities:
@Entity
public class A {
@Id
@GeneratedValue
private Long id;
@Embedded
private B b;
//getters and setters
}
In general that is possible with @JoinColumn annotation. It works also with embeddables.
@OneToMany
@JoinColumn(name="A_ID")
private List<C> cList;
If you are not happy with A_ID name for column given in embeddable, you can override column name in entity A:
@AssociationOverride(name= "cList",
joinColumns = @JoinColumn(name="SOME_NAME_FOR_JOIN_COLUMN_IN_TABLE_C"))
@Embedded
private B b;