juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfa...@apache.org
Subject svn commit: r763841 - in /webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model: Subscription.java SubscriptionMatch.java
Date Fri, 10 Apr 2009 00:52:04 GMT
Author: jfaath
Date: Fri Apr 10 00:52:04 2009
New Revision: 763841

URL: http://svn.apache.org/viewvc?rev=763841&view=rev
Log:
updating the subscription model

Modified:
    webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Subscription.java
    webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/SubscriptionMatch.java

Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Subscription.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Subscription.java?rev=763841&r1=763840&r2=763841&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Subscription.java
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Subscription.java
Fri Apr 10 00:52:04 2009
@@ -15,12 +15,17 @@
  * limitations under the License.
  */
 
+import java.util.ArrayList;
 import java.util.Date;
+import java.util.List;
 
+import javax.persistence.CascadeType;
 import javax.persistence.Column;
 import javax.persistence.Entity;
+import javax.persistence.FetchType;
 import javax.persistence.Id;
 import javax.persistence.Lob;
+import javax.persistence.OneToMany;
 import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
@@ -40,6 +45,8 @@
 	private String notificationInterval;
 	private Integer maxEntities;
 	private Date expiresAfter;
+	private Boolean brief;
+	private List<SubscriptionMatch> subscriptionMatches = new ArrayList<SubscriptionMatch>(0);
 
 	public Subscription() {
 	}
@@ -69,7 +76,7 @@
 		this.subscriptionFilter = subscriptionFilter;
 	}
 	
-	@Column(name = "binding_key", nullable = false, length = 255)
+	@Column(name = "binding_key", length = 255)
 	public String getBindingKey() {
 		return this.bindingKey;
 	}
@@ -102,4 +109,19 @@
 		this.expiresAfter = expiresAfter;
 	}
 
+	@Column(name = "brief")
+	public Boolean isBrief() {
+		return brief;
+	}
+	public void setBrief(Boolean brief) {
+		this.brief = brief;
+	}
+
+	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "subscription")
+	public List<SubscriptionMatch> getSubscriptionMatches() {
+		return subscriptionMatches;
+	}
+	public void setSubscriptionMatches(List<SubscriptionMatch> subscriptionMatches) {
+		this.subscriptionMatches = subscriptionMatches;
+	}
 }

Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/SubscriptionMatch.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/SubscriptionMatch.java?rev=763841&r1=763840&r2=763841&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/SubscriptionMatch.java
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/SubscriptionMatch.java
Fri Apr 10 00:52:04 2009
@@ -41,6 +41,11 @@
 
 	public SubscriptionMatch() {
 	}
+	
+	public SubscriptionMatch(Subscription subscription, String entityKey) {
+		this.subscription = subscription;
+		this.entityKey = entityKey;
+	}
 
 	@Id
 	@GeneratedValue(strategy=GenerationType.AUTO)



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org


Mime
View raw message