From 56c4394b29c23506d2894de4447b178bfe2ff4ce Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 8 Sep 2008 16:48:32 +0000 Subject: [PATCH] Beans/frank. --- src/java/com/samskivert/jdbc/depot/DepotRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/samskivert/jdbc/depot/DepotRepository.java b/src/java/com/samskivert/jdbc/depot/DepotRepository.java index cd91e4c..f2bdc73 100644 --- a/src/java/com/samskivert/jdbc/depot/DepotRepository.java +++ b/src/java/com/samskivert/jdbc/depot/DepotRepository.java @@ -209,7 +209,7 @@ public abstract class DepotRepository throws DatabaseException { DepotMarshaller marsh = _ctx.getMarshaller(type); - boolean useExplicit = !skipCache || (marsh.getTableName() == null) || + boolean useExplicit = skipCache || (marsh.getTableName() == null) || !marsh.hasPrimaryKey() || !_ctx.isUsingCache(); // queries on @Computed records or the presence of FieldOverrides use the simple algorithm