Д
Size: a a a
Д
Д
AE
AE
ПФ
ПФ
ПФ
AE
AE
AE
A
TABLE A
...
commonAttribute
TABLE B
...
commonAttribute
SELECT * FROM A JOIN B ON A.commonAttribute = B.commonAttribute
A
@OneToOne
@NotFound(action = NotFoundAction.IGNORE)
@JoinColumn(name = "common_attribute",
referencedColumnName = "common_attribute",
insertable = false, updatable = false,
foreignKey = @javax.persistence
.ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
RP
@OneToOne
@NotFound(action = NotFoundAction.IGNORE)
@JoinColumn(name = "common_attribute",
referencedColumnName = "common_attribute",
insertable = false, updatable = false,
foreignKey = @javax.persistence
.ForeignKey(value = ConstraintMode.NO_CONSTRAINT))