/** * Assert that the user did not try to place a foreign key on this mapping * or placed an implicit foreign key. */ public void assertNoForeignKey(MetaDataContext context, boolean die) { if (_fk == null || isImplicitRelation()) return; Message msg = _loc.get("unexpected-fk", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place a foreign key on this mapping * or placed an implicit foreign key. */ public void assertNoForeignKey(MetaDataContext context, boolean die) { if (_fk == null || isImplicitRelation()) return; Message msg = _loc.get("unexpected-fk", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place a foreign key on this mapping * or placed an implicit foreign key. */ public void assertNoForeignKey(MetaDataContext context, boolean die) { if (_fk == null || isImplicitRelation()) return; Message msg = _loc.get("unexpected-fk", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place a foreign key on this mapping * or placed an implicit foreign key. */ public void assertNoForeignKey(MetaDataContext context, boolean die) { if (_fk == null || isImplicitRelation()) return; Message msg = _loc.get("unexpected-fk", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
_canFK = info.canForeignKey(); _implicitRelation = info.isImplicitRelation(); List<Column> cols = getColumns(); List<Column> icols = info.getColumns();
_canFK = info.canForeignKey(); _implicitRelation = info.isImplicitRelation(); List<Column> cols = getColumns(); List<Column> icols = info.getColumns();
_canFK = info.canForeignKey(); _implicitRelation = info.isImplicitRelation(); List<Column> cols = getColumns(); List<Column> icols = info.getColumns();
_canFK = info.canForeignKey(); _implicitRelation = info.isImplicitRelation(); List<Column> cols = getColumns(); List<Column> icols = info.getColumns();