You can find here frequently asked questions about Fastnate.
What types of databases are supported?
Fastnate tries to support the majority of popular databases. For a complete list see the implementations of
GeneratorDialect in the dialect package. If the database of your choice is not available, it is really easy to write your own dialect.
Which JPA implementations are supported?
The first version of Fastnate was tested with Hibernate only, as this is integrated in one of the most popular application servers JBoss/WildFly. But as some details are different in other JPA implementations we plan to support those as well in our issue #1.
Which JPA features are supported?
Fastnate supports nearly all features that are necessary when creating a new project, where you can define your own database model, while it ignores some features that are only necessary in more complex scenarios. Here is a complete list of the SQL relevant annotations and
enum values that are supported in the latest version:
@Convertbelow for restrictions)
@Convert() (only if specified on an attribute with a specific converter, see issue #36)
@EmbeddedId() (only for an embeddable with a single attribute or together with
@MapsId, see issue #2)
@ForeignKey(Fastnate won't check for any ForeignKey constraints)
@IdClass(see issue #2)
@PrimaryKeyJoinColumns(see issue #2)
catalogattributes are ignored for all
Which validators are applied during creation of SQL?
Only a small subset of Bean Validators are applied:
Are mapping files supported?
No, but if you would like to use Fastnate for a project which needs mapping files, there is issue #13 which you can comment on.
Why didn't the import-data task rewrite my SQL file, I've changed something relevant?
The Fastnate import-data maven task is an incremental task. This means that it only starts the SQL generation, if something relevant has changed. How does it know that a relevant change exists? It tries to guess from the following:
- The settings have changed.
- The output file is missing.
- One of the pre-/postfix files has changed.
- One of the files from the configured data folder has changed.
- One of the changed Java files is a DataProvider, Entity, Embeddable or MappedSuperclass