You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by jf...@apache.org on 2008/09/25 19:58:14 UTC
svn commit: r699034 - in
/webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model:
BusinessEntity.java Contact.java
Author: jfaath
Date: Thu Sep 25 10:58:14 2008
New Revision: 699034
URL: http://svn.apache.org/viewvc?rev=699034&view=rev
Log:
JUDDI-142: Added OrderBy to collections of these two classes to test the solution for 142.
Modified:
webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/BusinessEntity.java
webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Contact.java
Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/BusinessEntity.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/BusinessEntity.java?rev=699034&r1=699033&r2=699034&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/BusinessEntity.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/BusinessEntity.java Thu Sep 25 10:58:14 2008
@@ -26,6 +26,7 @@
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
+import javax.persistence.OrderBy;
/**
* @author <a href="mailto:kurt@apache.org">Kurt T Stam</a>
@@ -119,6 +120,7 @@
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity")
+ @OrderBy
public Set<Contact> getContacts() {
return this.contacts;
}
@@ -127,6 +129,7 @@
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity")
+ @OrderBy
public Set<BusinessIdentifier> getBusinessIdentifiers() {
return this.businessIdentifiers;
}
@@ -145,6 +148,7 @@
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity")
+ @OrderBy
public Set<DiscoveryUrl> getDiscoveryUrls() {
return this.discoveryUrls;
}
@@ -153,6 +157,7 @@
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity")
+ @OrderBy
public Set<BusinessName> getBusinessNames() {
return this.businessNames;
}
@@ -170,6 +175,7 @@
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity")
+ @OrderBy
public Set<BusinessCategory> getBusinessCategories() {
return this.businessCategories;
}
@@ -186,6 +192,7 @@
}
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity")
+ @OrderBy
public Set<BusinessDescr> getBusinessDescrs() {
return this.businessDescrs;
}
Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Contact.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Contact.java?rev=699034&r1=699033&r2=699034&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Contact.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/model/Contact.java Thu Sep 25 10:58:14 2008
@@ -29,6 +29,7 @@
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
+import javax.persistence.OrderBy;
/**
* @author <a href="mailto:kurt@apache.org">Kurt T Stam</a>
@@ -77,17 +78,15 @@
public ContactId getId() {
return this.id;
}
-
public void setId(ContactId id) {
this.id = id;
}
+
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "business_key", nullable = false, insertable = false, updatable = false)
-
public BusinessEntity getBusinessEntity() {
return this.businessEntity;
}
-
public void setBusinessEntity(BusinessEntity businessEntity) {
this.businessEntity = businessEntity;
}
@@ -96,49 +95,50 @@
public String getUseType() {
return this.useType;
}
-
public void setUseType(String useType) {
this.useType = useType;
}
@Column(name = "person_name", nullable = false)
-
public String getPersonName() {
return this.personName;
}
-
public void setPersonName(String personName) {
this.personName = personName;
}
+
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "contact")
+ @OrderBy
public Set<ContactDescr> getContactDescrs() {
return this.contactDescrs;
}
-
public void setContactDescrs(Set<ContactDescr> contactDescrs) {
this.contactDescrs = contactDescrs;
}
+
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "contact")
+ @OrderBy
public Set<Email> getEmails() {
return this.emails;
}
-
public void setEmails(Set<Email> emails) {
this.emails = emails;
}
+
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "contact")
+ @OrderBy
public Set<Phone> getPhones() {
return this.phones;
}
-
public void setPhones(Set<Phone> phones) {
this.phones = phones;
}
+
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "contact")
+ @OrderBy
public Set<Address> getAddresses() {
return this.addresses;
}
-
public void setAddresses(Set<Address> addresses) {
this.addresses = addresses;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org