Class ModelFactory<H,​M>

    • Constructor Detail

      • ModelFactory

        public ModelFactory()
    • Method Detail

      • buildFrom

        public abstract M buildFrom​(H hibernateObject,
                                    Expansions expansions)
      • asFunction

        @Deprecated
        public final com.google.common.base.Function<H,​M> asFunction​(Expansions expansions)
        Deprecated.
        since 5.10 use buildFrom or asListFunction instead
        Produces a Function that can be used to convert a list of hibernate objects to a list of model objects that this factory produces
        Parameters:
        expansions - - the expansions to apply when converting the hibernate object, be careful these will be expanded on each and every object
        Returns:
        a Function wrapping this factory