Spring Framework Database - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework Database class.

This code example shows how to use the following methods:ordinal
	 * @see org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#determineDatabaseDialectClass(org.springframework.orm.jpa.vendor.Database) 
	 */ 
	@Override 
	protected Class<?> determineDatabaseDialectClass(Database database) { 
 
		if (Database.HSQL.equals(database)) { 
			return CustomHsqlDialect.class; 
		} 
 
		return super.determineDatabaseDialectClass(database); 
	} 
 
	public static class CustomHsqlDialect extends HSQLDialect { 
 
		public CustomHsqlDialect() { 
			registerColumnType(Types.BOOLEAN, "boolean"); 
			registerHibernateType(Types.BOOLEAN, "boolean"); 
		} 
	} 
} 

6
CodeRank
See Code Examples for Spring Framework Database Methods: