rsanchez
2015-08-03 d314a4d9abcde2722edfb2f5886454b7060ddd35
#0 fix - Fixed metadata management and new release 1.0.1
4 files modified
changed files
securis/pom.xml patch | view | blame | history
securis/src/main/java/net/curisit/securis/db/ApplicationMetadata.java patch | view | blame | history
securis/src/main/java/net/curisit/securis/db/LicenseTypeMetadata.java patch | view | blame | history
securis/src/main/java/net/curisit/securis/db/PackMetadata.java patch | view | blame | history
securis/pom.xml
....@@ -3,7 +3,7 @@
33 <modelVersion>4.0.0</modelVersion>
44 <groupId>net.curisit</groupId>
55 <artifactId>securis-server</artifactId>
6
- <version>1.0</version>
6
+ <version>1.0.1</version>
77 <name>SeCuris</name>
88 <description>CurisTEC Server Licenses</description>
99 <dependencies>
securis/src/main/java/net/curisit/securis/db/ApplicationMetadata.java
....@@ -20,7 +20,6 @@
2020 import com.fasterxml.jackson.annotation.JsonInclude;
2121 import com.fasterxml.jackson.annotation.JsonInclude.Include;
2222 import com.fasterxml.jackson.annotation.JsonProperty;
23
-import com.google.common.base.Objects;
2423
2524 /**
2625 * Entity implementation class for Entity: application_metadata
....@@ -96,20 +95,6 @@
9695
9796 public void setMandatory(boolean mandatory) {
9897 this.mandatory = mandatory;
99
- }
100
-
101
- @Override
102
- public boolean equals(Object obj) {
103
- if (!(obj instanceof ApplicationMetadata))
104
- return false;
105
- ApplicationMetadata other = (ApplicationMetadata) obj;
106
- return Objects.equal(key, other.key) && Objects.equal(application, other.application);
107
- }
108
-
109
- @Override
110
- public int hashCode() {
111
-
112
- return (key == null ? 0 : key.hashCode()) + (application == null ? 0 : application.hashCode());
11398 }
11499
115100 @Override
securis/src/main/java/net/curisit/securis/db/LicenseTypeMetadata.java
....@@ -69,20 +69,6 @@
6969 this.key = key;
7070 }
7171
72
- @Override
73
- public boolean equals(Object obj) {
74
- if (!(obj instanceof LicenseTypeMetadata))
75
- return false;
76
- LicenseTypeMetadata other = (LicenseTypeMetadata) obj;
77
- return key.equals(other.key) && (licenseType == null || licenseType.equals(other.licenseType));
78
- }
79
-
80
- @Override
81
- public int hashCode() {
82
-
83
- return key.hashCode() + (licenseType == null ? 0 : licenseType.hashCode());
84
- }
85
-
8672 public boolean isMandatory() {
8773 return mandatory;
8874 }
securis/src/main/java/net/curisit/securis/db/PackMetadata.java
....@@ -95,20 +95,6 @@
9595 this.readonly = readonly;
9696 }
9797
98
- @Override
99
- public boolean equals(Object obj) {
100
- if (!(obj instanceof PackMetadata))
101
- return false;
102
- PackMetadata other = (PackMetadata) obj;
103
- return key.equals(other.key) && (pack == null || pack.equals(other.pack));
104
- }
105
-
106
- @Override
107
- public int hashCode() {
108
-
109
- return key.hashCode() + (pack == null ? 0 : pack.hashCode());
110
- }
111
-
11298 public boolean isMandatory() {
11399 return mandatory;
114100 }