Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix misspelled method #95

Merged
merged 1 commit into from
Dec 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,6 @@ class HibernateGormInstanceApi<D> extends AbstractHibernateGormInstanceApi<D> {

@Override
void setObjectToReadOnly(Object target) {
GrailsHibernateUtil.setObjectToReadyOnly(target, sessionFactory)
GrailsHibernateUtil.setObjectToReadOnly(target, sessionFactory)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public static FetchMode getFetchMode(Object object) {
* @param target The target object
* @param sessionFactory The SessionFactory instance
*/
public static void setObjectToReadyOnly(Object target, SessionFactory sessionFactory) {
public static void setObjectToReadOnly(Object target, SessionFactory sessionFactory) {
Object resource = TransactionSynchronizationManager.getResource(sessionFactory);
if(resource != null) {
Session session = sessionFactory.getCurrentSession();
Expand All @@ -319,7 +319,7 @@ private static boolean canModifyReadWriteState(Session session, Object target) {
/**
* Sets the target object to read-write, allowing Hibernate to dirty check it and auto-flush changes.
*
* @see #setObjectToReadyOnly(Object, org.hibernate.SessionFactory)
* @see #setObjectToReadOnly(Object, org.hibernate.SessionFactory)
*
* @param target The target object
* @param sessionFactory The SessionFactory instance
Expand Down