File tree Expand file tree Collapse file tree 6 files changed +21
-3
lines changed
main/java/org/sterl/spring/persistent_tasks/shared/model
java/org/sterl/spring/persistent_tasks
db/src/main/resources/spring-persistent-tasks/db Expand file tree Collapse file tree 6 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ mvn versions:display-dependency-updates
22mvn versions: set -DnewVersion=1.2.0 -DgenerateBackupPoms=false
33mvn versions: set -DnewVersion=1.2.1-SNAPSHOT -DgenerateBackupPoms=false
44
5- docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD =veryStrong123" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest
5+ docker run --name pg-container -e POSTGRES_USER=sa -e POSTGRES_PASSWORD =veryStrong123 -p 5432:5432 -d postgres
66
77docker run --cap-add SYS_PTRACE -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=veryStrong123' -p 1433:1433 --name azuresqledge -d mcr.microsoft.com/azure-sql-edge
Original file line number Diff line number Diff line change 8484 <artifactId >mssql-jdbc</artifactId >
8585 <scope >test</scope >
8686 </dependency >
87+ <dependency >
88+ <groupId >org.postgresql</groupId >
89+ <artifactId >postgresql</artifactId >
90+ <scope >test</scope >
91+ </dependency >
8792 </dependencies >
8893
8994 <build >
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ public void updateRunningDuration() {
7979 private Long runningDurationInMs ;
8080
8181 @ Lob
82+ @ Column (name = "state" )
8283 private byte [] state ;
8384
8485 @ Column (length = 512 )
Original file line number Diff line number Diff line change 1515import org .springframework .context .annotation .Configuration ;
1616import org .springframework .context .annotation .Primary ;
1717import org .springframework .stereotype .Component ;
18+ import org .springframework .test .context .ActiveProfiles ;
1819import org .springframework .transaction .support .TransactionTemplate ;
1920import org .sterl .spring .persistent_tasks .api .SpringBeanTask ;
2021import org .sterl .spring .persistent_tasks .api .TaskId ;
3334import uk .co .jemos .podam .api .PodamFactory ;
3435import uk .co .jemos .podam .api .PodamFactoryImpl ;
3536
36- //@ActiveProfiles("mssql")
37+ //@ActiveProfiles("postgres") // postgres mssql
3738@ SpringBootTest (classes = SampleApp .class , webEnvironment = WebEnvironment .RANDOM_PORT )
3839public class AbstractSpringTest {
3940
Original file line number Diff line number Diff line change 1+ spring :
2+ datasource :
3+ username : sa
4+ password : veryStrong123
5+ url : jdbc:postgresql://localhost:5432/postgres
6+ driver-class-name : org.postgresql.Driver
7+ hikari :
8+ maximum-pool-size : 100
9+ jpa :
10+ hibernate :
11+ ddl-auto : none
Original file line number Diff line number Diff line change 1414 <property name =" offsetdatetime.type" value =" DATETIME(6)" dbms =" mysql,mariadb" />
1515
1616 <property name =" binary.type" value =" varbinary(MAX)" dbms =" mssql" />
17- <property name =" binary.type" value =" BYTEA " dbms =" postgresql" />
17+ <property name =" binary.type" value =" oid " dbms =" postgresql" />
1818 <property name =" binary.type" value =" BLOB" dbms =" h2" />
1919 <property name =" binary.type" value =" LONGBLOB" dbms =" mysql,mariadb" />
2020
You can’t perform that action at this time.
0 commit comments