Skip to content

Commit

Permalink
Remove duplicate method
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCwy committed May 6, 2024
1 parent 6de4d94 commit 8053c27
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main/java/teammates/common/util/HibernateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,17 +244,6 @@ public static <T extends BaseEntity> T get(Class<T> entityType, Object id) {
return getCurrentSession().get(entityType, id);
}

/**
* Return an instance, whose state may be lazily fetched.
* Id is the only field that is fetched eagerly.
* If there is no such persistent instance, EntityNotFoundException is thrown when the instance state
* is first accessed. This method can be used to increase performance, if it is known that the instance exists
* and fetching of other attributes of the entity is not necessary.
*/
public static <T extends BaseEntity> T getReference(Class<T> entityType, Object id) {
return HibernateUtil.getCurrentSession().getReference(entityType, id);
}

/**
* Return the persistent instance of the given entity class with the given natural id,
* or null if there is no such persistent instance.
Expand Down

0 comments on commit 8053c27

Please sign in to comment.