If we want the relatioship is TestParent.testNo = TestChild.testNo, do not use the identity column "id".
We should specify the columns in mapping file, such as:
<key property-ref="columnName"> is for Parent object
<column name="columnName"> is for Child object
If do not specify the property-ref, the sql would be:
this.ID = this.child.columnName.
If specify the property-ref, the sql would be:
this.columnName = this.child.columnName