Comments (4)
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.
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.
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.
I see. Thank you for your support.
from org.fastnate.
Related Issues (20)
- ArrayIndexOutOfBoundsException when using SINGLE_TABLE and ConnectedStatementsWriter HOT 1
- Support @Resource in DataProvider HOT 1
- Support spatial properties
- Support java 8 local time api HOT 2
- ConnectedStatementsWriter does not respect autocommit=false of given connectionn HOT 1
- Support for Hibernate property "globally_quoted_identifiers" HOT 1
- Fastnate generating table even if Hibernate does not. HOT 2
- Attribute name bug on mapped property HOT 3
- InheritanceType.JOINED bug HOT 5
- AssociationOverride with JoinColumns defined in the JoinTable are ignored HOT 1
- Schema name doesn't get appended in the SQL statements HOT 6
- Fastnate - Spring Boot Generate the whole schema based on the entities HOT 6
- Support to create Liquibase XML file HOT 1
- Support Embeddable in Collection of Embeddables HOT 1
- [Question] Is there anyway to do it using gradle instead? HOT 1
- [Question] Is it possible not to generate te relations? HOT 1
- DiscriminatorColumn+ DiscriminatorValue: A value for B_TYP was assigned twice HOT 2
- [Question] Is it possible to force write entities which already have an id? HOT 4
- Can't override table of an @ElementCollection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org.fastnate.