[seam-commits] Seam SVN: r15407 - branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Feb 19 11:04:39 EST 2013


Author: manaRH
Date: 2013-02-19 11:04:38 -0500 (Tue, 19 Feb 2013)
New Revision: 15407

Modified:
   branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserAccount.java
   branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserPermission.java
   branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserRole.java
Log:
JBSEAM-5070 use strategy=GenerationType.IDENTITY in seam-gen IDM templates

Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserAccount.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserAccount.java	2013-02-19 16:04:31 UTC (rev 15406)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserAccount.java	2013-02-19 16:04:38 UTC (rev 15407)
@@ -6,6 +6,7 @@
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.JoinTable;
@@ -32,7 +33,7 @@
 	private Set<UserRole> roles;
 
 	@Id
-	@GeneratedValue
+	@GeneratedValue(strategy=GenerationType.IDENTITY)
 	public Long getId() {
 		return id;
 	}

Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserPermission.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserPermission.java	2013-02-19 16:04:31 UTC (rev 15406)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserPermission.java	2013-02-19 16:04:38 UTC (rev 15407)
@@ -4,6 +4,7 @@
 
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.Table;
 
@@ -25,7 +26,7 @@
    private String action;
    private String discriminator;
    
-   @Id @GeneratedValue
+   @Id @GeneratedValue(strategy=GenerationType.IDENTITY)
    public Long getId()
    {
       return id;

Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserRole.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserRole.java	2013-02-19 16:04:31 UTC (rev 15406)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/src/UserRole.java	2013-02-19 16:04:38 UTC (rev 15407)
@@ -5,6 +5,7 @@
 
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.JoinTable;
@@ -28,7 +29,7 @@
 	private Set<UserRole> groups;
 
 	@Id
-	@GeneratedValue
+	@GeneratedValue(strategy=GenerationType.IDENTITY)
 	public Long getId() {
 		return id;
 	}



More information about the seam-commits mailing list