From: Olivier Lamy Date: Tue, 21 May 2013 10:44:20 +0000 (+0000) Subject: add @Entity annotation to ease cassandra impl X-Git-Tag: archiva-1.4-M4~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8998f919420bf4ffb198f2cc31b3a3a33a55a838;p=archiva.git add @Entity annotation to ease cassandra impl git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1484745 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/metadata/metadata-model/pom.xml b/archiva-modules/metadata/metadata-model/pom.xml index dbaa8eb7f..b60b6092a 100644 --- a/archiva-modules/metadata/metadata-model/pom.xml +++ b/archiva-modules/metadata/metadata-model/pom.xml @@ -28,6 +28,13 @@ bundle Archiva Metadata :: Model + + + org.apache.geronimo.specs + geronimo-jpa_2.0_spec + + + 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 d9b643449..c52d6c258 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 @@ -19,6 +19,7 @@ package org.apache.archiva.metadata.model; * under the License. */ +import javax.persistence.Entity; import javax.xml.bind.annotation.XmlRootElement; import java.io.Serializable; @@ -28,6 +29,7 @@ import java.io.Serializable; * @todo considering moving this to a facet - avoid referring to it externally */ @XmlRootElement(name = "ciManagement") +@Entity public class CiManagement implements Serializable { 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 04f039d96..4d304afaa 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 @@ -19,6 +19,7 @@ package org.apache.archiva.metadata.model; * under the License. */ +import javax.persistence.Entity; import javax.xml.bind.annotation.XmlRootElement; import java.io.Serializable; @@ -28,6 +29,7 @@ import java.io.Serializable; * @todo considering moving this to a facet - avoid referring to it externally */ @XmlRootElement(name = "issueManagement") +@Entity public class IssueManagement implements Serializable { 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 603c44213..9b8961399 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 @@ -19,10 +19,12 @@ package org.apache.archiva.metadata.model; * under the License. */ +import javax.persistence.Entity; import javax.xml.bind.annotation.XmlRootElement; import java.io.Serializable; @XmlRootElement(name = "organization") +@Entity public class Organization implements Serializable { 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 8086472bd..ff9f704cd 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 @@ -19,10 +19,12 @@ package org.apache.archiva.metadata.model; * under the License. */ +import javax.persistence.Entity; import javax.xml.bind.annotation.XmlRootElement; import java.io.Serializable; @XmlRootElement(name = "scm") +@Entity public class Scm implements Serializable {