private IPropertyDefinition createPropertyDefinition(String propertyName, Type propertyType, ClassMetadata metaData) { IPropertyDefinition propertyDef; if (propertyType.isCollectionType()) { CollectionType colType = (CollectionType) propertyType; CollectionMetadata colMetaData = sessionFactory.getCollectionMetadata(colType.getRole()); propertyDef = new HibernateAnnotationsMixedCollectionPropertyDefinitionImpl(metaData, propertyName, colMetaData); } else { propertyDef = new HibernateAnnotationsMixedPropertyDefinitionImpl(metaData, propertyName); } return propertyDef; }
public CollectionMetadata getCollectionMetadata(String roleName) { return sessionFactoryImplementor.getCollectionMetadata(roleName); }
@Override public CollectionMetadata getCollectionMetadata() { return this; }
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException { return collectionMetadata.get(roleName); }
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException { return delegate.getCollectionMetadata(roleName); }
public CollectionMetadata getCollectionMetadata(String arg0) throws HibernateException { return sessionFactory.getCollectionMetadata(arg0); }
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException { return delegateSessionFactory.getCollectionMetadata(roleName); }
public CollectionMetadata getCollectionMetadata() { return this; }
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException { return getImpl().getCollectionMetadata(roleName); }
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException { return (CollectionMetadata) collectionMetadata.get(roleName); }
/** {@inheritDoc} */ @Override public CollectionMetadata getCollectionMetadata(String roleName) { return null; }
public CollectionMetadata getCollectionMetadata(String roleName) { return getHibernateSessionFactory().getCollectionMetadata(roleName); }
@Override public CollectionMetadata getCollectionMetadata(String s) throws HibernateException { return original.getCollectionMetadata(s); }
public HibernateAnnotationsMixedCollectionPropertyDefinitionImpl(ClassMetadata metaData, String name, CollectionMetadata collectionMetaData) { super(metaData, name); this.collectionMetaData = collectionMetaData; }
/** * Get the {@link CollectionMetadata} associated with the named collection role. * * @param roleName The collection role (in form [owning-entity-name].[collection-property-name]). * * @return The metadata associated with the given collection; may be null if no such * collection was mapped. * * @throws HibernateException Generally null is returned instead of throwing. */ public CollectionMetadata getCollectionMetadata(String roleName);
/** * Get the <tt>CollectionMetadata</tt> associated with the named collection role * * @see org.hibernate.metadata.CollectionMetadata */ public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException;
public CollectionMetadata getCollectionMetadata();