Add schema version to DatabaseSchema 27/8127/6
authorDave Tucker <djt@redhat.com>
Thu, 19 Jun 2014 01:37:42 +0000 (02:37 +0100)
committerDave Tucker <djt@redhat.com>
Thu, 19 Jun 2014 18:29:03 +0000 (19:29 +0100)
commit2335ce8bfcef5133ff97b18c0b98cc45f1ec032f
treed61f0c50ef6b5bb6cb6f02769428e02c7dae5d90
parent2845eea34200684ca6d5744abb820bc01d49f3ae
Add schema version to DatabaseSchema

This commit also adds a Version class to lib.notation that allows
versions to be compared. This is necessary for adding fromVersion
and toVersion to the TypedTable and TypedClass annotations

Change-Id: I30c821cd570a6b78e6eee874dafff269399a7120
Signed-off-by: Dave Tucker <djt@redhat.com>
library/src/main/java/org/opendaylight/ovsdb/lib/notation/Version.java [new file with mode: 0644]
library/src/main/java/org/opendaylight/ovsdb/lib/schema/DatabaseSchema.java
library/src/test/java/org/opendaylight/ovsdb/lib/notation/VersionTest.java [new file with mode: 0644]
library/src/test/java/org/opendaylight/ovsdb/lib/schema/OvsDBSchemaTest.java