Top Description Methods
org.hibernate.annotations

public @Interface BatchSize

extends Annotation
Annotations
@Target:TYPE, METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

Defines size for batch loading of collections or lazy entities. For example...
@Entity
@BatchSize(size=100)
class Product {
    ...
}
will initialize up to 100 lazy Product entity proxies at a time.
@OneToMany
@BatchSize(size = 5) /
Set<Product> getProducts() { ... };
will initialize up to 5 lazy collections of products at a time
Authors
Emmanuel Bernard, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public int
size()

Strictly positive integer.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

sizeback to summary
public int size()

Strictly positive integer.