Browse Source

add @Entity annotation to ease cassandra impl

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1484745 13f79535-47bb-0310-9956-ffa450edef68
tags/archiva-1.4-M4
Olivier Lamy 11 years ago
parent
commit
8998f91942

+ 7
- 0
archiva-modules/metadata/metadata-model/pom.xml View File

<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>Archiva Metadata :: Model</name> <name>Archiva Metadata :: Model</name>


<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jpa_2.0_spec</artifactId>
</dependency>
</dependencies>

<build> <build>
<plugins> <plugins>
<plugin> <plugin>

+ 2
- 0
archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/CiManagement.java View File

* under the License. * under the License.
*/ */


import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable; import java.io.Serializable;


* @todo considering moving this to a facet - avoid referring to it externally * @todo considering moving this to a facet - avoid referring to it externally
*/ */
@XmlRootElement(name = "ciManagement") @XmlRootElement(name = "ciManagement")
@Entity
public class CiManagement public class CiManagement
implements Serializable implements Serializable
{ {

+ 2
- 0
archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/IssueManagement.java View File

* under the License. * under the License.
*/ */


import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable; import java.io.Serializable;


* @todo considering moving this to a facet - avoid referring to it externally * @todo considering moving this to a facet - avoid referring to it externally
*/ */
@XmlRootElement(name = "issueManagement") @XmlRootElement(name = "issueManagement")
@Entity
public class IssueManagement public class IssueManagement
implements Serializable implements Serializable
{ {

+ 2
- 0
archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Organization.java View File

* under the License. * under the License.
*/ */


import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable; import java.io.Serializable;


@XmlRootElement(name = "organization") @XmlRootElement(name = "organization")
@Entity
public class Organization public class Organization
implements Serializable implements Serializable
{ {

+ 2
- 0
archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/Scm.java View File

* under the License. * under the License.
*/ */


import javax.persistence.Entity;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable; import java.io.Serializable;


@XmlRootElement(name = "scm") @XmlRootElement(name = "scm")
@Entity
public class Scm public class Scm
implements Serializable implements Serializable
{ {

Loading…
Cancel
Save