/** * Initialize mapping. Logs init message by default. */ protected void initializeMapping() { Log log = _repos.getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("init-mapping", this + "@" + System.identityHashCode(this))); }
/** * Initialize mapping. Logs init message by default. */ protected void initializeMapping() { Log log = _repos.getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("init-mapping", this + "@" + System.identityHashCode(this))); }
/** * Initialize mapping. Logs init message by default. */ protected void initializeMapping() { Log log = _repos.getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("init-mapping", this + "@" + System.identityHashCode(this))); }
/** * Initialize mapping. Logs init message by default. */ protected void initializeMapping() { Log log = _repos.getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("init-mapping", this + "@" + System.identityHashCode(this))); }
/** * Resolve mapping data. Logs resolve message and resolves super by default. */ protected void resolveMapping(boolean runtime) { Log log = _repos.getLog(); if (log.isTraceEnabled()) log.trace(_loc.get("resolve-mapping", this + "@" + System.identityHashCode(this))); // make sure superclass is resolved first ClassMetaData sup = getPCSuperclassMetaData(); if (sup != null) sup.resolve(MODE_MAPPING); }
/** * Assert that the user did not try to place an index on this mapping. */ public void assertNoIndex(MetaDataContext context, boolean die) { if (_idx == null) return; Message msg = _loc.get("unexpected-index", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place a unique constraint on this * mapping. */ public void assertNoUnique(MetaDataContext context, boolean die) { if (_unq == null) return; Message msg = _loc.get("unexpected-unique", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place a unique constraint on this * mapping. */ public void assertNoUnique(MetaDataContext context, boolean die) { if (_unq == null) return; Message msg = _loc.get("unexpected-unique", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place a unique constraint on this * mapping. */ public void assertNoUnique(MetaDataContext context, boolean die) { if (_unq == null) return; Message msg = _loc.get("unexpected-unique", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place an index on this mapping. */ public void assertNoIndex(MetaDataContext context, boolean die) { if (_idx == null) return; Message msg = _loc.get("unexpected-index", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place a unique constraint on this * mapping. */ public void assertNoUnique(MetaDataContext context, boolean die) { if (_unq == null) return; Message msg = _loc.get("unexpected-unique", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place an index on this mapping. */ public void assertNoIndex(MetaDataContext context, boolean die) { if (_idx == null) return; Message msg = _loc.get("unexpected-index", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place a unique constraint on this * mapping. */ public void assertNoUnique(MetaDataContext context, boolean die) { if (_unq == null) return; Message msg = _loc.get("unexpected-unique", context); if (die) throw new MetaDataException(msg); context.getRepository().getLog().warn(msg); }
/** * Assert that the user did not try to place an index on this mapping. */ public void assertNoIndex(MetaDataContext context, boolean die) { if (_idx == null) return; Message msg = _loc.get("unexpected-index", 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); }
/** * 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); }
public void initialize() { Column order = field.getOrderColumn(); _orderInsert = field.getOrderColumnIO().isInsertable(order, false); _orderUpdate = field.getOrderColumnIO().isUpdatable(order, false); ValueMapping elem = field.getElementMapping(); Log log = field.getRepository().getLog(); if (field.getMappedBy() == null && elem.getUseClassCriteria() && log.isWarnEnabled()) { ForeignKey fk = elem.getForeignKey(); if (elem.getColumnIO().isAnyUpdatable(fk, false)) log.warn(_loc.get("class-crit-owner", field)); } }
public void initialize() { Column order = field.getOrderColumn(); _orderInsert = field.getOrderColumnIO().isInsertable(order, false); _orderUpdate = field.getOrderColumnIO().isUpdatable(order, false); ValueMapping elem = field.getElementMapping(); Log log = field.getRepository().getLog(); if (field.getMappedBy() == null && elem.getUseClassCriteria() && log.isWarnEnabled()) { ForeignKey fk = elem.getForeignKey(); if (elem.getColumnIO().isAnyUpdatable(fk, false)) log.warn(_loc.get("class-crit-owner", field)); } }