diff --git a/src/java/com/samskivert/jdbc/depot/DepotRepository.java b/src/java/com/samskivert/jdbc/depot/DepotRepository.java index cd91e4c8..f2bdc732 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