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)
Show replies by date