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 5.10 use buildFrom or asListFunction instead
|
abstract M |
buildFrom(H hibernateObject,
Expansions expansions) |
<HC extends H> |
buildFrom(Iterable<HC> hibernateObjects,
Expansions expansions) |
public abstract M buildFrom(H hibernateObject, Expansions expansions)
public <HC extends H> Iterable<M> buildFrom(Iterable<HC> 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–2022 Atlassian. All rights reserved.