Skip to content

Instantly share code, notes, and snippets.

View dreab8's full-sized avatar

Andrea Boriero dreab8

View GitHub Profile
@Override
public void doCreation(Metadata metadata, boolean createNamespaces, Dialect dialect, Target... targets)
throws SchemaManagementException {
boolean tryToCreateCatalogs = false;
boolean tryToCreateSchemas = false;
if ( createNamespaces ) {
if ( dialect.canCreateSchema() ) {
tryToCreateSchemas = true;
}
@dreab8
dreab8 / TupleTest.java
Created February 1, 2019 17:17
Query with Tuple in where clause
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.orm.test.query.hql;
import java.util.List;
import javax.persistence.Embeddable;