Quote:
Code:
@GeneratedValue(generator="foreign")
@GenericGenerator(name="foreign", strategy = "foreign", parameters={
@Parameter(name="property", value="t_deal")})
@Column(name="deal_id")
public long getDealId() {
return dealId;
}
:
:
@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.EAGER)
@JoinColumn(name="deal_id", unique=true)
public DealBean getDealBean() {
return dealBean;
}
I do not really understand, what you are trying to accomplish with these two mappings in DealDetailsBean. At the first sight, I would say they are contradictory as they both use the same name for column (or was that on purpose?).
Cheers ngomo