addClass(Class persistentClass)
Read a mapping as an application resouurce using the convention that a class
named foo.bar.Foo is mapped by a file foo/bar/Foo.hbm.xml
which can be resolved as a classpath resource.

orderAndFillHierarchy

Takes the list of entities annotated with @Entity or @MappedSuperclass and returns them in an
ordered list.

Parameters:

original - The list of all entities annotated with @Entity or @MappedSuperclass

Returns:

Ordered list of entities including superclasses for entities which have any. Class hierachies are
listed bottom up (starting from the top level base class). There is no indication in the list when a new class
(hierarchy) starts.

buildSessionFactory

Instantiate a new SessionFactory, using the properties and
mappings in this configuration. The SessionFactory will be
immutable, so changes made to the Configuration after
building the SessionFactory will not affect it.

addCacheableFile

Add a cached mapping file. A cached file is a serialized representation
of the DOM structure of a particular mapping. It is saved from a previous
call as a file with the name xmlFile + ".bin" where xmlFile is
the name of the original mapping file.
If a cached xmlFile + ".bin" exists and is newer than
xmlFile the ".bin" file will be read directly. Otherwise
xmlFile is read and then serialized to xmlFile + ".bin" for use
the next time.