Class ModelFactory<H,​M>

    • Constructor Detail

      • ModelFactory

        public ModelFactory()
    • Method Detail

      • buildFrom

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

        public final<H,​M> asFunction​(Expansions expansions)
        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
        expansions - - the expansions to apply when converting the hibernate object, be careful these will be expanded on each and every object
        a Function wrapping this factory