
com.mysema.query.jpa.hibernate.SessionHolder Maven / Gradle / Ivy
/*
* Copyright (c) 2010 Mysema Ltd.
* All rights reserved.
*
*/
package com.mysema.query.jpa.hibernate;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
/**
* Abstraction for different Hibernate Session signatures
*
* @author tiwe
*
*/
public interface SessionHolder {
/**
* Create a JPQL query for the given query string
*
* @param queryString
* @return
*/
Query createQuery(String queryString);
/**
* Create an SQL query for the given query string
*
* @param queryString
* @return
*/
SQLQuery createSQLQuery(String queryString);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy