From 491aeb849d680811f202da3e35e803019f49b130 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 21 May 2013 10:29:55 +0000 Subject: [PATCH] make those classes serializable for cassandra impl tests git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1484735 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/archiva/metadata/model/CiManagement.java | 4 +++- .../java/org/apache/archiva/metadata/model/Dependency.java | 4 +++- .../org/apache/archiva/metadata/model/IssueManagement.java | 4 +++- .../main/java/org/apache/archiva/metadata/model/License.java | 4 +++- .../java/org/apache/archiva/metadata/model/MailingList.java | 4 +++- .../java/org/apache/archiva/metadata/model/Organization.java | 4 +++- .../src/main/java/org/apache/archiva/metadata/model/Scm.java | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/CiManagement.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/CiManagement.java index d58936d77..d9b643449 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/CiManagement.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/CiManagement.java @@ -20,14 +20,16 @@ package org.apache.archiva.metadata.model; */ import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; /** * Information about the CI system used by the project. * * @todo considering moving this to a facet - avoid referring to it externally */ -@XmlRootElement( name = "ciManagement" ) +@XmlRootElement(name = "ciManagement") public class CiManagement + implements Serializable { /** * A simple identifier for the type of CI server used, eg continuum, bamboo, hudson, etc. diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Dependency.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Dependency.java index 14f9defe2..bf2a5b80e 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Dependency.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Dependency.java @@ -20,14 +20,16 @@ package org.apache.archiva.metadata.model; */ import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; /** * Information about a dependency that this project has on another project or artifact. * * @todo will be reviewing what is appropriate for the base here - rest should be in a maven dependency facet - avoid details on it externally */ -@XmlRootElement( name = "dependency" ) +@XmlRootElement(name = "dependency") public class Dependency + implements Serializable { /** * The Maven classifier of the dependency. diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/IssueManagement.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/IssueManagement.java index 12137ba43..04f039d96 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/IssueManagement.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/IssueManagement.java @@ -20,14 +20,16 @@ package org.apache.archiva.metadata.model; */ import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; /** * Information about the issue management system used by the project. * * @todo considering moving this to a facet - avoid referring to it externally */ -@XmlRootElement( name = "issueManagement" ) +@XmlRootElement(name = "issueManagement") public class IssueManagement + implements Serializable { /** * A simple identifier for the type of issue management server used, eg jira, bugzilla, etc. diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/License.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/License.java index 5fbb28015..e079690ad 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/License.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/License.java @@ -20,12 +20,14 @@ package org.apache.archiva.metadata.model; */ import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; /** * A description of a particular license used by a project. */ -@XmlRootElement( name = "license" ) +@XmlRootElement(name = "license") public class License + implements Serializable { /** * The name of the license. diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MailingList.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MailingList.java index 922e2d5d8..ee35302d2 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MailingList.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MailingList.java @@ -1,6 +1,7 @@ package org.apache.archiva.metadata.model; import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; import java.util.List; /* @@ -27,8 +28,9 @@ import java.util.List; * * @todo considering moving this to a facet - avoid referring to it externally */ -@XmlRootElement( name = "mailingList" ) +@XmlRootElement(name = "mailingList") public class MailingList + implements Serializable { /** * The primary archive URL for this mailing list. diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Organization.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Organization.java index 23048cbed..603c44213 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Organization.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Organization.java @@ -20,9 +20,11 @@ package org.apache.archiva.metadata.model; */ import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; -@XmlRootElement( name = "organization" ) +@XmlRootElement(name = "organization") public class Organization + implements Serializable { private String name; diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Scm.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Scm.java index 5e45e931f..8086472bd 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Scm.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Scm.java @@ -20,9 +20,11 @@ package org.apache.archiva.metadata.model; */ import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; -@XmlRootElement( name = "scm" ) +@XmlRootElement(name = "scm") public class Scm + implements Serializable { private String connection; -- 2.39.5