We can simplify the getting started experience to:
var sessionFactory = new Configuration() .addAnnotatedClasses(Book.class, Author.class) // PostgreSQL .setJdbcUrl("jdbc:postgresql://localhost/example") // Credentials .setCredentials(user, password) // Automatic schema export .setSchemaExportAction(Action.CREATE) // SQL statement logging, formatting, highlighting .showSql(true, true, true) // Create a new SessionFactory .buildSessionFactory();