Author: dimuthul
Date: Mon Dec 10 00:01:10 2007
New Revision: 10772

Log:

Fixing the Card Revoke issue.



Modified:
   trunk/solutions/identity/modules/identity-provider/conf/wso2identity.hbm.xml

Modified: 
trunk/solutions/identity/modules/identity-provider/conf/wso2identity.hbm.xml
==============================================================================
--- 
trunk/solutions/identity/modules/identity-provider/conf/wso2identity.hbm.xml    
    (original)
+++ 
trunk/solutions/identity/modules/identity-provider/conf/wso2identity.hbm.xml    
    Mon Dec 10 00:01:10 2007
@@ -18,7 +18,7 @@
         <property name="tokenType" column="token_type" not-null="true"/>
         <property name="dateIssued" column="date_issued" not-null="true"/>
         <property name="dateExpires" column="date_expires" not-null="true"/>
-        <many-to-one name="card" column="card_id" not-null="true"/>
+        <many-to-one name="card" column="card" not-null="false"/>
     </class>
     
     <!-- #################################################### -->
@@ -189,7 +189,7 @@
         <property name="lastUpdatedTime" type="timestamp" 
column="c_last_updated" not-null="true"/>
 
         <many-to-one name="relyingParty" column="rp_id"/>
-       <many-to-one name="personalRelyingParty" column="personal_rp_id"/>
+           <many-to-one name="personalRelyingParty" column="personal_rp_id"/>
         <property name="userId" column="user_id" not-null="true"/>
         <property name="ppid" column="value" unique="true"/>
    </class>
@@ -251,8 +251,8 @@
         <property name="cardId" column="card_Id" not-null="true"/>
         <property name="dateIssued" column="date_Issued" not-null="true"/>
         <property name="dateExpires" column="date_Expires" not-null="true"/>
-        <set name="tokens" lazy="true">
-            <key column="card_id"/>
+        <set name="tokens" lazy="true" cascade="all">
+            <key column="card"/>
             <one-to-many 
class="org.wso2.solutions.identity.persistence.dataobject.IssuedTokensDO"/>
         </set>
    </class>

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to