[seam-commits] Seam SVN: r13303 - in modules/security/trunk/examples/idmconsole/src/main: resources and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Jun 25 00:36:51 EDT 2010
Author: shane.bryzak at jboss.com
Date: 2010-06-25 00:36:50 -0400 (Fri, 25 Jun 2010)
New Revision: 13303
Added:
modules/security/trunk/examples/idmconsole/src/main/resources/import.sql
Modified:
modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObject.java
modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java
Log:
fix import sql
Modified: modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObject.java
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObject.java 2010-06-25 02:33:25 UTC (rev 13302)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObject.java 2010-06-25 04:36:50 UTC (rev 13303)
@@ -1,9 +1,11 @@
package org.jboss.seam.security.examples.idmconsole.model;
import java.io.Serializable;
+
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
+import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import org.jboss.seam.security.annotations.management.IdentityProperty;
@@ -45,6 +47,7 @@
}
@ManyToOne @IdentityProperty(PropertyType.TYPE)
+ @JoinColumn(name = "IDENTITY_OBJECT_TYPE_ID")
public IdentityObjectType getType()
{
return type;
Modified: modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java 2010-06-25 02:33:25 UTC (rev 13302)
+++ modules/security/trunk/examples/idmconsole/src/main/java/org/jboss/seam/security/examples/idmconsole/model/IdentityObjectCredential.java 2010-06-25 04:36:50 UTC (rev 13303)
@@ -5,6 +5,7 @@
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
+import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import org.jboss.seam.security.annotations.management.IdentityProperty;
@@ -36,7 +37,7 @@
this.id = id;
}
- @ManyToOne
+ @ManyToOne @JoinColumn(name = "IDENTITY_OBJECT_ID")
public IdentityObject getIdentityObject()
{
return identityObject;
@@ -48,6 +49,7 @@
}
@ManyToOne @IdentityProperty(PropertyType.TYPE)
+ @JoinColumn(name = "CREDENTIAL_TYPE_ID")
public IdentityObjectCredentialType getType()
{
return type;
Added: modules/security/trunk/examples/idmconsole/src/main/resources/import.sql
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/resources/import.sql (rev 0)
+++ modules/security/trunk/examples/idmconsole/src/main/resources/import.sql 2010-06-25 04:36:50 UTC (rev 13303)
@@ -0,0 +1,9 @@
+insert into IdentityObjectType(id, name) values (1, 'USER');
+insert into IdentityObjectType(id, name) values (2, 'GROUP');
+
+insert into IdentityObject (id, name, identity_object_type_id) values (1, 'shane', 1);
+
+insert into IdentityObjectCredentialType (id, name) values (1, 'PASSWORD');
+
+insert into IdentityObjectCredential (id, identity_object_id, credential_type_id, value) values (1, 1, 1, 'password');
+
More information about the seam-commits
mailing list