use of org.dbflute.s2dao.metadata.TnBeanMetaData in project dbflute-core by dbflute.
the class TnRelationRowCreatorExtension method setupRelationKeyValue.
// ===================================================================================
// Relation KeyValue Setup
// =======================
@Override
protected void setupRelationKeyValue(TnRelationRowCreationResource res) {
// /= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
// setup of relation key is handled at all-value setup marked as '#RELKEY'
// so only entity instance creation exists in this method
// = = = = = = = = = =/
final TnRelationPropertyType rpt = res.getRelationPropertyType();
final TnBeanMetaData yourBmd = rpt.getYourBeanMetaData();
if (!res.hasRowInstance()) {
// always no instance here (check just in case)
final DBMeta dbmeta = yourBmd.getDBMeta();
final Object row = newRelationRow(rpt, res.getRelationSelector(), res.getRelationNoSuffix(), dbmeta);
res.setRow(row);
}
}
Aggregations