Skip to content

Commit

Permalink
updated app to work with mssql server
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoolbright23 committed Jun 18, 2024
1 parent d6a90a2 commit 46d011e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 1,097 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'mysql:mysql-connector-java:8.0.28'
implementation 'com.microsoft.sqlserver:mssql-jdbc'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation("org.jmockit:jmockit:1.49")
}
Expand Down
18 changes: 9 additions & 9 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Database connection settings
spring.datasource.url=jdbc:mysql://localhost:3306/techjobs?useLegacyDatetimeCode=false&verifyServerCertificate=false&useSSL=false&requireSSL=false&allowPublicKeyRetrieval=true&serverTimezone=America/Chicago
spring.datasource.username=techjobs
spring.datasource.password=techjobs
spring.datasource.url=jdbc:sqlserver://sqlserver.launchcodelearning.org:1433;databaseName=techjobs;encrypt=true;trustServerCertificate=true;loginTimeout=30;
spring.datasource.username=sa
spring.datasource.password=BKR_qet9jrp5chp3cyp

# Specify the DBMS
spring.jpa.database = MYSQL
spring.jpa.open-in-view = false
spring.jpa.open-in-view=false

# Show or not log for each sql query
spring.jpa.show-sql = false
# Show or not log for each SQL query
spring.jpa.show-sql=false

# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
spring.jpa.hibernate.ddl-auto=update

# Use spring.jpa.properties.* for Hibernate native properties (the prefix is
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect

22 changes: 0 additions & 22 deletions src/test/java/org/launchcode/techjobs/persistent/AbstractTest.java

This file was deleted.

This file was deleted.

231 changes: 0 additions & 231 deletions src/test/java/org/launchcode/techjobs/persistent/TestTaskFour.java

This file was deleted.

58 changes: 0 additions & 58 deletions src/test/java/org/launchcode/techjobs/persistent/TestTaskOne.java

This file was deleted.

Loading

0 comments on commit 46d011e

Please sign in to comment.