jodd-db/src/main/java/jodd/db/oom/sqlgen/chunks/SqlChunk.java
protected DbEntityDescriptor lookupType(final Class entity) {
		final DbEntityDescriptor ded = dbEntityManager.lookupType(entity);
		if (ded == null) {
			throw new DbSqlBuilderException("Invalid or not-persistent entity: " + entity.getName());
		}
		return ded;
	}
protected DbEntityDescriptor lookupType(final Class entity) {
		final DbEntityDescriptor ded = dbEntityManager.lookupType(entity);
		if (ded == null) {
			throw new DbSqlBuilderException("Invalid or not-persistent entity: " + entity.getName());
		}
		return ded;
	}
Lookups for entity name and throws an exception if entity type is invalid.