Author: maschmid
Date: 2012-04-17 06:07:32 -0400 (Tue, 17 Apr 2012)
New Revision: 14597

Modified:
   
branches/community/Seam_2_3/examples-ee6/restbay/restbay-ejb/src/main/java/org/jboss/seam/example/restbay/Category.java
Log:
restbay example, change Category id generation strategy to Identity, so it 
works with the current import.sql script


Modified: 
branches/community/Seam_2_3/examples-ee6/restbay/restbay-ejb/src/main/java/org/jboss/seam/example/restbay/Category.java
===================================================================
--- 
branches/community/Seam_2_3/examples-ee6/restbay/restbay-ejb/src/main/java/org/jboss/seam/example/restbay/Category.java
     2012-04-17 08:05:45 UTC (rev 14596)
+++ 
branches/community/Seam_2_3/examples-ee6/restbay/restbay-ejb/src/main/java/org/jboss/seam/example/restbay/Category.java
     2012-04-17 10:07:32 UTC (rev 14597)
@@ -4,6 +4,7 @@
 
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.ManyToOne;
@@ -20,7 +21,7 @@
    private Category parent;
    
    @Id
-   @GeneratedValue
+   @GeneratedValue(strategy=GenerationType.IDENTITY)
    public Integer getCategoryId()
    {
       return categoryId;

_______________________________________________
seam-commits mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-commits

Reply via email to