* Constructs a new Database that uses given {@link TransactionManager} and {@link Dialect}.
*/
public Database(@NotNull TransactionManager transactionManager, @NotNull Dialect dialect) {
this.transactionManager = requireNonNull(transactionManager);
this.dialect = requireNonNull(dialect);
this.instantiatorRegistry = new DefaultInstantiatorRegistry(dialect);
dialect.registerTypeConversions(instantiatorRegistry.getTypeConversionRegistry());
}