1. Create Configuration and set properties
2. Add annotated entity classes
3. Build SessionFactory
4. Open sessions from SessionFactory
This allows configuring Hibernate entirely through Java code without using any XML configuration files. The Configuration is used to define mappings, connections and other settings programmatically.