]> source.dussan.org Git - archiva.git/commitdiff
add @Entity annotation to ease cassandra impl
authorOlivier Lamy <olamy@apache.org>
Tue, 21 May 2013 10:44:20 +0000 (10:44 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 21 May 2013 10:44:20 +0000 (10:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1484745 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/metadata/metadata-model/pom.xml
archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/CiManagement.java
archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/IssueManagement.java
archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Organization.java
archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Scm.java

index dbaa8eb7f2b1bbf08c410421c7881dc1dfcb987e..b60b6092ab11ae687b3662379e44103530c316f1 100644 (file)
   <packaging>bundle</packaging>
   <name>Archiva Metadata :: Model</name>
 
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-jpa_2.0_spec</artifactId>
+    </dependency>
+  </dependencies>
+
   <build>
     <plugins>
       <plugin>
index d9b6434493f97e3904f87152fdab9cd06ccbea64..c52d6c2581d35cee3812db8d3cea62270234393f 100644 (file)
@@ -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
 {
index 04f039d9686bd7f250983016b0de1577a7c82850..4d304afaabdb70099f72ce55628a0636743ae360 100644 (file)
@@ -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
 {
index 603c4421362deb70a55ed8ae9f35129c682e3d82..9b89613990ada003f9588f138daeb861ee80796c 100644 (file)
@@ -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
 {
index 8086472bd61f5eadee35bcd7d012954d5b30996c..ff9f704cdaf09fe06c9e8d1065e2ca0fa677db94 100644 (file)
@@ -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
 {