Code example for Type

Methods: getHashCode

0
			final SessionFactoryImplementor factory) {
		this.key = id;
		this.type = type;
		this.entityOrRoleName = entityOrRoleName;
		this.tenantId = tenantId;
		this.hashCode = type.getHashCode( key, factory );
	} 
 
	@Override 
	public String toString() {
		// Mainly for OSCache 
		return entityOrRoleName + '#' + key.toString();//"CacheKey#" + type.toString(key, sf);
	} 
 
	@Override 
	public boolean equals(Object other) { 
		if ( !(other instanceof CacheKey) ) {
			return false; 
		} 
		CacheKey that = (CacheKey) other;
Experience pair programming with AI  Get Codota for Java