Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from pakerfeldt/master
Browse files Browse the repository at this point in the history
Issue 249: Persistence: PostgreSQL support
  • Loading branch information
kaikreuzer committed Sep 27, 2013
2 parents cc6c9ad + 22daa7d commit 7dec48d
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="lib" path="lib/postgresql-9.2-1003.jdbc4.jar"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.openhab.persistence.sql.postgresql</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
pluginProject.extensions=false
resolve.requirebundle=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: PostgreSQL Driver for openHAB SQL Persistence bundle
Bundle-SymbolicName: org.openhab.persistence.sql.postgresql
Bundle-Version: 1.4.0.qualifier
Fragment-Host: org.openhab.persistence.sql;bundle-version="1.1.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ClassPath: lib/postgresql-9.2-1003.jdbc4.jar,
.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
output.. = target/classes/
bin.includes = META-INF/,\
.,\
lib/postgresql-9.2-1003.jdbc4.jar
Binary file not shown.
22 changes: 22 additions & 0 deletions bundles/persistence/org.openhab.persistence.sql.postgresql/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<parent>
<groupId>org.openhab.bundles</groupId>
<artifactId>persistence</artifactId>
<version>1.4.0-SNAPSHOT</version>
</parent>

<properties>
<bundle.symbolicName>org.openhab.persistence.sql.postgresql</bundle.symbolicName>
<bundle.namespace>org.openhab.persistence.sql.postgresql</bundle.namespace>
</properties>

<modelVersion>4.0.0</modelVersion>
<groupId>org.openhab.persistence</groupId>
<artifactId>org.openhab.persistence.sql.postgresql</artifactId>

<name>openHAB SQL Persistence - PostgreSQL Driver</name>

<packaging>eclipse-plugin</packaging>
</project>
1 change: 1 addition & 0 deletions bundles/persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<module>org.openhab.persistence.exec.test</module>
<module>org.openhab.persistence.sql</module>
<module>org.openhab.persistence.sql.mysql</module>
<module>org.openhab.persistence.sql.postgresql</module>
<module>org.openhab.persistence.cosm</module>
<module>org.openhab.persistence.gcal</module>
<module>org.openhab.persistence.mqtt</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ logging:pattern=%date{ISO8601} - %-25logger: %msg%n

############################ SQL Persistence Service ##################################
#
# the JDBC driver class like 'com.mysql.jdbc.Driver'
# the JDBC driver class like 'com.mysql.jdbc.Driver' or 'org.postgresql.Driver'
#sql:driverClass=

# the database url like 'jdbc:mysql://<host>:<port>/<user>'
Expand Down

0 comments on commit 7dec48d

Please sign in to comment.