[seam-commits] Seam SVN: r13370 - branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/security/permission.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Jul 13 10:26:53 EDT 2010


Author: manaRH
Date: 2010-07-13 10:26:52 -0400 (Tue, 13 Jul 2010)
New Revision: 13370

Modified:
   branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/security/permission/EntityIdentifierStrategy.java
Log:
JBPAPP-3855 - fixed EntityIdentifierStrategy.getIdentifier

Modified: branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/security/permission/EntityIdentifierStrategy.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/security/permission/EntityIdentifierStrategy.java	2010-07-13 12:23:29 UTC (rev 13369)
+++ branches/enterprise/JBPAPP_5_0/src/main/org/jboss/seam/security/permission/EntityIdentifierStrategy.java	2010-07-13 14:26:52 UTC (rev 13370)
@@ -45,8 +45,8 @@
 
    public String getIdentifier(Object target)
    {
-      return String.format("%s:%s", getIdentifierName(target.getClass()),  
-        persistenceProvider.getId(target, lookupEntityManager()).toString());
+      Object persProviderId = persistenceProvider.getId(target, lookupEntityManager());
+      return String.format("%s:%s", getIdentifierName(target.getClass()), persProviderId);
    }
    
    private String getIdentifierName(Class cls)



More information about the seam-commits mailing list