HI,
Kindly suggest me a way using hibernate annotations, to refer unique column names from some other entity.e.g
public class A implements Serializable {
private String id; // this is the primary key for this entity
private String columnA;
private String columnB;
// in this entity i have annotated combination of "columnA" and "columnB" as unique
}
Now i want to refer "columnA" and "columnB" from some other entity, lets say, "EntityB", through annotation. Kindly suggest me some optimized way for doing the same.
Thanks
_________________ Regards,
Gautam
|