two minor improvements to javadoc

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-04-18 09:49:45 +02:00
parent a5b8a39d54
commit 5948ad1245
2 changed files with 5 additions and 3 deletions

View File

@ -806,7 +806,7 @@ public interface Session extends SharedSessionContract, EntityManager {
/**
* Obtain a lock on the given managed instance associated with this session,
* using the given {@link LockOptions lock options}.
* using the given {@linkplain LockOptions lock options}.
* <p>
* This operation cascades to associated instances if the association is
* mapped with {@link org.hibernate.annotations.CascadeType#LOCK}.
@ -839,7 +839,7 @@ public interface Session extends SharedSessionContract, EntityManager {
void lock(String entityName, Object object, LockMode lockMode);
/**
* Build a new {@link LockRequest lock request} that specifies:
* Build a new {@linkplain LockRequest lock request} that specifies:
* <ul>
* <li>the {@link LockMode} to use,
* <li>the {@linkplain LockRequest#setTimeOut(int) pessimistic lock timeout},

View File

@ -102,7 +102,9 @@ public interface StatelessSession extends SharedSessionContract {
void delete(String entityName, Object entity);
/**
* Use a SQL {@code merge into} statement to perform an upsert.
* Use a SQL {@code merge into} statement to perform an upsert,
* that is, to insert the record if it does not exist, or update
* it if it already exists.
*
* @param entity a detached entity instance
* @throws TransientObjectException is the entity is transient