这样的话,你可以到java api中去看一下啦,1。5的版本也行啦,可以看一下啦,这样在这说,也说不明白呀!

解决方案 »

  1.   

    getAllClassMetadata
    public Map getAllClassMetadata()
                            throws HibernateExceptionGet all ClassMetadata as a Map from entityname String to metadata object Returns:
    a map from String an entity name to ClassMetaData 
    Throws: 
    HibernateException
    Since: 
    3.0 changed key from Class to String 
    See Also:
    ClassMetadata--------------------------------------------------------------------------------getAllCollectionMetadata
    public Map getAllCollectionMetadata()
                                 throws HibernateExceptionGet all CollectionMetadata as a Map from role name to metadata object Returns:
    a map from String to CollectionMetadata 
    Throws: 
    HibernateException
    See Also:
    CollectionMetadata
      

  2.   

    getClassMetadata
    public ClassMetadata getClassMetadata(String entityName)
                                   throws HibernateExceptionGet the ClassMetadata associated with the given entity name Throws: 
    HibernateException
    Since: 
    3.0 
    See Also:
    ClassMetadata--------------------------------------------------------------------------------getCollectionMetadata
    public CollectionMetadata getCollectionMetadata(String roleName)
                                             throws HibernateExceptionGet the CollectionMetadata associated with the named collection role Throws: 
    HibernateException
    See Also:
    CollectionMetadata