List of usage examples for org.hibernate.type.descriptor.sql VarcharTypeDescriptor INSTANCE
VarcharTypeDescriptor INSTANCE
To view the source code for org.hibernate.type.descriptor.sql VarcharTypeDescriptor INSTANCE.
Click Source Link
From source file:org.bonitasoft.engine.persistence.PostgresMaterializedClobType.java
License:Open Source License
public PostgresMaterializedClobType() { // forcing VARCHAR to String as there is no real CLOB in PSQL super(VarcharTypeDescriptor.INSTANCE, StringTypeDescriptor.INSTANCE); }
From source file:org.bonitasoft.engine.persistence.PostgresXMLType.java
License:Open Source License
public PostgresXMLType() { // forcing VARCHAR to String as there is no real CLOB in PSQL super(VarcharTypeDescriptor.INSTANCE, new XMLTypeDescriptor()); }
From source file:org.jasig.ssp.util.uuid.UUIDCustomType.java
License:Apache License
/** * Initialize the configured dialect. Must be called before Hibernate is * initialized./*from w w w. j a v a 2 s. com*/ * * @param dialect * DBMS Hibernate dialect. * * <p> * Supported dialects: * <ul> * <li><code>org.hibernate.dialect.PostgreSQLDialect</code></li> * <li><code>org.hibernate.dialect.SQLServerDialect</code></li> * <li><code>org.hibernate.dialect.SQLServer2008Dialect</code></li> * </ul> * @throws UnsupportedOperationException * If the dialect is not in the supported list. */ public static void initSettings(@NotNull final String dialect) { if (!StringUtils.isNotBlank(dialect)) { throw new IllegalArgumentException("Dialect must be specified."); } if ("org.hibernate.dialect.PostgreSQLDialect".equalsIgnoreCase(dialect)) { sqlDescription = PostgresUUIDType.PostgresUUIDSqlTypeDescriptor.INSTANCE; } else { final Matcher matcher = Pattern.compile(".*SQLServer(?:|2005|2008)Dialect", Pattern.CASE_INSENSITIVE) .matcher(dialect); if (matcher.matches()) { sqlDescription = VarcharTypeDescriptor.INSTANCE; } else { throw new UnsupportedOperationException("Unsupported database dialect! (" + dialect + ")"); } } }
From source file:org.jasig.ssp.util.uuid.UUIDCustomTypeTest.java
License:Apache License
private void expectSqlServerTypeDescriptor() { UUIDCustomType uuidCustomType = new UUIDCustomType(); SqlTypeDescriptor sqlTypeDescriptor = uuidCustomType.getSqlTypeDescriptor(); assertEquals(VarcharTypeDescriptor.INSTANCE, sqlTypeDescriptor); }
From source file:org.jboss.as.hibernate.test.BitSetType.java
License:Open Source License
public BitSetType() { super(VarcharTypeDescriptor.INSTANCE, BitSetTypeDescriptor.INSTANCE); }