Giter VIP home page Giter VIP logo

Comments (4)

liefke avatar liefke commented on July 24, 2024

Which strategy do you have in mind?

We can't support all IdentifierGenerator implementations, because some of them need access to an active database session, which is usually not available in Fastnate.

But we could provide a configuration option, where one can define his own "GeneratorFactory" that knows how to deal with the required strategies. For example the uuid strategy could be easily emulated in such a factory.

I will schedule this for the next version, because it is an easy change.

from org.fastnate.

mpribela avatar mpribela commented on July 24, 2024

Thank you for the fast response.

We are referencing our custom class where we overriding methods from PostInsertIdentifierGenerator, Configurable and ExportableProducer.
IdentifierGenerator implementations we are using are IdentityGenerator and SequenceStyleGenerator.

Is this still possible?

from org.fastnate.

liefke avatar liefke commented on July 24, 2024

You will still have to implement the factory which emulates the behavior of your custom generator for Fastnate. With we can't support all I meant especially custom generators.

What you already can do without waiting for me to implement that feature:
Extend GeneratorContext and override getGenerator to return your own implementation of an IdGenerator. You can then initialize the EntityImporter with that context.

from org.fastnate.

mpribela avatar mpribela commented on July 24, 2024

I see. Thank you for your support.

from org.fastnate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.