8989 * used in a sophisticated way by libraries or frameworks to implement generic
9090 * concerns involving entity classes.
9191 * <p>
92- * When the Metamodel Generator is used, elements of this metamodel may also
93- * be obtained in a typesafe way, via the generated metamodel classes. For
94- * an entity class {@code Book}, the generated {@code Book_} class has:
92+ * When Hibernate Processor is used, elements of this metamodel may also be
93+ * obtained in a typesafe way, via the generated metamodel classes. For an
94+ * entity class {@code Book}, the generated {@code Book_} class has:
9595 * <ul>
9696 * <li>a single member named {@code class_} of type
9797 * {@link jakarta.persistence.metamodel.EntityType EntityType<Book>},
129129 * underlying {@code SessionFactory}.
130130 * <p>
131131 * The very simplest way to obtain a new {@code SessionFactory} is using a
132- * {@link org.hibernate.cfg.Configuration}.
132+ * {@link org.hibernate.cfg.Configuration} or
133+ * {@link org.hibernate.jpa.HibernatePersistenceConfiguration}.
133134 *
134135 * @see Session
135136 * @see org.hibernate.cfg.Configuration
139140 */
140141public interface SessionFactory extends EntityManagerFactory , Referenceable , Serializable {
141142 /**
142- * The JNDI name, used to bind the SessionFactory to JNDI
143+ * The JNDI name, used to bind the {@code SessionFactory} to JNDI.
143144 */
144145 String getJndiName ();
145146
@@ -203,7 +204,7 @@ public interface SessionFactory extends EntityManagerFactory, Referenceable, Ser
203204 /**
204205 * Open a new stateless session.
205206 *
206- * @return The created stateless session.
207+ * @return The new stateless session.
207208 */
208209 StatelessSession openStatelessSession ();
209210
@@ -213,7 +214,7 @@ public interface SessionFactory extends EntityManagerFactory, Referenceable, Ser
213214 *
214215 * @param connection Connection provided by the application.
215216 *
216- * @return The created stateless session.
217+ * @return The new stateless session.
217218 */
218219 StatelessSession openStatelessSession (Connection connection );
219220
0 commit comments