Skip to content

Instantly share code, notes, and snippets.

ymartin59 /
Created April 1, 2014 13:42
IterableListScrollableResults<E> is a partial wrapper view as a List<E> on an Hibernate ScrollableResults. When an existing code process a large amount of Hibernate entities as a List<E>, it allows to work with data in stream without a large code refactoring.
import java.util.AbstractList;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.NoSuchElementException;
import org.hibernate.ScrollableResults;
import org.hibernate.Session;
* A List<E> partial wrapper view on an Hibernate ScrollableResults.
mythosil /
Created September 6, 2013 02:42
bean-name-generator for annotated classes. generates FQDN bean name.
package com.mythosil.spring.context;
import java.beans.Introspector;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.AnnotationBeanNameGenerator;
public class FQDNAnnotationBeanNameGenerator extends AnnotationBeanNameGenerator {
* Derive a bean name from the given bean definition.