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)
produces a Function that can be used to convert a list of hibernate objects to a list of
model objects that this factory produces
|
abstract M |
buildFrom(H hibernateObject,
Expansions expansions) |
public abstract M buildFrom(H hibernateObject, Expansions expansions)
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.