H - M - public abstract class ModelFactory<H,M> extends Object
Uses expansions to only include requested properties in the model objects produced. The expansions use property names of the API model objects.
| Constructor and Description |
|---|
ModelFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Function<H,M> |
asFunction(Expansions expansions)
Deprecated.
since 6.0.0 use buildFrom or asListFunction instead
|
abstract M |
buildFrom(H hibernateObject,
Expansions expansions) |
Iterable<M> |
buildFrom(Iterable<? extends H> hibernateObjects,
Expansions expansions) |
public abstract M buildFrom(H hibernateObject, Expansions expansions)
public Iterable<M> buildFrom(Iterable<? extends H> hibernateObjects, Expansions expansions)
@Deprecated public final com.google.common.base.Function<H,M> asFunction(Expansions expansions)
expansions - - the expansions to apply when converting the hibernate object, be careful these will be
expanded on each and every objectCopyright © 2003–2016 Atlassian. All rights reserved.