app/models/UserSession.java
public SqlRow validateUserSessionRawQuery(String sessionToken) {
		String selectQuery = "SELECT U.id AS user_id,US.id AS session_id FROM users U "
				+ "LEFT JOIN user_session US ON US.user_id = U.id WHERE US.session_token=:sessionToken";
		SqlQuery rawQuery = Ebean.createSqlQuery(selectQuery);
		rawQuery.setParameter("sessionToken", sessionToken);
		return rawQuery.findUnique();
	}
/**
	 * Validate User session
	 * @param sessionToken
	 * @return
	 */
Validate User session
@param sessionToken
@return
Validate User session @param sessionToken @return
public SqlRow validateUserSessionRawQuery(String sessionToken) {
		String selectQuery = "SELECT U.id AS user_id,US.id AS session_id FROM users U "
				+ "LEFT JOIN user_session US ON US.user_id = U.id WHERE US.session_token=:sessionToken";
		SqlQuery rawQuery = Ebean.createSqlQuery(selectQuery);
		rawQuery.setParameter("sessionToken", sessionToken);
		return rawQuery.findUnique();
	}
public SqlRow validateUserSessionRawQuery ( String sessionToken ) { String selectQuery = "SELECT U.id AS user_id,US.id AS session_id FROM users U " + "LEFT JOIN user_session US ON US.user_id = U.id WHERE US.session_token=:sessionToken" ; SqlQuery rawQuery = Ebean . createSqlQuery ( selectQuery ) ; rawQuery . setParameter ( "sessionToken" , sessionToken ) ; return rawQuery . findUnique ( ) ; }
Validate User session
 @param sessionToken
 @return
Validate User session @param sessionToken @return