Author: lfryc(a)redhat.com
Date: 2010-11-11 02:48:32 -0500 (Thu, 11 Nov 2010)
New Revision: 20030
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Extensions.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/Model.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/CompactDisc.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Company.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Country.java
Log:
Made the model and Extensions class Serializable
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Extensions.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Extensions.java 2010-11-11
07:47:46 UTC (rev 20029)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Extensions.java 2010-11-11
07:48:32 UTC (rev 20030)
@@ -21,18 +21,22 @@
*******************************************************************************/
package org.richfaces.tests.metamer;
+import java.io.Serializable;
+
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Representation of CDK extension of a RichFaces component in faces-config.xml.
- *
+ *
* @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
* @version $Revision$
*/
@XmlRootElement(name = "property-extension", namespace =
"http://java.sun.com/xml/ns/javaee")
-public class Extensions {
+public class Extensions implements Serializable {
+ private static final long serialVersionUID = 1L;
+
private boolean generate;
private boolean hidden;
private boolean literal;
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/Model.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/Model.java 2010-11-11
07:47:46 UTC (rev 20029)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/Model.java 2010-11-11
07:48:32 UTC (rev 20030)
@@ -22,6 +22,7 @@
package org.richfaces.tests.metamer.bean;
+import java.io.Serializable;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashSet;
@@ -51,8 +52,10 @@
*/
@ManagedBean
@ApplicationScoped
-public class Model {
+public class Model implements Serializable {
+ private static final long serialVersionUID = 1L;
+
private List<Capital> capitalsList;
private List<Employee> employeesList;
private Set<String> jobTitles;
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/CompactDisc.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/CompactDisc.java 2010-11-11
07:47:46 UTC (rev 20029)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/CompactDisc.java 2010-11-11
07:48:32 UTC (rev 20030)
@@ -1,10 +1,14 @@
package org.richfaces.tests.metamer.model.tree;
+import java.io.Serializable;
import java.util.Enumeration;
import javax.swing.tree.TreeNode;
-public class CompactDisc extends NamedNode implements TreeNode {
+public class CompactDisc extends NamedNode implements TreeNode, Serializable {
+
+ private static final long serialVersionUID = 1L;
+
private Company company;
private String artist;
private String title;
@@ -14,7 +18,7 @@
public CompactDisc() {
this.setType("cd");
}
-
+
public CompactDisc(String title, String artist, Company company, float price, int
year) {
super();
this.setType("cd");
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Company.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Company.java 2010-11-11
07:47:46 UTC (rev 20029)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Company.java 2010-11-11
07:48:32 UTC (rev 20030)
@@ -1,5 +1,6 @@
package org.richfaces.tests.metamer.model.tree;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
@@ -8,12 +9,15 @@
import com.google.common.collect.Iterators;
-public class Company extends NamedNode implements TreeNode {
+public class Company extends NamedNode implements TreeNode, Serializable {
+
+ private static final long serialVersionUID = 1L;
+
private String name;
private List<CompactDisc> compactDiscs = new ArrayList<CompactDisc>();
-
+
private Country country;
-
+
public Company() {
this.setType("company");
}
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Country.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Country.java 2010-11-11
07:47:46 UTC (rev 20029)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/tree/Country.java 2010-11-11
07:48:32 UTC (rev 20030)
@@ -1,5 +1,6 @@
package org.richfaces.tests.metamer.model.tree;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
@@ -8,8 +9,10 @@
import com.google.common.collect.Iterators;
-public class Country extends NamedNode implements TreeNode {
+public class Country extends NamedNode implements TreeNode, Serializable {
+ private static final long serialVersionUID = 1L;
+
private String name;
private List<Company> companies = new ArrayList<Company>();