I have a build which copies schema from test environment (creates sqls) and executes (using sql-maven-plugin) those sql on local-database. The problem is some views, stored procedures are broken on test environment. I need to ignore broken sqls…
So I'm trying to use a sql-maven-plugin to import my backup database.
I used annotation @GeneratedValue(strategy = GenerationType.TABLE ) on my Entities, so my backup database has hibernate_sequence table with it.
How to avoid this error, but still…
I am using hsqldb and an embedded jetty instance (via) maven for testing locally. The application will use a mysql database on production. I will need to call mysql's UNHEX() for a particular query. How can I create a wrapper for hsqldb that would…
mvn deploy just worked fine until I used following piece in my pom file
org.codehaus.mojosql-maven-plugin
Error: Permission denied while uploading artifacts to…
I am using maven-sql-plugin for writing test classes, here I am setting username, password, drivername, source file location and url along with it I also added GRANT query in plug-in, but still getting ACCESS-DENIED error.
Here is my…
In our projects we are using entities from an inhouse library (we are using including them as a JAR). The class itself looks something like this (can't paste the real code here).
@Table(name = "X_MY_ENTITY")
public class MyEntity{
//columns...
}
In…
I am trying to update my materialized view using sql-maven-plugin but its says
Caused by: java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement
ORA-06512: at line 2
Query :
begin
EXECUTE IMMEDIATE…
I have maven based project and I try to use sql-maven-plugin in order to setup/tear-down DB for system tests.
I put in sqlCommand element:
CALL SOME_STORED_PROC('SYSTEST')
however, maven build fails on this SQL with the followig…
How can I configure my Maven pom.xml and/or sql-maven-plugin so that the unit test related DB executions I've specified in my dependency, lib.example.jdbc, don't get executed when building the pom.xml of my project com.example.project? Currently…
I want to use celerio to generate code from our database. Celerio uses the sql-maven-plugin to connect to the database. But i cannot resolve the dependency for the ingres driver.
that's how i set up my database connection in the pom.xml of my…
I am using sql-maven-plugin to perform a simple DB testcase.
Firstly , I am inserting 2 rows of data into a table(note: I am truncating the table manually before doing this)
Then I am running a select query to check if those 2 rows are inserted.
To…
I am facing some problem in ordering the sql execution.
We have one sql script file for each table under one directory. Ex: There is user.sql and role.sql in the directory c:\SqlScripts. We are using the sql maven plugin to execute these sql files.…
I'm new to pom files and new to stackoverflow.
As part of our Integration Test process I'm dropping and recreating mysql databases on each run in order to ensure clean known reference data as a starting point. This is being done via pom files which…
I have a project where we are trying to execute a number (circa 100) of Oracle PL/SQL files. Each file contains a stored procedure. The procedures must be applied to the database in a set order. The stored procedures are supplied to us by a DBA team…