medisa.aris %!s(int64=6) %!d(string=hai) anos
achega
8226e26afd

BIN=BIN
bin/com/fusi24/Testing.class


+ 33 - 0
pom.xml

@@ -0,0 +1,33 @@
1
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
+	<modelVersion>4.0.0</modelVersion>
4
+	<groupId>java-pojo</groupId>
5
+	<artifactId>java-pojo</artifactId>
6
+	<version>0.0.1-SNAPSHOT</version>
7
+	<name>Testing Java Pojo</name>
8
+
9
+	<dependencies>
10
+		<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
11
+		<dependency>
12
+			<groupId>mysql</groupId>
13
+			<artifactId>mysql-connector-java</artifactId>
14
+			<version>5.1.40</version>
15
+		</dependency>
16
+
17
+	</dependencies>
18
+
19
+	<build>
20
+		<sourceDirectory>src</sourceDirectory>
21
+
22
+		<plugins>
23
+			<plugin>
24
+				<artifactId>maven-compiler-plugin</artifactId>
25
+				<version>3.6.1</version>
26
+				<configuration>
27
+					<source>1.8</source>
28
+					<target>1.8</target>
29
+				</configuration>
30
+			</plugin>
31
+		</plugins>
32
+	</build>
33
+</project>

+ 24 - 0
src/com/fusi24/Testing.java

@@ -0,0 +1,24 @@
1
+package com.fusi24;
2
+
3
+import java.sql.Connection;
4
+import java.sql.DriverManager;
5
+
6
+public class Testing {
7
+
8
+	static {
9
+		try {
10
+			Class.forName("com.mysql.jdbc.Driver");
11
+		} catch (ClassNotFoundException ex) {
12
+			System.err.println("Unable to load MySQL Driver");
13
+		}
14
+	}
15
+
16
+	public static void main(String[] args) throws Exception {
17
+		String jdbcUrl = "jdbc:mysql://db.fusi24.com:3306/employees?user=training&password=training";
18
+
19
+		Connection con = DriverManager.getConnection(jdbcUrl);
20
+		System.out.println("Connected!");
21
+		con.close();
22
+	}
23
+
24
+}

+ 5 - 0
target/classes/META-INF/MANIFEST.MF

@@ -0,0 +1,5 @@
1
+Manifest-Version: 1.0
2
+Built-By: Medisa
3
+Build-Jdk: 1.8.0_66
4
+Created-By: Maven Integration for Eclipse
5
+

+ 7 - 0
target/classes/META-INF/maven/java-pojo/java-pojo/pom.properties

@@ -0,0 +1,7 @@
1
+#Generated by Maven Integration for Eclipse
2
+#Tue Jun 26 17:05:05 ICT 2018
3
+version=0.0.1-SNAPSHOT
4
+groupId=java-pojo
5
+m2e.projectName=java-pojo
6
+m2e.projectLocation=D\:\\ORACLE\\WORKS\\training-workspace\\java-pojo
7
+artifactId=java-pojo

+ 33 - 0
target/classes/META-INF/maven/java-pojo/java-pojo/pom.xml

@@ -0,0 +1,33 @@
1
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
+	<modelVersion>4.0.0</modelVersion>
4
+	<groupId>java-pojo</groupId>
5
+	<artifactId>java-pojo</artifactId>
6
+	<version>0.0.1-SNAPSHOT</version>
7
+	<name>Testing Java Pojo</name>
8
+
9
+	<dependencies>
10
+		<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
11
+		<dependency>
12
+			<groupId>mysql</groupId>
13
+			<artifactId>mysql-connector-java</artifactId>
14
+			<version>5.1.40</version>
15
+		</dependency>
16
+
17
+	</dependencies>
18
+
19
+	<build>
20
+		<sourceDirectory>src</sourceDirectory>
21
+
22
+		<plugins>
23
+			<plugin>
24
+				<artifactId>maven-compiler-plugin</artifactId>
25
+				<version>3.6.1</version>
26
+				<configuration>
27
+					<source>1.8</source>
28
+					<target>1.8</target>
29
+				</configuration>
30
+			</plugin>
31
+		</plugins>
32
+	</build>
33
+</project>

BIN=BIN
target/classes/com/fusi24/Testing.class