QueryDSL генерирует сущность по всем схемам в БД

Я использую QueryDSL 4.1.4, Maven 3.5.0, MySQL Connector J 6.0.5, версию MySQL Server: 5.7.20-0ubuntu0.17.04.1 (Ubuntu)

$ {jdbc.url} = jdbc: mysql: // localhost: 3306 / proj? useUnicode = true & characterEncoding = utf8 & serverTimezone = Европа / Москва & nullNamePatternMatchesAll = true

             <plugin>
                <groupId>com.querydsl</groupId>
                <artifactId>querydsl-maven-plugin</artifactId>
                <version>${querydsl.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>export</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <jdbcDriver>${jdbc.driver}</jdbcDriver>
                    <jdbcUrl>${jdbc.url}</jdbcUrl>
                    <jdbcUser>${jdbc.username}</jdbcUser>
                    <jdbcPassword>${jdbc.password}</jdbcPassword>
                    <packageName>com.test.server.domain</packageName>
                    <targetFolder>${project.basedir}/target/generated-sources/java</targetFolder>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>${mysql-connector.version}</version>
                    </dependency>
                </dependencies>
            </plugin>

После выполнения mvn-плагинов у меня есть Q-объекты для всех моих схем из mysql (test, mysql, information_schema и т. Д.).

[INFO] Exported x$ps_digest_95th_percentile_by_avg_us successfully
[INFO] Exported x$ps_digest_avg_latency_distribution successfully
[INFO] Exported x$ps_schema_table_statistics_io successfully
[INFO] Exported x$schema_flattened_keys successfully
[INFO] Exported x$schema_index_statistics successfully
[INFO] Exported x$schema_table_lock_waits successfully
[INFO] Exported x$schema_table_statistics successfully
[INFO] Exported x$schema_table_statistics_with_buffer successfully
[INFO] Exported x$schema_tables_with_full_table_scans successfully
[INFO] Exported x$session successfully
[INFO] Exported x$statement_analysis successfully
[INFO] Exported x$statements_with_errors_or_warnings successfully
[INFO] Exported x$statements_with_full_table_scans successfully
[INFO] Exported x$statements_with_runtimes_in_95th_percentile successfully
[INFO] Exported x$statements_with_sorting successfully
[INFO] Exported x$statements_with_temp_tables successfully
[INFO] Exported x$user_summary successfully
[INFO] Exported x$user_summary_by_file_io successfully
[INFO] Exported x$user_summary_by_file_io_type successfully
[INFO] Exported x$user_summary_by_stages successfully
[INFO] Exported x$user_summary_by_statement_latency successfully
[INFO] Exported x$user_summary_by_statement_type successfully
[INFO] Exported x$wait_classes_global_by_avg_latency successfully
[INFO] Exported x$wait_classes_global_by_latency successfully
[INFO] Exported x$waits_by_host_by_latency successfully
[INFO] Exported x$waits_by_user_by_latency successfully
[INFO] Exported x$waits_global_by_latency successfully
...

schemaPattern со значением равно моей базе данных тоже не работает. Как я могу указать конкретную базу данных?

java,mysql,maven,querydsl,

0

Ответов: 0

QueryDSL генерирует сущность по всем схемам в БД

Я использую QueryDSL 4.1.4, Maven 3.5.0, MySQL Connector J 6.0.5, версию MySQL Server: 5.7.20-0ubuntu0.17.04.1 (Ubuntu)

$ {jdbc.url} = jdbc: mysql: // localhost: 3306 / proj? useUnicode = true & characterEncoding = utf8 & serverTimezone = Европа / Москва & nullNamePatternMatchesAll = true

             <plugin>
                <groupId>com.querydsl</groupId>
                <artifactId>querydsl-maven-plugin</artifactId>
                <version>${querydsl.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>export</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <jdbcDriver>${jdbc.driver}</jdbcDriver>
                    <jdbcUrl>${jdbc.url}</jdbcUrl>
                    <jdbcUser>${jdbc.username}</jdbcUser>
                    <jdbcPassword>${jdbc.password}</jdbcPassword>
                    <packageName>com.test.server.domain</packageName>
                    <targetFolder>${project.basedir}/target/generated-sources/java</targetFolder>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>${mysql-connector.version}</version>
                    </dependency>
                </dependencies>
            </plugin>

После выполнения mvn-плагинов у меня есть Q-объекты для всех моих схем из mysql (test, mysql, information_schema и т. Д.).

[INFO] Exported x$ps_digest_95th_percentile_by_avg_us successfully
[INFO] Exported x$ps_digest_avg_latency_distribution successfully
[INFO] Exported x$ps_schema_table_statistics_io successfully
[INFO] Exported x$schema_flattened_keys successfully
[INFO] Exported x$schema_index_statistics successfully
[INFO] Exported x$schema_table_lock_waits successfully
[INFO] Exported x$schema_table_statistics successfully
[INFO] Exported x$schema_table_statistics_with_buffer successfully
[INFO] Exported x$schema_tables_with_full_table_scans successfully
[INFO] Exported x$session successfully
[INFO] Exported x$statement_analysis successfully
[INFO] Exported x$statements_with_errors_or_warnings successfully
[INFO] Exported x$statements_with_full_table_scans successfully
[INFO] Exported x$statements_with_runtimes_in_95th_percentile successfully
[INFO] Exported x$statements_with_sorting successfully
[INFO] Exported x$statements_with_temp_tables successfully
[INFO] Exported x$user_summary successfully
[INFO] Exported x$user_summary_by_file_io successfully
[INFO] Exported x$user_summary_by_file_io_type successfully
[INFO] Exported x$user_summary_by_stages successfully
[INFO] Exported x$user_summary_by_statement_latency successfully
[INFO] Exported x$user_summary_by_statement_type successfully
[INFO] Exported x$wait_classes_global_by_avg_latency successfully
[INFO] Exported x$wait_classes_global_by_latency successfully
[INFO] Exported x$waits_by_host_by_latency successfully
[INFO] Exported x$waits_by_user_by_latency successfully
[INFO] Exported x$waits_global_by_latency successfully
...

schemaPattern со значением равно моей базе данных тоже не работает. Как я могу указать конкретную базу данных?

00Java, MySQL, Maven, querydsl,
Похожие вопросы
Яндекс.Метрика