[seam-commits] Seam SVN: r11797 - modules/remoting/trunk/examples/model/src/main/java/org/jboss/seam/remoting/examples/model.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Dec 8 09:31:45 EST 2009


Author: pete.muir at jboss.org
Date: 2009-12-08 09:31:44 -0500 (Tue, 08 Dec 2009)
New Revision: 11797

Modified:
   modules/remoting/trunk/examples/model/src/main/java/org/jboss/seam/remoting/examples/model/Customer.java
Log:
minor

Modified: modules/remoting/trunk/examples/model/src/main/java/org/jboss/seam/remoting/examples/model/Customer.java
===================================================================
--- modules/remoting/trunk/examples/model/src/main/java/org/jboss/seam/remoting/examples/model/Customer.java	2009-12-08 14:04:13 UTC (rev 11796)
+++ modules/remoting/trunk/examples/model/src/main/java/org/jboss/seam/remoting/examples/model/Customer.java	2009-12-08 14:31:44 UTC (rev 11797)
@@ -4,8 +4,12 @@
 import java.util.Date;
 
 import javax.persistence.Entity;
+import javax.persistence.EnumType;
+import javax.persistence.Enumerated;
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
 
 /**
  * Customer entity bean.  This class exposes a variety of property types for the
@@ -18,15 +22,21 @@
 {
    private static final long serialVersionUID = 4289723352398788625L;
 
-   public enum Gender { male, female }
+   public static enum Gender { male, female }
    
+   @Id @GeneratedValue
    private Integer customerId;
+   
    private String firstName;
    private String lastName;
+   
+   @Temporal(TemporalType.DATE)
    private Date dateOfBirth;
+   
+   @Enumerated(EnumType.STRING)
    private Gender gender;
    
-   @Id @GeneratedValue
+   
    public Integer getCustomerId()
    {
       return customerId;



More information about the seam-commits mailing list