From a507308c2ba225b265d64ce809ba529c651c52aa Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 15 Sep 2008 18:37:04 +0000 Subject: [PATCH] Zell reminds me that I want to use FieldDefinition rather than FieldOverride which is meant to be used only in certain circumstances. --- src/java/com/samskivert/jdbc/depot/BuildVisitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/samskivert/jdbc/depot/BuildVisitor.java b/src/java/com/samskivert/jdbc/depot/BuildVisitor.java index 6303488..56cea4c 100644 --- a/src/java/com/samskivert/jdbc/depot/BuildVisitor.java +++ b/src/java/com/samskivert/jdbc/depot/BuildVisitor.java @@ -509,7 +509,7 @@ public abstract class BuildVisitor implements ExpressionVisitor if (override != null) { boolean useOverride; if (override instanceof FieldOverride) { - if (fm.getComputed() != null) { + if (fm.getComputed() != null && dm.getComputed() != null) { throw new IllegalArgumentException( "FieldOverride cannot be used on @Computed field: " + field); }