jaxio / celerio-angular-quickstart

Generate an Angular 5 CRUD application from an existing database schema (we provide a sample one)
Apache License 2.0
479 stars 138 forks source link

How to restrict generate-sources #19

Closed jdanosborne closed 7 years ago

jdanosborne commented 7 years ago

Is it possible to restrict the tables that get processed when reversing a schema? Or would the best approach be simply to edit the generated metada.xml file to remove the unwanted tables?

TIA

Dan

nromanetti commented 7 years ago

check the celerio-maven-plugin.xml file... you can exclude some tables in the generation phase (tables are reversed but celerio do not use them at generation phase)...

    <!-- Which tables are used for generation -->
    <tables>
        <!-- <table include="false" pattern="*_AUDIT"/> -->
        <table include="false" pattern="jhi_persistent_*"/>
    </tables>

If you want to also not reverse some tables, you can configure it in the pom.xml check the end of this page: http://www.jaxio.com/documentation/celerio/extraction.html look for jdbcTableNamePatterns

jdanosborne commented 7 years ago

That's perfect - many thanks