This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.hibernate.Query; | |
import org.hibernate.SQLQuery; | |
import org.hibernate.Session; | |
/** | |
* Abstracts the operations on queries | |
* for compatibility reasons. | |
* @author michele vivoda | |
* | |
*/ |