|
@ -1,6 +1,6 @@
|
|
|
package com.yihu.jw.mysql.query;
|
|
|
|
|
|
import com.yihu.utils.context.SpringContextUtils;
|
|
|
import com.yihu.jw.lang.SpringContext;
|
|
|
import org.hibernate.Query;
|
|
|
import org.hibernate.Session;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@ -216,11 +216,11 @@ public abstract class BaseJpaService<T, R extends CrudRepository> {
|
|
|
}
|
|
|
|
|
|
public JpaRepository getJpaRepository(){
|
|
|
return (JpaRepository) SpringContextUtils.getService(repoClass);
|
|
|
return (JpaRepository) SpringContext.getService(repoClass);
|
|
|
}
|
|
|
|
|
|
public R getRepository() {
|
|
|
return SpringContextUtils.getService(repoClass);
|
|
|
return SpringContext.getService(repoClass);
|
|
|
}
|
|
|
|
|
|
public Session currentSession() {
|