Hey David,
see below.
> // Check if findByPrimaryKey
> // If so we check if the entity is in cache first
> if (finderMethod.getName().equals("findByPrimaryKey"))
> {
> Object key = ctx.getCacheKey();
> if (key == null)
> {
> key =
> ((EntityCache)con.getInstanceCache()).createCacheKey(args[0]);
> }
> if (con.getInstanceCache().isActive(key))
> return args[0]; // Object is active -> it exists
Here you'd better return key (not args[0]).
Simon
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]