Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Corrected logic error for enforcing 'findInitial' parameter

    on Version annotation.

Signed-off-by: Ian McDonagh <ianmdev@yahoo.co.uk>
  • Loading branch information...
commit 73b6800bd52225ff8414b71fd0bffef575125fda 1 parent bd3c5ed
ianmdev authored February 14, 2009
2  ActiveObjects/src/net/java/ao/EntityManager.java
@@ -713,7 +713,7 @@ public void delete(RawEntity<?>... entities) throws SQLException {
713 713
 		
714 714
     // <ian>
715 715
     Version version = type.getAnnotation(Version.class);
716  
-    if (version != null && version.findInitial()) {
  716
+    if (version != null && !version.findInitial()) {
717 717
       // Add initial version check to exclude
718 718
       // objects that have only been created and not saved yet.
719 719
       if (query.getWhereClause() == null) {

0 notes on commit 73b6800

Please sign in to comment.
Something went wrong with that request. Please try again.