Author: shane.bryzak(a)jboss.com
Date: 2008-10-21 04:25:43 -0400 (Tue, 21 Oct 2008)
New Revision: 9369
Modified:
trunk/examples/seambay/src/org/jboss/seam/example/seambay/AuctionImage.java
trunk/examples/seambay/view/test.js
Log:
JBSEAM-3268
Modified: trunk/examples/seambay/src/org/jboss/seam/example/seambay/AuctionImage.java
===================================================================
--- trunk/examples/seambay/src/org/jboss/seam/example/seambay/AuctionImage.java 2008-10-20
19:08:48 UTC (rev 9368)
+++ trunk/examples/seambay/src/org/jboss/seam/example/seambay/AuctionImage.java 2008-10-21
08:25:43 UTC (rev 9369)
@@ -8,6 +8,7 @@
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
+import javax.xml.bind.annotation.XmlTransient;
@Entity
public class AuctionImage implements Serializable
@@ -30,6 +31,7 @@
this.imageId = imageId;
}
+ @XmlTransient
@ManyToOne
@JoinColumn(name = "AUCTION_ID")
public Auction getAuction()
Modified: trunk/examples/seambay/view/test.js
===================================================================
--- trunk/examples/seambay/view/test.js 2008-10-20 19:08:48 UTC (rev 9368)
+++ trunk/examples/seambay/view/test.js 2008-10-21 08:25:43 UTC (rev 9369)
@@ -33,6 +33,17 @@
svc.setRequest("<soapenv:Envelope
xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
"\n
xmlns:seam=\"http://seambay.example.seam.jboss.org/\">\n
<soapenv:Header/>" +
"\n <soapenv:Body>\n <seam:listCategories/>\n
</soapenv:Body>\n</soapenv:Envelope>");
+
+var svc = new ServiceMetadata("findAuctions", "General");
+svc.setDescription("Find Auctions");
+svc.setRequest("<soapenv:Envelope
xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
+ "\n
xmlns:seam=\"http://seambay.example.seam.jboss.org/\">\n
<soapenv:Header/>" +
+ "\n <soapenv:Body>" +
+ "\n <seam:findAuctions>" +
+ "\n <arg0>#{searchTerm}</arg0>" +
+ "\n </seam:findAuctions>" +
+ "\n </soapenv:Body>\n</soapenv:Envelope>");
+svc.addParameter(new ServiceParam("Search Term", "searchTerm"));
svc = new ServiceMetadata("login", "Security");
svc.setDescription("Login");