Skip to content

Instantly share code, notes, and snippets.

Michele Vivoda eleumik

Block or report user

Report or block eleumik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@eleumik
eleumik / JsonReaderImpl.java
Created Mar 26, 2017
Johnzon org.apache.johnzon.core.JsonReaderImpl
View JsonReaderImpl.java
@Override
public JsonObject readObject() {
final JsonStructure read = read();
if (false == read instanceof JsonObject) throw new JsonParsingException("Not a JSON Object", parser.getLocation());
return (JsonObject)read;
}
@eleumik
eleumik / HibernateQueryCompatibilityImpl52.java
Created Mar 25, 2017
HibernateQueryCompatibilityImpl52
View HibernateQueryCompatibilityImpl52.java
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import HibernateQueryCompatibility;
public class HibernateQueryCompatibilityImpl52 extends HibernateQueryCompatibility
{
// Warning: There is the same implementation in HibernateQueryCompatibilityImpl
// and HibernateQueryCompatibilityImpl52 because the 5.1-->5.2 upgrade is source
View gist:e40abe01dfc93b231f6ed1803b10842b
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import HibernateQueryCompatibility;
/**
* A class used to obtain an {@link org.hibernate.Query}
* or a {@link org.hibernate.SQLQuery} from any version
* of Hibernate.
@eleumik
eleumik / HibernateQueryCompatibility.j
Created Mar 25, 2017
HibernateQueryCompatibility
View HibernateQueryCompatibility.j
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
/**
* Abstracts the operations on queries
* for compatibility reasons.
* @author michele vivoda
*
*/
You can’t perform that action at this time.