Hibernate ORM VarArgsSQLFunction - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM VarArgsSQLFunction class.

This code example shows how to use the following methods:
		registerColumnType(Types.CLOB, "clob");
		registerColumnType(Types.BOOLEAN, "integer");
 
		NullableType stringType = new StringType();
		NullableType integerType = new IntegerType();
		registerFunction("concat", new VarArgsSQLFunction(stringType, "", "||", ""));
		registerFunction("mod", new SQLFunctionTemplate(integerType, "?1 % ?2"));
		registerFunction("substr", new StandardSQLFunction("substr", stringType));
		registerFunction("substring", new StandardSQLFunction("substr", stringType));
	} 
 
	public boolean supportsIdentityColumns() { 
		return true; 
	} 
 
	/* 
	 public boolean supportsInsertSelectIdentity() { 
	 return true; // As specify in NHibernate dialect 
	 } 
	 */ 
4
CodeRank
This code example shows how to use the following methods:
		getDefaultProperties().setProperty(Environment.STATEMENT_BATCH_SIZE, NO_BATCH);
	} 
 
	public String getAddColumnString() {
		return "add"; 
	} 
 
	public String getSequenceNextValString(String sequenceName) {
		return "select " + getSelectSequenceNextValString( sequenceName ) + " from RDB$DATABASE";
	} 
 
	public String getSelectSequenceNextValString(String sequenceName) {
		return "gen_id( " + sequenceName + ", 1 )";
	} 
 
	public String getCreateSequenceString(String sequenceName) {
		return "create generator " + sequenceName;
	} 
 
	public String getDropSequenceString(String sequenceName) {
4
CodeRank