org.hibernate.ogm.OgmSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-ogm-core Show documentation
Show all versions of hibernate-ogm-core Show documentation
Persist data in a grid rather than a relational database
/*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.ogm;
import org.hibernate.Session;
import org.hibernate.ogm.query.NoSQLQuery;
/**
* Session-level functionality specific to Hibernate OGM.
*
* @author Gunnar Morling
*/
public interface OgmSession extends Session {
/**
* Creates a native NoSQL query.
*
* @param nativeQuery A native query, in the format supported by the current data store.
* @return A native NoSQL query.
*/
NoSQLQuery createNativeQuery(String nativeQuery);
/**
* Use {@link OgmSession#createNativeQuery(String)} instead.
*/
@Override
@Deprecated
NoSQLQuery createSQLQuery(String queryString);
@Override
OgmSessionFactory getSessionFactory();
}