/** * Affirms if this attribute is an association. */ public final boolean isAssociation() { return fmd.isDeclaredTypePC(); }
/** * Categorizes bindable type represented by this attribute. */ public final BindableType getBindableType() { return fmd.isDeclaredTypePC() ? BindableType.ENTITY_TYPE : BindableType.SINGULAR_ATTRIBUTE; }
/** * Affirms if this attribute is an association. */ public final boolean isAssociation() { return fmd.isDeclaredTypePC(); }
/** * Categorizes bindable type represented by this attribute. */ public final BindableType getBindableType() { return fmd.isDeclaredTypePC() ? BindableType.ENTITY_TYPE : BindableType.SINGULAR_ATTRIBUTE; }
/** * Affirms if this attribute is an association. */ public final boolean isAssociation() { return fmd.isDeclaredTypePC(); }
/** * Categorizes bindable type represented by this attribute. */ public final BindableType getBindableType() { return fmd.isDeclaredTypePC() ? BindableType.ENTITY_TYPE : BindableType.SINGULAR_ATTRIBUTE; }
/** * Affirms if this attribute is an association. */ public final boolean isAssociation() { return fmd.isDeclaredTypePC(); }
/** * Categorizes bindable type represented by this attribute. */ public final BindableType getBindableType() { return fmd.isDeclaredTypePC() ? BindableType.ENTITY_TYPE : BindableType.SINGULAR_ATTRIBUTE; }
/** * Categorizes the attribute. */ public final PersistentAttributeType getPersistentAttributeType() { if (!fmd.isDeclaredTypePC()) return super.getPersistentAttributeType(); if (fmd.getValue().isEmbedded() && fmd.getAssociationType() == 0) { return PersistentAttributeType.EMBEDDED; } return fmd.getMappedByMetaData() == null || !fmd.getType().isAssignableFrom(Collection.class) ? PersistentAttributeType.ONE_TO_ONE : PersistentAttributeType.ONE_TO_MANY; } }
/** * Categorizes the attribute. */ public final PersistentAttributeType getPersistentAttributeType() { if (!fmd.isDeclaredTypePC()) return super.getPersistentAttributeType(); if (fmd.getValue().isEmbedded() && fmd.getAssociationType() == 0) { return PersistentAttributeType.EMBEDDED; } return fmd.getMappedByMetaData() == null || !fmd.getType().isAssignableFrom(Collection.class) ? PersistentAttributeType.ONE_TO_ONE : PersistentAttributeType.ONE_TO_MANY; } }
/** * Categorizes the attribute. */ public final PersistentAttributeType getPersistentAttributeType() { if (!fmd.isDeclaredTypePC()) return super.getPersistentAttributeType(); if (fmd.getValue().isEmbedded() && fmd.getAssociationType() == 0) { return PersistentAttributeType.EMBEDDED; } return fmd.getMappedByMetaData() == null || !fmd.getType().isAssignableFrom(Collection.class) ? PersistentAttributeType.ONE_TO_ONE : PersistentAttributeType.ONE_TO_MANY; } }
/** * Categorizes the attribute. */ public final PersistentAttributeType getPersistentAttributeType() { if (!fmd.isDeclaredTypePC()) return super.getPersistentAttributeType(); if (fmd.getValue().isEmbedded() && fmd.getAssociationType() == 0) { return PersistentAttributeType.EMBEDDED; } return fmd.getMappedByMetaData() == null || !fmd.getType().isAssignableFrom(Collection.class) ? PersistentAttributeType.ONE_TO_ONE : PersistentAttributeType.ONE_TO_MANY; } }
/** * Return the relation type of the given field. */ private static Class getRelationType(FieldMetaData fm) { if (fm.isDeclaredTypePC()) return fm.getDeclaredType(); if (fm.getElement().isDeclaredTypePC()) return fm.getElement().getDeclaredType(); if (fm.getKey().isDeclaredTypePC()) return fm.getKey().getDeclaredType(); return null; }
if (ofsm != null && fmd.isDeclaredTypePC()) { return isLoaded(ofsm, null, pcs) == LoadState.LOADED;
public Class<?> getRelationType() { if (_relationType == Unknown.class) { if (isDeclaredTypePC()) _relationType = getDeclaredType(); else if (getElement().isDeclaredTypePC()) _relationType = getElement().getDeclaredType(); else if (getKey().isDeclaredTypePC()) _relationType = getKey().getDeclaredType(); else _relationType = null; } return _relationType; } private class Unknown{};
public Class<?> getRelationType() { if (_relationType == Unknown.class) { if (isDeclaredTypePC()) _relationType = getDeclaredType(); else if (getElement().isDeclaredTypePC()) _relationType = getElement().getDeclaredType(); else if (getKey().isDeclaredTypePC()) _relationType = getKey().getDeclaredType(); else _relationType = null; } return _relationType; } private class Unknown{};
public Class<?> getRelationType() { if (_relationType == Unknown.class) { if (isDeclaredTypePC()) _relationType = getDeclaredType(); else if (getElement().isDeclaredTypePC()) _relationType = getElement().getDeclaredType(); else if (getKey().isDeclaredTypePC()) _relationType = getKey().getDeclaredType(); else _relationType = null; } return _relationType; } private class Unknown{};
public Class<?> getRelationType() { if (_relationType == Unknown.class) { if (isDeclaredTypePC()) _relationType = getDeclaredType(); else if (getElement().isDeclaredTypePC()) _relationType = getElement().getDeclaredType(); else if (getKey().isDeclaredTypePC()) _relationType = getKey().getDeclaredType(); else _relationType = null; } return _relationType; } private class Unknown{};
if (ofsm != null && fmd.isDeclaredTypePC()) { return isLoaded(ofsm, null, pcs) == LoadState.LOADED;
if (ofsm != null && fmd.isDeclaredTypePC()) { return isLoaded(ofsm, null, pcs) == LoadState.LOADED;