update SessionFactory javadoc

This commit is contained in:
Gavin King 2024-12-11 23:56:36 +01:00
parent 816b29d390
commit 1c93f10adf
1 changed files with 8 additions and 7 deletions

View File

@ -89,9 +89,9 @@ import static org.hibernate.internal.TransactionManagement.manageTransaction;
* used in a sophisticated way by libraries or frameworks to implement generic * used in a sophisticated way by libraries or frameworks to implement generic
* concerns involving entity classes. * concerns involving entity classes.
* <p> * <p>
* When the Metamodel Generator is used, elements of this metamodel may also * When Hibernate Processor is used, elements of this metamodel may also be
* be obtained in a typesafe way, via the generated metamodel classes. For * obtained in a typesafe way, via the generated metamodel classes. For an
* an entity class {@code Book}, the generated {@code Book_} class has: * entity class {@code Book}, the generated {@code Book_} class has:
* <ul> * <ul>
* <li>a single member named {@code class_} of type * <li>a single member named {@code class_} of type
* {@link jakarta.persistence.metamodel.EntityType EntityType&lt;Book&gt;}, * {@link jakarta.persistence.metamodel.EntityType EntityType&lt;Book&gt;},
@ -129,7 +129,8 @@ import static org.hibernate.internal.TransactionManagement.manageTransaction;
* underlying {@code SessionFactory}. * underlying {@code SessionFactory}.
* <p> * <p>
* The very simplest way to obtain a new {@code SessionFactory} is using a * The very simplest way to obtain a new {@code SessionFactory} is using a
* {@link org.hibernate.cfg.Configuration}. * {@link org.hibernate.cfg.Configuration} or
* {@link org.hibernate.jpa.HibernatePersistenceConfiguration}.
* *
* @see Session * @see Session
* @see org.hibernate.cfg.Configuration * @see org.hibernate.cfg.Configuration
@ -139,7 +140,7 @@ import static org.hibernate.internal.TransactionManagement.manageTransaction;
*/ */
public interface SessionFactory extends EntityManagerFactory, Referenceable, Serializable { public interface SessionFactory extends EntityManagerFactory, Referenceable, Serializable {
/** /**
* The JNDI name, used to bind the SessionFactory to JNDI * The JNDI name, used to bind the {@code SessionFactory} to JNDI.
*/ */
String getJndiName(); String getJndiName();
@ -203,7 +204,7 @@ public interface SessionFactory extends EntityManagerFactory, Referenceable, Ser
/** /**
* Open a new stateless session. * Open a new stateless session.
* *
* @return The created stateless session. * @return The new stateless session.
*/ */
StatelessSession openStatelessSession(); StatelessSession openStatelessSession();
@ -213,7 +214,7 @@ public interface SessionFactory extends EntityManagerFactory, Referenceable, Ser
* *
* @param connection Connection provided by the application. * @param connection Connection provided by the application.
* *
* @return The created stateless session. * @return The new stateless session.
*/ */
StatelessSession openStatelessSession(Connection connection); StatelessSession openStatelessSession(Connection connection);