Update Java tutorials

Upgrade JDBC Driver version
This commit is contained in:
Andrea Lam
2017-10-05 10:44:21 -07:00
parent 33e0c1ce7a
commit 957ff8b1a6
18 changed files with 37 additions and 162 deletions
-133
View File
@@ -1,133 +0,0 @@
# Created by https://www.gitignore.io/api/intellij,eclipse,java,maven,mac
### Eclipse ###
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
# Eclipse Core
.project
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# PyDev specific (Python IDE for Eclipse)
*.pydevproject
# CDT-specific (C/C++ Development Tooling)
.cproject
# JDT-specific (Eclipse Java Development Tools)
.classpath
# Java annotation processor (APT)
.factorypath
# PDT-specific (PHP Development Tools)
.buildpath
# sbteclipse plugin
.target
# Tern plugin
.tern-project
# TeXlipse plugin
.texlipse
# STS (Spring Tool Suite)
.springBeans
# Code Recommenders
.recommenders/
### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea
## File-based project format:
*.iws
*.iml
## Plugin-specific files:
# IntelliJ
/out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
### Intellij Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr
### Java ###
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
#!! ERROR: mac is undefined. Use list command to see defined gitignore types !!#
### Maven ###
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# Exclude maven wrapper
!/.mvn/wrapper/maven-wrapper.jar
# End of https://www.gitignore.io/api/intellij,eclipse,java,maven,mac
+6 -4
View File
@@ -40,21 +40,23 @@ To run this sample, you need the following prerequisites.
## Run this sample
1. From your favorite text editor, open the App.java file and update the connection string username and password with your own.
1. Select the specific tutorial you want to run through.
2. From your terminal, build the project and jar by performing the following command:
2. From your favorite text editor, open the App.java file and update the connection string username and password with your own.
3. From your terminal, change directories to the tutorial folder (ex. SqlServerSample) you're running through. Build the project and jar by performing the following command:
```
mvn package
```
3. Run the program by performing the following command:
4. Run the program by performing the following command:
```
mvn -q exec:java -Dexec.mainClass=com.sqlsamples.App.java
```
4. Repeat the above steps for any of the three samples provided.
5. Repeat the above steps for any of the other tutorials provided.
<a name=sample-details></a>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
</dependencies>
</project>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
</dependencies>
</project>
+6 -4
View File
@@ -40,21 +40,23 @@ To run this sample, you need the following prerequisites.
## Run this sample
1. From your favorite text editor, open the App.java file and update the connection string username and password with your own.
1. Select the specific tutorial you want to run through.
2. From your terminal, build the project and jar by performing the following command:
2. From your favorite text editor, open the App.java file and update the connection string username and password with your own.
3. From your terminal, change directories to the tutorial folder (ex. SqlServerSample) you're running through. Build the project and jar by performing the following command:
```
mvn package
```
3. Run the program by performing the following command:
4. Run the program by performing the following command:
```
mvn -q exec:java -Dexec.mainClass=com.sqlsamples.App.java
```
4. Repeat the above steps for any of the three samples provided.
5. Repeat the above steps for any of the other tutorials provided.
<a name=sample-details></a>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
</dependencies>
</project>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
</dependencies>
</project>
+6 -4
View File
@@ -40,21 +40,23 @@ To run this sample, you need the following prerequisites.
## Run this sample
1. From your favorite text editor, open the App.java file and update the connection string username and password with your own.
1. Select the specific tutorial you want to run through.
2. From your terminal, build the project and jar by performing the following command:
2. From your favorite text editor, open the App.java file and update the connection string username and password with your own.
3. From your terminal, change directories to the tutorial folder (ex. SqlServerSample) you're running through. Build the project and jar by performing the following command:
```
mvn package
```
3. Run the program by performing the following command:
4. Run the program by performing the following command:
```
mvn -q exec:java -Dexec.mainClass=com.sqlsamples.App.java
```
4. Repeat the above steps for any of the three samples provided.
5. Repeat the above steps for any of the other tutorials provided.
<a name=sample-details></a>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
</dependencies>
</project>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
</dependencies>
</project>
+6 -4
View File
@@ -40,21 +40,23 @@ To run this sample, you need the following prerequisites.
## Run this sample
1. From your favorite text editor, open the App.java file and update the connection string username and password with your own.
1. Select the specific tutorial you want to run through.
2. From your terminal, build the project and jar by performing the following command:
2. From your favorite text editor, open the App.java file and update the connection string username and password with your own.
3. From your terminal, change directories to the tutorial folder (ex. SqlServerSample) you're running through. Build the project and jar by performing the following command:
```
mvn package
```
3. Run the program by performing the following command:
4. Run the program by performing the following command:
```
mvn -q exec:java -Dexec.mainClass=com.sqlsamples.App.java
```
4. Repeat the above steps for any of the three samples provided.
5. Repeat the above steps for any of the other tutorials provided.
<a name=sample-details></a>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
</dependencies>
</project>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
@@ -22,7 +22,7 @@
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.1.0.jre8</version>
<version>6.2.2.jre8</version>
</dependency>
</dependencies>
</project>
@@ -16,7 +16,7 @@
<properties>
<java.version>1.8</java.version>
<sqlserver.version>6.1.0.jre8</sqlserver.version>
<sqlserver.version>6.2.2.jre8</sqlserver.version>
</properties>
<dependencies>