Build: #329 failed Manual run by Andrew Eisenberg

Build result summary

Details

Completed
Duration
94 minutes
Labels
None
Revision
3ea1bcead94e6d21cb26e2a18726da81e237ddaf 3ea1bcead94e6d21cb26e2a18726da81e237ddaf
Total tests
1079
Failing since
#324 (Changes by Andy Clement)

Code commits

Author Commit Message Commit date
Andrew Eisenberg &lt;andrew@eisenberg.as&gt; Andrew Eisenberg <andrew@eisenberg.as> 3ea1bcead94e6d21cb26e2a18726da81e237ddaf 3ea1bcead94e6d21cb26e2a18726da81e237ddaf fix remaining compile error since move to AJ 1.7

Tests

New test failures 60
Status Test View job Duration
Collapse Failed ASTRewritingPointcutDeclTest testMethodDeclChanges History
Default Job 1 sec
junit.framework.AssertionFailedError: expecting: package test1; public abstract class E {     public float E(int p1, int p2, int p3) {}     public float gee(int p1, int p2, int p3) throws IllegalArgumentException {}     public hee(int p1, int p2, int p3) throws IllegalArgumentException {}     public void xii(int p1, int p2, int p3) throws IllegalArgumentException, IllegalAccessException {}     public void jee(float m, int p2, int p3) throws IllegalArgumentException, ArrayStoreException {}     public abstract void kee(float m1, float m2, int p3) throws ArrayStoreException, IllegalAccessException, InterruptedException;     public abstract void lee(float m1, float m2, float m3) throws IllegalArgumentException, ArrayStoreException, SecurityException; } =====got: package test1; public abstract class E {     public float E(int p1, int p2, int p3) {}     public float gee(int p1, int p2, int p3) throws IllegalArgumentException {}     public hee(int p1, int p2, int p3) throws IllegalArgumentException {}     public void xii(int p1, int p2, int p3) throws IllegalArgumentException, IllegalAccessException {}     public void jee(int p1, int p2, int p3) throws IllegalArgumentException, IllegalAccessException {}     public abstract void kee(int p1, int p2, int p3) throws IllegalArgumentException, IllegalAccessException, SecurityException;     public abstract void lee(int p1, int p2, int p3) throws IllegalArgumentException, IllegalAccessException, SecurityException; } 
junit.framework.AssertionFailedError: expecting: package test1;
public abstract class E {
    public float E(int p1, int p2, int p3) {}
    public float gee(int p1, int p2, int p3) throws IllegalArgumentException {}
    public hee(int p1, int p2, int p3) throws IllegalArgumentException {}
    public void xii(int p1, int p2, int p3) throws IllegalArgumentException, IllegalAccessException {}
    public void jee(float m, int p2, int p3) throws IllegalArgumentException, ArrayStoreException {}
(31 more lines...)
Collapse Failed Bug273691Reconciling testProblemFindingAll History
Default Job 3 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- public aspect AspectWithDotClass {  int x1;  private boolean method() {   Object o = new Object();   if (!o.equals(void.class)) {    this.x1 ++ ;    return true;   }   return false;  } }     ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
public aspect AspectWithDotClass {
	int x1;
	private boolean method() {
		Object o = new Object();
		if (!o.equals(void.class)) {
(170 more lines...)
Collapse Failed Bug347021ProblemFinderTests testForLoopOnThis History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; abstract aspect IterableAspect {   public void C.map() {     for (String value : this) { value.toString(); }   } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
abstract aspect IterableAspect {
  public void C.map() {
    for (String value : this) { value.toString(); }
  }
(152 more lines...)
Collapse Failed Bug347021ProblemFinderTests testCastOnThis History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; abstract aspect IterableAspect {   public void C.map() {     ((C) this).map();   } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
abstract aspect IterableAspect {
  public void C.map() {
    ((C) this).map();
  }
(152 more lines...)
Collapse Failed Bug347021ProblemFinderTests testBooleanExpressionOnThis History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; abstract aspect IterableAspect {   public void C.map() {     if (this instanceof C) { }   } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
abstract aspect IterableAspect {
  public void C.map() {
    if (this instanceof C) { }
  }
(152 more lines...)
Collapse Failed ExtraAspectMethodProblemFinderTests testNoProblemsAspectOf History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; public aspect Aspect {   void x() {      aspectOf();     this.aspectOf();     Aspect.aspectOf();   }} ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
public aspect Aspect {
  void x() { 
    aspectOf();
    this.aspectOf();
(155 more lines...)
Collapse Failed ExtraAspectMethodProblemFinderTests testNoProblemsHasAspect History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; public aspect Aspect {   void x() {      hasAspect();     this.hasAspect();     Aspect.hasAspect();   }} ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
public aspect Aspect {
  void x() { 
    hasAspect();
    this.hasAspect();
(155 more lines...)
Collapse Failed ExtraAspectMethodProblemFinderTests testNoProblemsGetWithinTypeName History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; public aspect Aspect pertypewithin(p.*) {   void x() {      getWithinTypeName();     this.getWithinTypeName();   }} ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
public aspect Aspect pertypewithin(p.*) {
  void x() { 
    getWithinTypeName();
    this.getWithinTypeName();
(152 more lines...)
Collapse Failed GenericProblemFinderTests testNoProblemsAbstractAspectDeclareParents History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; public abstract aspect AbstractAspect { declare parents : Class extends X; declare parents : Class extends Y; } aspect Aspect extends AbstractAspect {     void something(X x) {        something(new Class());     }     void something2(Y y) {         something2(new Class());     } } interface X { } interface Y { } class Class { } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
public abstract aspect AbstractAspect {
declare parents : Class extends X;
declare parents : Class extends Y;
}
(182 more lines...)
Collapse Failed GenericProblemFinderTests testBug343001a History
Default Job 5 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; import java.util.List; import java.util.ArrayList; public class BadClass {     void g() {         List<Comparable<?>> v1 = persist();         ArrayList<Comparable<?>> v2 = this.persist();         String v3 = persist2();         BadClass v4 = this.persist2();         System.out.println(""+v1+v2+v3+v4);     }  } aspect Foo {     public <T extends List<Comparable<?>>>  T BadClass.persist() {         return null;     }     public <T> T BadClass.persist2() {         return null;     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
import java.util.List;
import java.util.ArrayList;
public class BadClass {
    void g() {
(194 more lines...)
Collapse Failed GenericProblemFinderTests testBug343001b History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package q; import java.util.List; import p.BadClass;aspect Foo {     public <T extends List<Comparable<?>>>  T BadClass.persist() {         return null;     }     public <T> T BadClass.persist2() {         return null;     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package q;
import java.util.List;
import p.BadClass;aspect Foo {
    public <T extends List<Comparable<?>>>  T BadClass.persist() {
        return null;
(164 more lines...)
Collapse Failed GenericProblemFinderTests testNoProblemsGenericAbstractAspectDeclareParents History
Default Job 5 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; public abstract aspect AbstractAspect<S, T> { declare parents : Class extends S; declare parents : Class extends T; } aspect Aspect extends AbstractAspect<X, Y> {     void something(X x) {        something(new Class());     }     void something2(Y y) {         something2(new Class());     } } interface X { } interface Y { } class Class { } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
public abstract aspect AbstractAspect<S, T> {
declare parents : Class extends S;
declare parents : Class extends T;
}
(182 more lines...)
Collapse Failed GenericProblemFinderTests testNoProblemsGenericAbstractAspectDeclareParents2 History
Default Job 9 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; aspect Aspect extends AbstractAspect<X, Y> {       void something(X x) {        something(new Class());     }     void something2(Y y) {         something2(new Class());     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
aspect Aspect extends AbstractAspect<X, Y> {


    void something(X x) {
(167 more lines...)
Collapse Failed GenericProblemFinderTests testBug343001c History
Default Job 8 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package q; import java.util.List; import p.BadClass; aspect Foo {     public <T extends List<Comparable<?>>> T BadClass.persist() {         return null;     }     public <T> T BadClass.persist2() {         return null;     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package q;
import java.util.List;
import p.BadClass;
aspect Foo {
    public <T extends List<Comparable<?>>> T BadClass.persist() {
(167 more lines...)
Collapse Failed GenericProblemFinderTests testBug343001d History
Default Job 7 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package q; import java.util.List; import p.BadClass; aspect Foo {     public <T extends List<Comparable<?>>> T BadClass.persist(T a) {         return null;     }     public <T> T BadClass.persist2(T a) {         return null;     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package q;
import java.util.List;
import p.BadClass;
aspect Foo {
    public <T extends List<Comparable<?>>> T BadClass.persist(T a) {
(167 more lines...)
Collapse Failed ITITProblemFinderTests testITITReferenceWithOddImportStatements History
Default Job 9 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; import java.util.List;privileged aspect CityAspect {     public static class City.Keys {         public static final Function<List<String>, City> CITY = null;         public static final Function<java.util.HashMap<String, String>, City> CITY2 = null;         public static final List<String> xxx(int y, String z) { return null; }    }     void x() {         City.Keys.CITY.get();     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
import java.util.List;privileged aspect CityAspect {
    public static class City.Keys {
        public static final Function<List<String>, City> CITY = null;
        public static final Function<java.util.HashMap<String, String>, City> CITY2 = null;
(166 more lines...)
Collapse Failed ITITProblemFinderTests testITITReferenceInTargetTypeWithOddImportStatements History
Default Job 7 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; import java.util.List;privileged aspect CityAspect {     public static class City.Keys {         public static final Function<Object, City> CITY = null;         public static final List<String> xxx(int y, String z) { return null; }    }     void x() {         City.Keys.CITY.get();     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
import java.util.List;privileged aspect CityAspect {
    public static class City.Keys {
        public static final Function<Object, City> CITY = null;
        public static final List<String> xxx(int y, String z) { return null; }    }
(163 more lines...)
Collapse Failed ITITProblemFinderTests testITITReferenceInTargetType History
Default Job 7 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; import java.util.List;privileged aspect CityAspect {     public static class City.Keys {         public static final Function<Object, City> CITY = null;         public static final List<String> xxx(int y, String z) { return null; }    }     void x() {         City.Keys.CITY.get();     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
import java.util.List;privileged aspect CityAspect {
    public static class City.Keys {
        public static final Function<Object, City> CITY = null;
        public static final List<String> xxx(int y, String z) { return null; }    }
(163 more lines...)
Collapse Failed ITITProblemFinderTests testITITReferenceInThirdClass History
Default Job 8 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p; import java.util.List;privileged aspect CityAspect {     public static class City.Keys {         public static final Function<List<String>, City> CITY = null;         public static final Function<java.util.HashMap<String, String>, City> CITY2 = null;         public static final List<String> xxx(int y, String z) { return null; }    }     void x() {         City.Keys.CITY.get();     } } ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;
import java.util.List;privileged aspect CityAspect {
    public static class City.Keys {
        public static final Function<List<String>, City> CITY = null;
        public static final Function<java.util.HashMap<String, String>, City> CITY2 = null;
(166 more lines...)
Collapse Failed ProblemFinderTests testReconcilerWithErrors History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } } gggg ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } } gggg ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

public class OtherClass {
    void x() {
        Demo d = new Demo(4);
(127 more lines...)
Collapse Failed ProblemFinderTests testNoProblemsOtherClass2 History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test2;  import test.Demo;  public class OtherClass2 {     void x() {         Demo d = new Demo(4);         ((MyAspect2.Bar) d).bar();         ((MyAspect2.Foo) d).baz();                  ((Cloneable) d).toString();     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test2;

import test.Demo;

public class OtherClass2 {
(94 more lines...)
Collapse Failed ProblemFinderTests testNoReturnTypeError History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } t() { } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

public class OtherClass {
    void x() {
        Demo d = new Demo(4);
(82 more lines...)
Collapse Failed ProblemFinderTests testNoProblemsOtherClass History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

public class OtherClass {
    void x() {
        Demo d = new Demo(4);
(82 more lines...)
Collapse Failed ProblemFinderTests testNoMethodFound History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).fffffff(null);         x++;         this.x++;     }  }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).fffffff(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

import java.util.List;

public class Demo {
(184 more lines...)
Collapse Failed ProblemFinderTests testReconciler History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

public class OtherClass {
    void x() {
        Demo d = new Demo(4);
(127 more lines...)
Collapse Failed ProblemFinderTests testNoProblemsDemo History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

import java.util.List;

public class Demo {
(94 more lines...)
Collapse Failed ProblemFinderTests testNoProblemsMyAspect History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test; import java.util.List;  public aspect MyAspect {     java.util.List<String> Demo.list = null;  int Demo.x = 5;    void Demo.foo(java.util.List<String> x) {     }    public Demo.new(int x) { }       declare warning : execution(* *.nothing(..)) : "blah";          declare error : execution(* *.nothing(..)) : "blah";       declare soft : Exception : execution(* *.nothing(..));         protected pointcut s():         call(String Demo.toString(..));      before (): s() {     }     after (): s() {     }     void around (): s() {         proceed();         return;     }     after () returning(): s() {     }     after () throwing(): s() {     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;
import java.util.List;

public aspect MyAspect {
    java.util.List<String> Demo.list = null;
(163 more lines...)
Collapse Failed ProblemFinderTests testSyntaxError History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } } gggg ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

public class OtherClass {
    void x() {
        Demo d = new Demo(4);
(82 more lines...)
Collapse Failed ProblemFinderTests testNoProblemsMyAspectCU History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test2;  public aspect MyAspect2 {          static interface Bar {              }     static class Foo {         public Foo() {                      }     }          // must use fully qualified names     declare parents : test.Demo implements test2.MyAspect2.Bar, Cloneable;          // must use fully qualified names     declare parents : test.Demo extends test2.MyAspect2.Foo;          int Bar.bar() {          return 7;     }          int Foo.baz() {         return 7;     }      }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test2;

public aspect MyAspect2 {
    
    static interface Bar {
(139 more lines...)
Collapse Failed ProblemFinderTests13 testProblemFindingAll History
Default Job 3 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package pack;  public aspect Aspect {  public X X.getMe() {   return this;  }  }   ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package pack;

public aspect Aspect {
	public X X.getMe() {
		return this;
(161 more lines...)
Collapse Failed ProblemFinderTests14 testProblemFindingAll History
Default Job 3 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package f;  public aspect Aspect {  g.Class.new() {   this();  }  }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package f;

public aspect Aspect {
	g.Class.new() {
		this();
(161 more lines...)
Collapse Failed ProblemFinderTests16 testProblemFindingAll History
Default Job 3 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- public aspect MyAspect {     MyAspect() {         super();     }      declare parents: MyObject implements MyInterface;      public boolean MyInterface.instanceOf(Class<? extends Object> c) {         return c.isInstance(this);     } }  interface MyInterface { } class MyObject {      MyObject() {         super();     } }  class Main {     Main() {         super();     }     public static void main(String[] args) {         new MyObject().instanceOf(MyObject.class);     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
public aspect MyAspect {
    MyAspect() {
        super();
    }

(218 more lines...)
Collapse Failed ProblemFinderTests2 testNoModelAndNoProblems5 History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test2;  import test.Demo;  public class OtherClass2 {     void x() {         Demo d = new Demo(4);         ((MyAspect2.Bar) d).bar();         ((MyAspect2.Foo) d).baz();                  ((Cloneable) d).toString();     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test2;

import test.Demo;

public class OtherClass2 {
(172 more lines...)
Collapse Failed ProblemFinderTests2 testNoModelAndNoProblems4 History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test2;  public aspect MyAspect2 {          static interface Bar {              }     static class Foo {         public Foo() {                      }     }          // must use fully qualified names     declare parents : test.Demo implements test2.MyAspect2.Bar, Cloneable;          // must use fully qualified names     declare parents : test.Demo extends test2.MyAspect2.Foo;          int Bar.bar() {          return 7;     }          int Foo.baz() {         return 7;     }      }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test2;

public aspect MyAspect2 {
    
    static interface Bar {
(217 more lines...)
Collapse Failed ProblemFinderTests2 testNoModelAndNoProblems3 History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

import java.util.List;

public class Demo {
(172 more lines...)
Collapse Failed ProblemFinderTests2 testNoModelAndNoProblems1 History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test; import java.util.List;  public aspect MyAspect {     java.util.List<String> Demo.list = null;  int Demo.x = 5;    void Demo.foo(java.util.List<String> x) {     }    public Demo.new(int x) { }       declare warning : execution(* *.nothing(..)) : "blah";          declare error : execution(* *.nothing(..)) : "blah";       declare soft : Exception : execution(* *.nothing(..));         protected pointcut s():         call(String Demo.toString(..));      before (): s() {     }     after (): s() {     }     void around (): s() {         proceed();         return;     }     after () returning(): s() {     }     after () throwing(): s() {     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;
import java.util.List;

public aspect MyAspect {
    java.util.List<String> Demo.list = null;
(241 more lines...)
Collapse Failed ProblemFinderTests2 testNoModelAndNoProblems2 History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package test;

public class OtherClass {
    void x() {
        Demo d = new Demo(4);
(160 more lines...)
Collapse Failed ProblemFinderTests3 testNoProblemsDeleteActionAspect History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package generics; import java.util.List;   public interface DeleteAction<T extends Object>{      public void delete();          public T getSelected();   }    ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package generics;
import java.util.List;


public interface DeleteAction<T extends Object>{
(166 more lines...)
Collapse Failed ProblemFinderTests3 testNoProblemsDeleteAction History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package generics; import java.util.List;   public interface DeleteAction<T extends Object>{      public void delete();          public T getSelected();   }    ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package generics;
import java.util.List;


public interface DeleteAction<T extends Object>{
(166 more lines...)
Collapse Failed ProblemFinderTests3 testNoProblemsActionExecutor History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package generics;  public class ActionExecutor {  public static void main(String[] args) {   DeleteAction<String> d = new DeleteAction<String>() {    public String getSelected() {     throw new RuntimeException();    }       };   d.delete2++;    d.delete3.add(null);  }    void nothing2(DeleteAction<String> g) {   g.delete2++;  } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package generics;

public class ActionExecutor {
	public static void main(String[] args) {
		DeleteAction<String> d = new DeleteAction<String>() {
(198 more lines...)
Collapse Failed ProblemFinderTests7 testProblemFinding1 History
Default Job 3 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN -------------------------------------   public privileged aspect IsPrivileged {  public static void doSomething() {   new HasPrivateMembers().x++;   HasPrivateMembers.Nothing nothing = new HasPrivateMembers().getNothing();   nothing.toString();  } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
 
public privileged aspect IsPrivileged {
	public static void doSomething() {
		new HasPrivateMembers().x++;
		HasPrivateMembers.Nothing nothing = new HasPrivateMembers().getNothing();
(159 more lines...)
Collapse Failed ProblemFinderTests7 testProblemFinding2 History
Default Job 3 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN -------------------------------------   public privileged aspect IsPrivilegedWithError {  public static void doSomething() {   new HasPrivateMembers().errorMethod();  // should be an error   new HasPrivateMembers().getNothing(6);  // should be an error  } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
 
public privileged aspect IsPrivilegedWithError {
	public static void doSomething() {
		new HasPrivateMembers().errorMethod();  // should be an error
		new HasPrivateMembers().getNothing(6);  // should be an error
(156 more lines...)
Collapse Failed ProblemFinderTests9 testProblemFindingAll History
Default Job 5 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- /*  Copyright (c) Xerox Corporation 1998-2002.  All rights reserved.  Use and copying of this software and preparation of derivative works based upon this software are permitted.  Any distribution of this software or derivative works must comply with all applicable United States export control laws.  This software is made available AS IS, and Xerox Corporation makes no warranty about the software, its performance or its conformity to any specification.  |<---            this code is formatted to fit into 80 columns             --->| |<---            this code is formatted to fit into 80 columns             --->| |<---            this code is formatted to fit into 80 columns             --->|  Ship.java Part of the Spacewar system.  */  package spacewar;  class Ship extends SpaceObject {      pointcut helmCommandsCut(Ship ship):         target(ship) && ( call(void rotate(int))     ||      call(void thrust(boolean)) ||      call(void fire()) );       /**      * Energy and Damage are key values in the state of a ship.  Energy is      * basically about fuel, and damage is about how bad a shape we are in.      *      * The energy related values are:      * <ul>      *   <li>MAX_ENERGY</li>      *   <li>BULLET_ENERGY</li>      *   <li>ACCELERATION_ENERGY_FACTOR</li>      *   <li>energy</li>      * </ul>      * The damage related values are:      * <ul>      *   <li>MAX_DAMAGE</li>      *   <li>BULLET_DAMAGE</li>      *   <li>COLLISION_DAMAGE_FACTOR</li>      *   <li>damage</li>      * </ul>      * Finally, REPAIR_RATE is the rate at which energy is consumed to fix      * damage.      *      */     private static final int    MAX_ENERGY = 100;     private static final int    BULLET_ENERGY= 2;     private static final double ACCELERATION_COST_FACTOR = 0.05;      //XXX was private     static final int    MAX_DAMAGE = 100;     private static final int    BULLET_DAMAGE = 15;     private static final double COLLISION_DAMAGE_FACTOR = 0.1;      private static final double REPAIR_RATE = 0.08;       private static final int    EXPLOSION_LENGTH = 10;      static final int    BULLET_SPEED = 10;      static final int    CLOCKWISE = 1;     static final int    STOP = 0;     static final int    COUNTERCLOCKWISE = (-1);      static final double DEFAULT_ANGULAR_VELOCITY = 0.2;     static final double DEFAULT_ACCELERATION = .4;      static private final int SIZE = 30;     //Can't be changed for now!!!      private double    energy;               // range: 0 to MAX_ENERGY     private double    damage;               // range: 0 to MAX_DAMAGE     private double    orientation;          // in degrees     private double    angularVel;           // in ???     private double    xAcc, yAcc, rAcc;     //     private int       countdown;            // remaining explosion time      private Pilot     pilot;      Ship(Game theGame, double xPos, double yPos, double orientation) {         super(theGame, xPos, yPos, 0, 0);         xAcc = 0;         yAcc = 0;         this.orientation = orientation;         angularVel = 0;          energy = MAX_ENERGY;         damage = 0;         countdown = EXPLOSION_LENGTH;     }       int getSize()            { return SIZE; }      double getEnergy()       { return energy; }     double getDamage()       { return damage; }     double getOrientation()  { return orientation; }     double getRAcc()         { return rAcc; }      Pilot getPilot()         { return pilot; }     void  setPilot (Pilot p) { pilot = p; }      float getEnergyLevel() {         return (float)energy / (float)MAX_ENERGY;     }     float getDamageLevel() {         return (float)damage / (float)MAX_DAMAGE;     }      /** returns false if energy is out, otherwise decrements energy by amount      * and returns true      */     boolean expendEnergy(double amount) {         if (amount <= energy) {             energy -= amount;             return true;         }         else             return false;     }      /** increments damage by amount and handles the destruction of a ship if      * damage reaches MAX_DAMAGE.      */     void inflictDamage(double amount) {         if (amount < 0)     // shouldn't happen             return;         damage = Math.min(MAX_DAMAGE, damage + amount);         if (damage == MAX_DAMAGE)             setIsAlive(false);     }      /** repairs some damage      */     void repairDamage(double amount) {         if (amount < 0)     // shouldn't happen             return;         if (damage == 0)             return;         damage = Math.max(0, damage - amount);     }      public void clockTick() {         if (! isAlive())  {             //             // If we aren't alive, but we are still in the registry, it means             // we are exploding.  countdown counts the length of the explosion.             //             if (--countdown == 0)                 die();         }         else {             if (angularVel != 0) {                 orientation += angularVel;                 xAcc = rAcc * Math.cos(orientation);                 yAcc = rAcc * Math.sin(orientation);             }             setXVel(getXVel() + xAcc);             setYVel(getYVel() + yAcc);              //expend energy             if (!expendEnergy(rAcc * ACCELERATION_COST_FACTOR))                 rAcc = xAcc = yAcc = 0;              // fix damage             if (energy > 10 && damage > REPAIR_RATE) {                 expendEnergy(REPAIR_RATE);                 repairDamage(REPAIR_RATE);             }         }         super.clockTick();     }      /**      * First check to make sure we have enough energy to accelerate.  If      * we do, then go ahead and do so.  Acceleration is in the direction      * we are already facing (i.e. orientation).      */     void setAcceleration(double acc) {         if (acc * ACCELERATION_COST_FACTOR <= energy) {             rAcc = acc;             xAcc = rAcc * Math.cos(orientation);             yAcc = rAcc * Math.sin(orientation);         }     }      /**      * First check to make sure we have enough energy to rotate.  If      * we do, then go ahead and do so.      */     void setAngularVelocity(double omega) {         // changing direction of rotation takes energy         if (!expendEnergy(Math.abs(omega - angularVel) / 2))             return;         //sets amount of degree rotation per clock tick, in radians;         //clockwise is positive         angularVel = omega;     }      /** affect rotation thrusters.  Direction can be one of {@link      * #CLOCKWISE}, {@link #COUNTERCLOCKWISE}, or zero for turning off      * the thrusters.      */     void rotate(int direction) {         setAngularVelocity(           direction == CLOCKWISE        ? DEFAULT_ANGULAR_VELOCITY :           direction == COUNTERCLOCKWISE ? -DEFAULT_ANGULAR_VELOCITY :           0);     }      /** turn on acceleration */     void thrust(boolean onOff) {         setAcceleration(onOff ? DEFAULT_ACCELERATION : 0);     }      /** create a bullet and fire it */     void fire() {         // firing a shot takes energy         if (!expendEnergy(BULLET_ENERGY))             return;          //create a bullet object so it doesn't hit the ship that's firing it         double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));         double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));          // create the actual bullet         new Bullet(          getGame(),          (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),          (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),          xV,          yV);     }       void handleCollision(SpaceObject obj) {         if (obj instanceof Ship) {             // should never be called. ship - ship collisions are handled in             // Ship.bounce(Ship shipA, Ship shipB)         }         else if (obj instanceof Bullet) {             inflictDamage(BULLET_DAMAGE);         }         else if (obj instanceof EnergyPacket) {             double packetEnergy = ((EnergyPacket)obj).getEnergy();             energy = Math.max(0, Math.min(energy + packetEnergy, MAX_ENERGY));         }         else {             System.err.println("collision with UFO!");         }     }      static void bounce(Ship shipA, Ship shipB) {         double  dx, dy, denominator,             xAccA, yAccA, xAccB, yAccB, damage,             xComp, yComp, dvx, dvy;          dx = Math.abs(shipA.getXPos() - shipB.getXPos());         dy = Math.abs(shipA.getYPos() - shipB.getYPos());         denominator = Math.sqrt(dx * dx + dy * dy);         xComp = dx / denominator;         yComp = dy / denominator;         xAccA = shipB.getXVel() * xComp + shipA.getXVel() * (1 - xComp) -             shipA.getXVel();         yAccA = shipB.getYVel() * yComp + shipA.getYVel() * (1 - yComp) -             shipA.getYVel();         xAccB = shipA.getXVel() * xComp + shipB.getXVel() * (1 - xComp) -             shipB.getXVel();         yAccB = shipA.getYVel() * yComp + shipB.getYVel() * (1 - yComp) -             shipB.getYVel();         shipA.accelerate(xAccA, yAccA);         shipB.accelerate(xAccB, yAccB);         dvx = shipA.getXVel() - shipB.getXVel();         dvy = shipA.getYVel() - shipA.getYVel();         damage = COLLISION_DAMAGE_FACTOR * (dvx * dvx + dvy * dvy);         shipA.inflictDamage(damage);         shipB.inflictDamage(damage);          // !!!         // !!! poopers!  this does a local time warp.  this has to be a         // !!! violation of the clockTick protocol         // !!!         while (Game.isCollision(shipA, shipB)) {             shipA.clockTick();             shipB.clockTick();         }     } }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  import java.util.List;  public class Demo {          void g() {         new Demo(7).foo(null);         x++;         this.x++;     }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package test;  public class OtherClass {     void x() {         Demo d = new Demo(4);         d.foo(null);         d.x ++;     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
/*

Copyright (c) Xerox Corporation 1998-2002.  All rights reserved.

Use and copying of this software and preparation of derivative works based
(1025 more lines...)
Collapse Failed AspectJBreakpointRulerActionTest testSetBreakpointB History
Default Job 10 secs
junit.framework.AssertionFailedError: The test added errors to the log: Widget disposed too early! java.lang.RuntimeException: Widget disposed too early! at org.eclipse.ui.internal.WorkbenchPartReference$1.widgetDisposed(WorkbenchPartReference.java:172) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263) at org.eclipse.swt.widgets.Widget.release(Widget.java:1080) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:208) at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:469) at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:2305) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:462) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:2241) at org.eclipse.swt.widgets.Display.release(Display.java:3211) at org.eclipse.swt.graphics.Device.dispose(Device.java:246) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:131) at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138) at org.eclipse.test.UITestApplication.run(UITestApplication.java:60) at org.eclipse.test.UITestApplication.start(UITestApplication.java:210) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) at org.eclipse.core.launcher.Main.main(Main.java:34)    The test added errors to the log: Application error org.eclipse.swt.SWTError: XPCOM error -2147467262 at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:2414) at org.eclipse.swt.browser.Mozilla.unhookDOMListeners(Mozilla.java:2844) at org.eclipse.swt.browser.Mozilla.onDispose(Mozilla.java:2437) at org.eclipse.swt.browser.Mozilla$5.handleEvent(Mozilla.java:891) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263) at org.eclipse.swt.widgets.Widget.release(Widget.java:1080) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:208) at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:469) at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:2305) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:462) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:2241) at org.eclipse.swt.widgets.Display.release(Display.java:3211) at org.eclipse.swt.graphics.Device.dispose(Device.java:246) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:131) at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138) at org.eclipse.test.UITestApplication.run(UITestApplication.java:60) at org.eclipse.test.UITestApplication.start(UITestApplication.java:210) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) at org.eclipse.core.launcher.Main.main(Main.java:34)   
junit.framework.AssertionFailedError: The test added errors to the log:
Widget disposed too early!
java.lang.RuntimeException: Widget disposed too early!
at org.eclipse.ui.internal.WorkbenchPartReference$1.widgetDisposed(WorkbenchPartReference.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
(122 more lines...)
Collapse Failed AspectJBreakpointRulerActionTest testSetBreakpointC History
Default Job 10 secs
junit.framework.AssertionFailedError: The test added errors to the log: Widget disposed too early! java.lang.RuntimeException: Widget disposed too early! at org.eclipse.ui.internal.WorkbenchPartReference$1.widgetDisposed(WorkbenchPartReference.java:172) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263) at org.eclipse.swt.widgets.Widget.release(Widget.java:1080) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:208) at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:469) at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:2305) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:462) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:2241) at org.eclipse.swt.widgets.Display.release(Display.java:3211) at org.eclipse.swt.graphics.Device.dispose(Device.java:246) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:131) at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138) at org.eclipse.test.UITestApplication.run(UITestApplication.java:60) at org.eclipse.test.UITestApplication.start(UITestApplication.java:210) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) at org.eclipse.core.launcher.Main.main(Main.java:34)    The test added errors to the log: Application error org.eclipse.swt.SWTError: XPCOM error -2147467262 at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:2414) at org.eclipse.swt.browser.Mozilla.unhookDOMListeners(Mozilla.java:2844) at org.eclipse.swt.browser.Mozilla.onDispose(Mozilla.java:2437) at org.eclipse.swt.browser.Mozilla$5.handleEvent(Mozilla.java:891) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263) at org.eclipse.swt.widgets.Widget.release(Widget.java:1080) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:208) at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:469) at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:2305) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:462) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:2241) at org.eclipse.swt.widgets.Display.release(Display.java:3211) at org.eclipse.swt.graphics.Device.dispose(Device.java:246) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:131) at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138) at org.eclipse.test.UITestApplication.run(UITestApplication.java:60) at org.eclipse.test.UITestApplication.start(UITestApplication.java:210) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) at org.eclipse.core.launcher.Main.main(Main.java:34)   
junit.framework.AssertionFailedError: The test added errors to the log:
Widget disposed too early!
java.lang.RuntimeException: Widget disposed too early!
at org.eclipse.ui.internal.WorkbenchPartReference$1.widgetDisposed(WorkbenchPartReference.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
(122 more lines...)
Collapse Failed AspectJEditorIconTest testEditorIcon History
Default Job 8 secs
junit.framework.AssertionFailedError: The test added errors to the log: Application error org.eclipse.swt.SWTError: XPCOM error -2147467262 at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:2414) at org.eclipse.swt.browser.Mozilla.unhookDOMListeners(Mozilla.java:2844) at org.eclipse.swt.browser.Mozilla.onDispose(Mozilla.java:2437) at org.eclipse.swt.browser.Mozilla$5.handleEvent(Mozilla.java:891) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263) at org.eclipse.swt.widgets.Widget.release(Widget.java:1080) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1293) at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:208) at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:469) at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:2305) at org.eclipse.swt.widgets.Widget.release(Widget.java:1083) at org.eclipse.swt.widgets.Control.release(Control.java:3304) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:462) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:2241) at org.eclipse.swt.widgets.Display.release(Display.java:3211) at org.eclipse.swt.graphics.Device.dispose(Device.java:246) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:131) at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138) at org.eclipse.test.UITestApplication.run(UITestApplication.java:60) at org.eclipse.test.UITestApplication.start(UITestApplication.java:210) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) at org.eclipse.core.launcher.Main.main(Main.java:34)   
junit.framework.AssertionFailedError: The test added errors to the log:
Application error
org.eclipse.swt.SWTError: XPCOM error -2147467262
at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:2414)
at org.eclipse.swt.browser.Mozilla.unhookDOMListeners(Mozilla.java:2844)
at org.eclipse.swt.browser.Mozilla.onDispose(Mozilla.java:2437)
at org.eclipse.swt.browser.Mozilla$5.handleEvent(Mozilla.java:891)
(78 more lines...)
Collapse Failed PetClinicTests testReconciling History
Default Job 11 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect SpecialtyIntegrationTest_Roo_Integration_Test_Itd {          declare parents: SpecialtyIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.SpecialtyDataOnDemand SpecialtyIntegrationTest.specialtyDataOnDemand;              @org.junit.Test         public void SpecialtyIntegrationTest.count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'Specialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest.find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty obj = Specialty.findSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'Specialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Specialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void SpecialtyIntegrationTest.findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Specialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'SpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Specialty> result = Specialty.findAllSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Specialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest.findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Specialty> result = Specialty.findSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Specialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest.flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest.merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest.persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = specialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Specialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Specialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest.remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty.findSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Specialty' with identifier '" + id + "'", Specialty.findSpecialty(id));             }          }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect Specialty_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Specialty.entityManager;              @org.springframework.transaction.annotation.Transactional         public void Specialty.flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Specialty.merge() {             Specialty merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Specialty.persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Specialty.remove() {             this.entityManager.remove(this);             }              public static long Specialty.countSpecialtys() {             return (Long) new Specialty().entityManager.createQuery("select count(o) from Specialty o").getSingleResult();             }              public static com.springsource.petclinic.reference.Specialty Specialty.findSpecialty(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Specialty");                 return new Specialty().entityManager.find(Specialty.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.Specialty> Specialty.findAllSpecialtys() {             return new Specialty().entityManager.createQuery("select o from Specialty o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.Specialty> Specialty.findSpecialtyEntries(int firstResult, int maxResults) {             return new Specialty().entityManager.createQuery("select o from Specialty o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = PetType.class) public class PetTypeEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VisitDataOnDemand_Roo_Dod_Itd {          declare @type: VisitDataOnDemand: @org.springframework.beans.factory.annotation.Configurable;              declare @type: VisitDataOnDemand: @org.springframework.stereotype.Component;              private java.util.Random VisitDataOnDemand.rnd = new java.security.SecureRandom();              private java.util.List<Visit> VisitDataOnDemand.data;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.PetDataOnDemand VisitDataOnDemand.petDataOnDemand;              public Visit VisitDataOnDemand.getNewTransientEntity(int index) {             Visit obj = new Visit();                 obj.setVisitDate(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 obj.setPet(petDataOnDemand.getRandomPersistentEntity());                 return obj;             }              public Visit VisitDataOnDemand.getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VisitDataOnDemand.modify(com.springsource.petclinic.domain.Visit obj) {             return false;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VisitDataOnDemand.init() {             if (data != null) {                     return;                     }                          data = Visit.findVisitEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Visit' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Visit obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class PetTypeIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect OwnerIntegrationTest_Roo_Integration_Test_Itd {          declare parents: OwnerIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.OwnerDataOnDemand OwnerIntegrationTest.ownerDataOnDemand;              @org.junit.Test         public void OwnerIntegrationTest.count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 junit.framework.Assert.assertTrue("Counter for 'Owner' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void OwnerIntegrationTest.find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = ownerDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to provide an identifier", id);                 Owner obj = Owner.findOwner(id);                 junit.framework.Assert.assertNotNull("Find method for 'Owner' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Owner' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void OwnerIntegrationTest.findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Owner', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'OwnerIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Owner> result = Owner.findAllOwners();                 junit.framework.Assert.assertNotNull("Find all method for 'Owner' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Owner' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void OwnerIntegrationTest.findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Owner> result = Owner.findOwnerEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Owner' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Owner' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest.flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = Owner.findOwner(ownerDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = ownerDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Owner' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest.merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = Owner.findOwner(ownerDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = ownerDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Owner' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest.persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = ownerDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Owner' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Owner' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Owner' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Owner' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest.remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = ownerDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to provide an identifier", id);                 Owner.findOwner(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Owner' with identifier '" + id + "'", Owner.findOwner(id));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Vet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Vet * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Vet.class) @Controller @RequestMapping("/vet/**") public class VetController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  privileged aspect OwnerController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "owner", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController.list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 return "owner/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController.show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("owner", com.springsource.petclinic.domain.Owner.findOwner(id));                 return "owner/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String OwnerController.delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Owner.findOwner(id).remove();                 return "redirect:/owner";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController.form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 modelMap.addAttribute("owner", new com.springsource.petclinic.domain.Owner());                 return "owner/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String OwnerController.create(@org.springframework.web.bind.annotation.ModelAttribute("owner") com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "Owner must be provided.");                 owner.persist();                 return "redirect:/owner/"+owner.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController.updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 modelMap.addAttribute("owner", com.springsource.petclinic.domain.Owner.findOwner(id));                 return "owner/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String OwnerController.update(@org.springframework.web.bind.annotation.ModelAttribute("owner") com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "Owner must be provided.");                 owner.merge();                 return "redirect:/owner/" + owner.getId();             }              @org.springframework.web.bind.annotation.InitBinder         void OwnerController.initBinder(org.springframework.web.bind.WebDataBinder binder) {             binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = VetSpecialty.class) public class VetSpecialtyEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = Owner.class) public class OwnerEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import com.springsource.petclinic.reference.Specialty; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn;  @RooEntity @RooJpa @Entity public class VetSpecialty {      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date registered;      @ManyToOne     @JoinColumn     private Specialty specialty;      @ManyToOne     @JoinColumn     private Vet vet; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VetSpecialtyEditor_Roo_Editor_Itd {          declare parents: VetSpecialtyEditor implements java.beans.PropertyEditorSupport;              org.springframework.beans.SimpleTypeConverter VetSpecialtyEditor.typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String VetSpecialtyEditor.getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.VetSpecialty) obj).getId() , String.class);             }              public void VetSpecialtyEditor.setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.VetSpecialty.findVetSpecialty(identifier));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VetDataOnDemand_Roo_Dod_Itd {          declare @type: VetDataOnDemand: @org.springframework.beans.factory.annotation.Configurable;              declare @type: VetDataOnDemand: @org.springframework.stereotype.Component;              private java.util.Random VetDataOnDemand.rnd = new java.security.SecureRandom();              private java.util.List<Vet> VetDataOnDemand.data;              public Vet VetDataOnDemand.getNewTransientEntity(int index) {             Vet obj = new Vet();                 obj.setEmployedSince(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 obj.setLastName("lastName_" + index);                 obj.setAddress("address_" + index);                 obj.setCity("city_" + index);                 obj.setTelephone(new Integer(index));                 obj.setBirthDay(new java.util.Date());                 return obj;             }              public Vet VetDataOnDemand.getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VetDataOnDemand.modify(com.springsource.petclinic.domain.Vet obj) {             obj.setLastName(obj.getLastName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VetDataOnDemand.init() {             if (data != null) {                     return;                     }                          data = Vet.findVetEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Vet' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Vet obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VetSpecialtyDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VetIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package injavafiles.hasitds;  import injavafiles.itds.ITDAspect; import java.util.List;  public class HasITDs {   public void tryItOut() {   this.list.addAll(null);   this.makeList(4);    new HasITDs(6);   this.value = 9;   this.inside = 9;    }  } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Vet_Roo_Jpa_Itd {          public static long Vet.countVets() {             return (Long) new Vet().entityManager.createQuery("select count(o) from Vet o").getSingleResult();             }              public static com.springsource.petclinic.domain.Vet Vet.findVet(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Vet");                 return new Vet().entityManager.find(Vet.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Vet> Vet.findAllVets() {             return new Vet().entityManager.createQuery("select o from Vet o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Vet> Vet.findVetEntries(int firstResult, int maxResults) {             return new Vet().entityManager.createQuery("select o from Vet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.Length; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn;  @RooEntity @Entity @RooJpa(finders = { "findVisitsByDescriptionAndVisitDate", "findVisitsByVisitDateBetween", "findVisitsByDescriptionLike" }) public class Visit {      @Length(min = 0, max = 255)     private String description;      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date visitDate;      @NotNull     @ManyToOne     @JoinColumn     private Pet pet;      @ManyToOne     @JoinColumn     private Vet vet; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect PetType_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager PetType.entityManager;              @org.springframework.transaction.annotation.Transactional         public void PetType.flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void PetType.merge() {             PetType merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void PetType.persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void PetType.remove() {             this.entityManager.remove(this);             }              public static long PetType.countPetTypes() {             return (Long) new PetType().entityManager.createQuery("select count(o) from PetType o").getSingleResult();             }              public static com.springsource.petclinic.reference.PetType PetType.findPetType(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of PetType");                 return new PetType().entityManager.find(PetType.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.PetType> PetType.findAllPetTypes() {             return new PetType().entityManager.createQuery("select o from PetType o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.PetType> PetType.findPetTypeEntries(int firstResult, int maxResults) {             return new PetType().entityManager.createQuery("select o from PetType o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class PetTypeDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class SpecialtyDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import java.util.Set; import java.util.HashSet; import javax.persistence.OneToMany; import javax.persistence.CascadeType;  @RooEntity @RooJpa @Entity public class Vet extends AbstractPerson {      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date employedSince;      @OneToMany(cascade = CascadeType.ALL, mappedBy = "vet")     private Set<VetSpecialty> specialties = new HashSet<VetSpecialty>(); }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VisitIntegrationTest_Roo_Integration_Test_Itd {          declare parents: VisitIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VisitDataOnDemand VisitIntegrationTest.visitDataOnDemand;              @org.junit.Test         public void VisitIntegrationTest.count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 junit.framework.Assert.assertTrue("Counter for 'Visit' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VisitIntegrationTest.find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = visitDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to provide an identifier", id);                 Visit obj = Visit.findVisit(id);                 junit.framework.Assert.assertNotNull("Find method for 'Visit' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Visit' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VisitIntegrationTest.findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Visit', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VisitIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Visit> result = Visit.findAllVisits();                 junit.framework.Assert.assertNotNull("Find all method for 'Visit' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Visit' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VisitIntegrationTest.findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Visit> result = Visit.findVisitEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Visit' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Visit' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest.flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = Visit.findVisit(visitDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = visitDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Visit' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest.merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = Visit.findVisit(visitDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = visitDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Visit' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest.persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = visitDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Visit' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Visit' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Visit' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Visit' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest.remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = visitDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to provide an identifier", id);                 Visit.findVisit(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Visit' with identifier '" + id + "'", Visit.findVisit(id));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VetSpecialtyDataOnDemand_Roo_Dod_Itd {          declare @type: VetSpecialtyDataOnDemand: @org.springframework.beans.factory.annotation.Configurable;              declare @type: VetSpecialtyDataOnDemand: @org.springframework.stereotype.Component;              private java.util.Random VetSpecialtyDataOnDemand.rnd = new java.security.SecureRandom();              private java.util.List<VetSpecialty> VetSpecialtyDataOnDemand.data;              public VetSpecialty VetSpecialtyDataOnDemand.getNewTransientEntity(int index) {             VetSpecialty obj = new VetSpecialty();                 obj.setRegistered(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 return obj;             }              public VetSpecialty VetSpecialtyDataOnDemand.getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VetSpecialtyDataOnDemand.modify(com.springsource.petclinic.domain.VetSpecialty obj) {             return false;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VetSpecialtyDataOnDemand.init() {             if (data != null) {                     return;                     }                          data = VetSpecialty.findVetSpecialtyEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'VetSpecialty' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     VetSpecialty obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic;  import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.ContextConfiguration;  @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:/applicationContext.xml") public abstract class AbstractIntegrationTest { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect PetTypeEditor_Roo_Editor_Itd {          declare parents: PetTypeEditor implements java.beans.PropertyEditorSupport;              org.springframework.beans.SimpleTypeConverter PetTypeEditor.typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String PetTypeEditor.getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.reference.PetType) obj).getId() , String.class);             }              public void PetTypeEditor.setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.reference.PetType.findPetType(identifier));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VetSpecialtyIntegrationTest_Roo_Integration_Test_Itd {          declare parents: VetSpecialtyIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VetSpecialtyDataOnDemand VetSpecialtyIntegrationTest.vetSpecialtyDataOnDemand;              @org.junit.Test         public void VetSpecialtyIntegrationTest.count() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'VetSpecialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VetSpecialtyIntegrationTest.find() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to provide an identifier", id);                 VetSpecialty obj = VetSpecialty.findVetSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'VetSpecialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'VetSpecialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VetSpecialtyIntegrationTest.findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'VetSpecialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VetSpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<VetSpecialty> result = VetSpecialty.findAllVetSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'VetSpecialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'VetSpecialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VetSpecialtyIntegrationTest.findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<VetSpecialty> result = VetSpecialty.findVetSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'VetSpecialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'VetSpecialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest.flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = VetSpecialty.findVetSpecialty(vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetSpecialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'VetSpecialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest.merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = VetSpecialty.findVetSpecialty(vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetSpecialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'VetSpecialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest.persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = vetSpecialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'VetSpecialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'VetSpecialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'VetSpecialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'VetSpecialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest.remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to provide an identifier", id);                 VetSpecialty.findVetSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'VetSpecialty' with identifier '" + id + "'", VetSpecialty.findVetSpecialty(id));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.Length; import org.hibernate.validator.NotNull; import org.hibernate.validator.Min; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn; import com.springsource.petclinic.reference.PetType;  @RooEntity @Entity @RooJpa(finders = { "findPetsByNameAndWeight", "findPetsByOwner" }) public class Pet {      @Length(min = 0, max = 50)     private String contactEmails;      @NotNull     private Boolean sendReminders;      @NotNull     private String name;      @NotNull     @Min(0)     private Float weight;      @ManyToOne     @JoinColumn     private Owner owner;      @ManyToOne     @JoinColumn     private PetType type; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Visit_Roo_Entity_Itd {          declare @type: Visit: @org.springframework.beans.factory.annotation.Configurable;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Visit.id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Visit.version;              public java.lang.Long Visit.getId() {             return id;             }              public void Visit.setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Visit.getVersion() {             return version;             }              public void Visit.setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Visit.getDescription() {             return description;             }              public void Visit.setDescription(java.lang.String description) {             this.description = description;             }              public java.util.Date Visit.getVisitDate() {             return visitDate;             }              public void Visit.setVisitDate(java.util.Date visitDate) {             this.visitDate = visitDate;             }              public com.springsource.petclinic.domain.Pet Visit.getPet() {             return pet;             }              public void Visit.setPet(com.springsource.petclinic.domain.Pet pet) {             this.pet = pet;             }              public com.springsource.petclinic.domain.Vet Visit.getVet() {             return vet;             }              public void Visit.setVet(com.springsource.petclinic.domain.Vet vet) {             this.vet = vet;             }              public java.lang.String Visit.toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Description: " + getDescription());                 tsc.append("VisitDate: " + getVisitDate());                 tsc.append("Pet: " + getPet());                 tsc.append("Vet: " + getVet());                 return tsc.toString();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect SpecialtyIntegrationTest_Roo_Integration_Test_Itd {          declare parents: SpecialtyIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.SpecialtyDataOnDemand SpecialtyIntegrationTest.specialtyDataOnDemand;              @org.junit.Test         public void SpecialtyIntegrationTest.count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'Specialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest.find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty obj = Specialty.findSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'Specialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Specialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void SpecialtyIntegrationTest.findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Specialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'SpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Specialty> result = Specialty.findAllSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Specialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest.findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Specialty> result = Specialty.findSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Specialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest.flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest.merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest.persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = specialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Specialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Specialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest.remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty.findSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Specialty' with identifier '" + id + "'", Specialty.findSpecialty(id));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Pet_Roo_Finder_Itd {          public static javax.persistence.Query Pet.findPetsByNameAndWeight(java.lang.String name, java.lang.Float weight) {             org.springframework.util.Assert.notNull(name, "A Name is required.");                 org.springframework.util.Assert.notNull(weight, "A Weight is required.");                 javax.persistence.Query q = new Pet().entityManager.createQuery("FROM Pet AS pet WHERE pet.name = :name AND pet.weight = :weight");                 q.setParameter("name", name);                 q.setParameter("weight", weight);                 return q;             }              public static javax.persistence.Query Pet.findPetsByOwner(com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "A Owner is required.");                 javax.persistence.Query q = new Pet().entityManager.createQuery("FROM Pet AS pet WHERE pet.owner = :owner");                 q.setParameter("owner", owner);                 return q;             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect AbstractPerson_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager AbstractPerson.entityManager;              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson.flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson.merge() {             AbstractPerson merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson.persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson.remove() {             this.entityManager.remove(this);             }          }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect OwnerEditor_Roo_Editor_Itd {          declare parents: OwnerEditor implements java.beans.PropertyEditorSupport;              org.springframework.beans.SimpleTypeConverter OwnerEditor.typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String OwnerEditor.getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.Owner) obj).getId() , String.class);             }              public void OwnerEditor.setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.Owner.findOwner(identifier));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = Pet.class) public class PetEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import java.util.Date;  public abstract class AbstractPerson {      private String firstName;      private String lastName;      private String address;      private String city;      private Integer telephone;      private String homePage;      private String email;      private Date birthDay; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class PetIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Vet_Roo_Entity_Itd {          declare @type: Vet: @org.springframework.beans.factory.annotation.Configurable;              public java.util.Date Vet.getEmployedSince() {             return employedSince;             }              public void Vet.setEmployedSince(java.util.Date employedSince) {             this.employedSince = employedSince;             }              public java.util.Set<com.springsource.petclinic.domain.VetSpecialty> Vet.getSpecialties() {             return specialties;             }              public void Vet.setSpecialties(java.util.Set<com.springsource.petclinic.domain.VetSpecialty> specialties) {             this.specialties = specialties;             }              public java.lang.String Vet.toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 tsc.append("EmployedSince: " + getEmployedSince());                 tsc.append("Specialties: " + specialties.size());                 return tsc.toString();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package injavafiles.uses;  import injavafiles.hasitds.HasITDs; import java.util.List;  class UsesITDs {  public void tryItOut() {   HasITDs h = new HasITDs(6);   h.list.addAll(null);   h.makeList(4);   h.value = 9;   h.inside = 9;   }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- import p.Aspect2;   public class  Aspect {  int Class$x;    int hhh;  int h() {   Aspect2.aspectOf().hhh++;   return 9;  } Class ___ITD_INSERTED_IDENTIFIER___0; }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.NotNull; import org.hibernate.validator.Length;  @RooEntity @RooJpa @Entity public class Specialty {      @NotNull     @Length(min = 0, max = 30)     private String name; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect Specialty_Roo_Entity_Itd {          declare @type: Specialty: @org.springframework.beans.factory.annotation.Configurable;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Specialty.id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Specialty.version;              public java.lang.Long Specialty.getId() {             return id;             }              public void Specialty.setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Specialty.getVersion() {             return version;             }              public void Specialty.setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Specialty.getName() {             return name;             }              public void Specialty.setName(java.lang.String name) {             this.name = name;             }              public java.lang.String Specialty.toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Name: " + getName());                 return tsc.toString();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Owner_Roo_Entity_Itd {          declare @type: Owner: @org.springframework.beans.factory.annotation.Configurable;              public java.util.Set<com.springsource.petclinic.domain.Pet> Owner.getPets() {             return pets;             }              public void Owner.setPets(java.util.Set<com.springsource.petclinic.domain.Pet> pets) {             this.pets = pets;             }              public java.lang.String Owner.toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 tsc.append("Pets: " + pets.size());                 return tsc.toString();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package uses;  import hasitds.HasITDs; import java.util.List;  class UsesITDs {  public void tryItOut() {   HasITDs h = new HasITDs(6);   h.list.addAll(null);   h.makeList(4);   h.value = 9;   h.inside = 9;   }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  privileged aspect VetController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "vet", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController.list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("vets", com.springsource.petclinic.domain.Vet.findAllVets());                 return "vet/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController.show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("vet", com.springsource.petclinic.domain.Vet.findVet(id));                 return "vet/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String VetController.delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Vet.findVet(id).remove();                 return "redirect:/vet";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController.form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("vetspecialtys", com.springsource.petclinic.domain.VetSpecialty.findAllVetSpecialtys());                 modelMap.addAttribute("vet", new com.springsource.petclinic.domain.Vet());                 return "vet/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String VetController.create(@org.springframework.web.bind.annotation.ModelAttribute("vet") com.springsource.petclinic.domain.Vet vet) {             org.springframework.util.Assert.notNull(vet, "Vet must be provided.");                 vet.persist();                 return "redirect:/vet/"+vet.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController.updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("vetspecialtys", com.springsource.petclinic.domain.VetSpecialty.findAllVetSpecialtys());                 modelMap.addAttribute("vet", com.springsource.petclinic.domain.Vet.findVet(id));                 return "vet/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String VetController.update(@org.springframework.web.bind.annotation.ModelAttribute("vet") com.springsource.petclinic.domain.Vet vet) {             org.springframework.util.Assert.notNull(vet, "Vet must be provided.");                 vet.merge();                 return "redirect:/vet/" + vet.getId();             }              @org.springframework.web.bind.annotation.InitBinder         void VetController.initBinder(org.springframework.web.bind.WebDataBinder binder) {             binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));                 binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Visit_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Visit.entityManager;              @org.springframework.transaction.annotation.Transactional         public void Visit.flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Visit.merge() {             Visit merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Visit.persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Visit.remove() {             this.entityManager.remove(this);             }              public static long Visit.countVisits() {             return (Long) new Visit().entityManager.createQuery("select count(o) from Visit o").getSingleResult();             }              public static com.springsource.petclinic.domain.Visit Visit.findVisit(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Visit");                 return new Visit().entityManager.find(Visit.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Visit> Visit.findAllVisits() {             return new Visit().entityManager.createQuery("select o from Visit o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Visit> Visit.findVisitEntries(int firstResult, int maxResults) {             return new Visit().entityManager.createQuery("select o from Visit o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect PetEditor_Roo_Editor_Itd {          declare parents: PetEditor implements java.beans.PropertyEditorSupport;              org.springframework.beans.SimpleTypeConverter PetEditor.typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String PetEditor.getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.Pet) obj).getId() , String.class);             }              public void PetEditor.setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.Pet.findPet(identifier));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  privileged aspect PetTypeController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "pettype", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController.list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 return "pettype/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController.show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pettype", com.springsource.petclinic.reference.PetType.findPetType(id));                 return "pettype/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String PetTypeController.delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.reference.PetType.findPetType(id).remove();                 return "redirect:/pettype";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController.form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pettype", new com.springsource.petclinic.reference.PetType());                 return "pettype/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String PetTypeController.create(@org.springframework.web.bind.annotation.ModelAttribute("pettype") com.springsource.petclinic.reference.PetType pettype) {             org.springframework.util.Assert.notNull(pettype, "PetType must be provided.");                 pettype.persist();                 return "redirect:/pettype/"+pettype.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController.updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pettype", com.springsource.petclinic.reference.PetType.findPetType(id));                 return "pettype/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String PetTypeController.update(@org.springframework.web.bind.annotation.ModelAttribute("pettype") com.springsource.petclinic.reference.PetType pettype) {             org.springframework.util.Assert.notNull(pettype, "PetType must be provided.");                 pettype.merge();                 return "redirect:/pettype/" + pettype.getId();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Owner; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Owner * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Owner.class) @Controller @RequestMapping("/owner/**") public class OwnerController {          void test() {         new Owner().toString();     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class PetDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VetSpecialty_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager VetSpecialty.entityManager;              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty.flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty.merge() {             VetSpecialty merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty.persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty.remove() {             this.entityManager.remove(this);             }              public static long VetSpecialty.countVetSpecialtys() {             return (Long) new VetSpecialty().entityManager.createQuery("select count(o) from VetSpecialty o").getSingleResult();             }              public static com.springsource.petclinic.domain.VetSpecialty VetSpecialty.findVetSpecialty(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of VetSpecialty");                 return new VetSpecialty().entityManager.find(VetSpecialty.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.VetSpecialty> VetSpecialty.findAllVetSpecialtys() {             return new VetSpecialty().entityManager.createQuery("select o from VetSpecialty o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.VetSpecialty> VetSpecialty.findVetSpecialtyEntries(int firstResult, int maxResults) {             return new VetSpecialty().entityManager.createQuery("select o from VetSpecialty o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect PetIntegrationTest_Roo_Integration_Test_Itd {          declare parents: PetIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.PetDataOnDemand PetIntegrationTest.petDataOnDemand;              @org.junit.Test         public void PetIntegrationTest.count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 junit.framework.Assert.assertTrue("Counter for 'Pet' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void PetIntegrationTest.find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to provide an identifier", id);                 Pet obj = Pet.findPet(id);                 junit.framework.Assert.assertNotNull("Find method for 'Pet' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Pet' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void PetIntegrationTest.findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Pet', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'PetIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Pet> result = Pet.findAllPets();                 junit.framework.Assert.assertNotNull("Find all method for 'Pet' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Pet' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void PetIntegrationTest.findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Pet> result = Pet.findPetEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Pet' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Pet' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest.flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = Pet.findPet(petDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Pet' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest.merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = Pet.findPet(petDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Pet' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest.persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = petDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Pet' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Pet' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Pet' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Pet' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest.remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to provide an identifier", id);                 Pet.findPet(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Pet' with identifier '" + id + "'", Pet.findPet(id));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.reference.PetType; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for PetType * */ @RooWebScaffold(automaticallyMaintainView = true, entity = PetType.class) @Controller @RequestMapping("/pettype/**") public class PetTypeController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VetSpecialtyIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Pet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Pet * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Pet.class) @Controller @RequestMapping("/pet/**") public class PetController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect OwnerDataOnDemand_Roo_Dod_Itd {          declare @type: OwnerDataOnDemand: @org.springframework.beans.factory.annotation.Configurable;              declare @type: OwnerDataOnDemand: @org.springframework.stereotype.Component;              private java.util.Random OwnerDataOnDemand.rnd = new java.security.SecureRandom();              private java.util.List<Owner> OwnerDataOnDemand.data;              public Owner OwnerDataOnDemand.getNewTransientEntity(int index) {             Owner obj = new Owner();                 obj.setLastName("lastName_" + index);                 obj.setAddress("address_" + index);                 obj.setCity("city_" + index);                 obj.setTelephone(new Integer(index));                 obj.setBirthDay(new java.util.Date());                 return obj;             }              public Owner OwnerDataOnDemand.getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean OwnerDataOnDemand.modify(com.springsource.petclinic.domain.Owner obj) {             obj.setLastName(obj.getLastName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void OwnerDataOnDemand.init() {             if (data != null) {                     return;                     }                          data = Owner.findOwnerEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Owner' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Owner obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Set; import java.util.HashSet; import javax.persistence.OneToMany; import javax.persistence.CascadeType;  @RooEntity @RooJpa @Entity public class Owner extends AbstractPerson {      @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")     private Set<Pet> pets = new HashSet<Pet>();          public void test() throws Exception {         this.getAddress();  } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Visit_Roo_Finder_Itd {          public static javax.persistence.Query Visit.findVisitsByDescriptionAndVisitDate(java.lang.String description, java.util.Date visitDate) {             org.springframework.util.Assert.notNull(description, "A Description is required.");                 org.springframework.util.Assert.notNull(visitDate, "A VisitDate is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.description = :description AND visit.visitDate = :visitDate");                 q.setParameter("description", description);                 q.setParameter("visitDate", visitDate);                 return q;             }              public static javax.persistence.Query Visit.findVisitsByVisitDateBetween(java.util.Date minVisitDate, java.util.Date maxVisitDate) {             org.springframework.util.Assert.notNull(minVisitDate, "A minimum VisitDate is required.");                 org.springframework.util.Assert.notNull(maxVisitDate, "A maximum VisitDate is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.visitDate BETWEEN :minVisitDate AND :maxVisitDate ");                 q.setParameter("minVisitDate", minVisitDate);                 q.setParameter("maxVisitDate", maxVisitDate);                 return q;             }              public static javax.persistence.Query Visit.findVisitsByDescriptionLike(java.lang.String description) {             org.springframework.util.Assert.notNull(description, "A Description is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.description LIKE :description ");                 q.setParameter("description", "%"+description+"%");                 return q;             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.NotNull; import org.hibernate.validator.Length;  @RooEntity @RooJpa @Entity public class PetType {      @NotNull     @Length(min = 0, max = 30)     private String type; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Owner_Roo_Jpa_Itd {          public static long Owner.countOwners() {             return (Long) new Owner().entityManager.createQuery("select count(o) from Owner o").getSingleResult();             }              public static com.springsource.petclinic.domain.Owner Owner.findOwner(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Owner");                 return new Owner().entityManager.find(Owner.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Owner> Owner.findAllOwners() {             return new Owner().entityManager.createQuery("select o from Owner o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Owner> Owner.findOwnerEntries(int firstResult, int maxResults) {             return new Owner().entityManager.createQuery("select o from Owner o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect PetTypeIntegrationTest_Roo_Integration_Test_Itd {          declare parents: PetTypeIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.PetTypeDataOnDemand PetTypeIntegrationTest.petTypeDataOnDemand;              @org.junit.Test         public void PetTypeIntegrationTest.count() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 junit.framework.Assert.assertTrue("Counter for 'PetType' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void PetTypeIntegrationTest.find() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petTypeDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to provide an identifier", id);                 PetType obj = PetType.findPetType(id);                 junit.framework.Assert.assertNotNull("Find method for 'PetType' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'PetType' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void PetTypeIntegrationTest.findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'PetType', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'PetTypeIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<PetType> result = PetType.findAllPetTypes();                 junit.framework.Assert.assertNotNull("Find all method for 'PetType' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'PetType' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void PetTypeIntegrationTest.findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 if (count > 20) {                     count = 20;                     }                 java.util.List<PetType> result = PetType.findPetTypeEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'PetType' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'PetType' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest.flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = PetType.findPetType(petTypeDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petTypeDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'PetType' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest.merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = PetType.findPetType(petTypeDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petTypeDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'PetType' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest.persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = petTypeDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'PetType' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'PetType' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'PetType' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'PetType' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest.remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petTypeDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to provide an identifier", id);                 PetType.findPetType(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'PetType' with identifier '" + id + "'", PetType.findPetType(id));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN -------------------------------------  public class Class {  int y;  @Override  public String toString() {   Aspect.aspectOf().hhh++;   Aspect.aspectOf().getWithinTypeName().substring(0);   Aspect.hasAspect();   return super.toString();  } }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  privileged aspect PetController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "pet", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController.list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 return "pet/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController.show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pet", com.springsource.petclinic.domain.Pet.findPet(id));                 return "pet/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String PetController.delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Pet.findPet(id).remove();                 return "redirect:/pet";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController.form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 modelMap.addAttribute("pet", new com.springsource.petclinic.domain.Pet());                 return "pet/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String PetController.create(@org.springframework.web.bind.annotation.ModelAttribute("pet") com.springsource.petclinic.domain.Pet pet) {             org.springframework.util.Assert.notNull(pet, "Pet must be provided.");                 pet.persist();                 return "redirect:/pet/"+pet.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController.updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 modelMap.addAttribute("pet", com.springsource.petclinic.domain.Pet.findPet(id));                 return "pet/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String PetController.update(@org.springframework.web.bind.annotation.ModelAttribute("pet") com.springsource.petclinic.domain.Pet pet) {             org.springframework.util.Assert.notNull(pet, "Pet must be provided.");                 pet.merge();                 return "redirect:/pet/" + pet.getId();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect AbstractPerson_Roo_Entity_Itd {          declare @type: AbstractPerson: @org.springframework.beans.factory.annotation.Configurable;              @javax.persistence.Id          @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long AbstractPerson.id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer AbstractPerson.version;              public java.lang.Long AbstractPerson.getId() {             return id;             }              public void AbstractPerson.setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer AbstractPerson.getVersion() {             return version;             }              public void AbstractPerson.setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String AbstractPerson.getFirstName() {             return firstName;             }              public void AbstractPerson.setFirstName(java.lang.String firstName) {             this.firstName = firstName;             }              public java.lang.String AbstractPerson.getLastName() {             return lastName;             }              public void AbstractPerson.setLastName(java.lang.String lastName) {             this.lastName = lastName;             }              public java.lang.String AbstractPerson.getAddress() {             return address;             }              public void AbstractPerson.setAddress(java.lang.String address) {             this.address = address;             }              public java.lang.String AbstractPerson.getCity() {             return city;             }              public void AbstractPerson.setCity(java.lang.String city) {             this.city = city;             }              public java.lang.Integer AbstractPerson.getTelephone() {             return telephone;             }              public void AbstractPerson.setTelephone(java.lang.Integer telephone) {             this.telephone = telephone;             }              public java.lang.String AbstractPerson.getHomePage() {             return homePage;             }              public void AbstractPerson.setHomePage(java.lang.String homePage) {             this.homePage = homePage;             }              public java.lang.String AbstractPerson.getEmail() {             return email;             }              public void AbstractPerson.setEmail(java.lang.String email) {             this.email = email;             }              public java.util.Date AbstractPerson.getBirthDay() {             return birthDay;             }              public void AbstractPerson.setBirthDay(java.util.Date birthDay) {             this.birthDay = birthDay;             }              public java.lang.String AbstractPerson.toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 return tsc.toString();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect PetTypeDataOnDemand_Roo_Dod_Itd {          declare @type: PetTypeDataOnDemand: @org.springframework.beans.factory.annotation.Configurable;              declare @type: PetTypeDataOnDemand: @org.springframework.stereotype.Component;              private java.util.Random PetTypeDataOnDemand.rnd = new java.security.SecureRandom();              private java.util.List<PetType> PetTypeDataOnDemand.data;              public PetType PetTypeDataOnDemand.getNewTransientEntity(int index) {             PetType obj = new PetType();                 obj.setType("type_" + index);                 return obj;             }              public PetType PetTypeDataOnDemand.getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean PetTypeDataOnDemand.modify(com.springsource.petclinic.reference.PetType obj) {             obj.setType(obj.getType() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void PetTypeDataOnDemand.init() {             if (data != null) {                     return;                     }                          data = PetType.findPetTypeEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'PetType' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     PetType obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect PetType_Roo_Entity_Itd {          declare @type: PetType: @org.springframework.beans.factory.annotation.Configurable;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long PetType.id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer PetType.version;              public java.lang.Long PetType.getId() {             return id;             }              public void PetType.setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer PetType.getVersion() {             return version;             }              public void PetType.setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String PetType.getType() {             return type;             }              public void PetType.setType(java.lang.String type) {             this.type = type;             }              public java.lang.String PetType.toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Type: " + getType());                 return tsc.toString();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  privileged aspect SpecialtyDataOnDemand_Roo_Dod_Itd {          declare @type: SpecialtyDataOnDemand: @org.springframework.beans.factory.annotation.Configurable;              declare @type: SpecialtyDataOnDemand: @org.springframework.stereotype.Component;              private java.util.Random SpecialtyDataOnDemand.rnd = new java.security.SecureRandom();              private java.util.List<Specialty> SpecialtyDataOnDemand.data;              public Specialty SpecialtyDataOnDemand.getNewTransientEntity(int index) {             Specialty obj = new Specialty();                 obj.setName("name_" + index);                 return obj;             }              public Specialty SpecialtyDataOnDemand.getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean SpecialtyDataOnDemand.modify(com.springsource.petclinic.reference.Specialty obj) {             obj.setName(obj.getName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void SpecialtyDataOnDemand.init() {             if (data != null) {                     return;                     }                          data = Specialty.findSpecialtyEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Specialty' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Specialty obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VisitDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VetIntegrationTest_Roo_Integration_Test_Itd {          declare parents: VetIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VetDataOnDemand VetIntegrationTest.vetDataOnDemand;              @org.junit.Test         public void VetIntegrationTest.count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 junit.framework.Assert.assertTrue("Counter for 'Vet' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VetIntegrationTest.find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to provide an identifier", id);                 Vet obj = Vet.findVet(id);                 junit.framework.Assert.assertNotNull("Find method for 'Vet' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Vet' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VetIntegrationTest.findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Vet', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VetIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Vet> result = Vet.findAllVets();                 junit.framework.Assert.assertNotNull("Find all method for 'Vet' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Vet' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VetIntegrationTest.findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Vet> result = Vet.findVetEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Vet' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Vet' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest.flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = Vet.findVet(vetDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Vet' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest.merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = Vet.findVet(vetDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Vet' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest.persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = vetDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Vet' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Vet' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Vet' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Vet' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest.remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to provide an identifier", id);                 Vet.findVet(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Vet' with identifier '" + id + "'", Vet.findVet(id));             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package itds; import java.util.ArrayList; import java.util.List; import hasitds.HasITDs;    public class  ITDAspect {  public List<String> HasITDs$list;  public java.util.List<String> HasITDs$makeList(int size) {   return new ArrayList<String>();  }   public HasITDs$new(int x) {   this();   list = new ArrayList<String>();   }      public static class Super {   public int inside =9;  }    public int Super$value = 7;    int     parents                        ;    public static void main(String[] args) {      int x = args.length;      x++;     }    void around()                                       {      thisJoinPoint.getArgs();  } HasITDs ___ITD_INSERTED_IDENTIFIER___0; ITDAspect ___ITD_INSERTED_IDENTIFIER___1; Super ___ITD_INSERTED_IDENTIFIER___2; } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VisitIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Pet_Roo_Entity_Itd {          declare @type: Pet: @org.springframework.beans.factory.annotation.Configurable;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Pet.id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Pet.version;              public java.lang.Long Pet.getId() {             return id;             }              public void Pet.setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Pet.getVersion() {             return version;             }              public void Pet.setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Pet.getContactEmails() {             return contactEmails;             }              public void Pet.setContactEmails(java.lang.String contactEmails) {             this.contactEmails = contactEmails;             }              public java.lang.Boolean Pet.getSendReminders() {             return sendReminders;             }              public void Pet.setSendReminders(java.lang.Boolean sendReminders) {             this.sendReminders = sendReminders;             }              public java.lang.String Pet.getName() {             return name;             }              public void Pet.setName(java.lang.String name) {             this.name = name;             }              public java.lang.Float Pet.getWeight() {             return weight;             }              public void Pet.setWeight(java.lang.Float weight) {             this.weight = weight;             }              public com.springsource.petclinic.domain.Owner Pet.getOwner() {             return owner;             }              public void Pet.setOwner(com.springsource.petclinic.domain.Owner owner) {             this.owner = owner;             }              public com.springsource.petclinic.reference.PetType Pet.getType() {             return type;             }              public void Pet.setType(com.springsource.petclinic.reference.PetType type) {             this.type = type;             }              public java.lang.String Pet.toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("ContactEmails: " + getContactEmails());                 tsc.append("SendReminders: " + getSendReminders());                 tsc.append("Name: " + getName());                 tsc.append("Weight: " + getWeight());                 tsc.append("Owner: " + getOwner());                 tsc.append("Type: " + getType());                 return tsc.toString();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class SpecialtyIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class OwnerIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class OwnerDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect PetDataOnDemand_Roo_Dod_Itd {          declare @type: PetDataOnDemand: @org.springframework.beans.factory.annotation.Configurable;              declare @type: PetDataOnDemand: @org.springframework.stereotype.Component;              private java.util.Random PetDataOnDemand.rnd = new java.security.SecureRandom();              private java.util.List<Pet> PetDataOnDemand.data;              public Pet PetDataOnDemand.getNewTransientEntity(int index) {             Pet obj = new Pet();                 obj.setSendReminders(new Boolean(true));                 obj.setName("name_" + index);                 obj.setWeight(new Float(index));                 return obj;             }              public Pet PetDataOnDemand.getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean PetDataOnDemand.modify(com.springsource.petclinic.domain.Pet obj) {             obj.setName(obj.getName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void PetDataOnDemand.init() {             if (data != null) {                     return;                     }                          data = Pet.findPetEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Pet' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Pet obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect Pet_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Pet.entityManager;              @org.springframework.transaction.annotation.Transactional         public void Pet.flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Pet.merge() {             Pet merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Pet.persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Pet.remove() {             this.entityManager.remove(this);             }              public static long Pet.countPets() {             return (Long) new Pet().entityManager.createQuery("select count(o) from Pet o").getSingleResult();             }              public static com.springsource.petclinic.domain.Pet Pet.findPet(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Pet");                 return new Pet().entityManager.find(Pet.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Pet> Pet.findAllPets() {             return new Pet().entityManager.createQuery("select o from Pet o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Pet> Pet.findPetEntries(int firstResult, int maxResults) {             return new Pet().entityManager.createQuery("select o from Pet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  privileged aspect VetSpecialty_Roo_Entity_Itd {          declare @type: VetSpecialty: @org.springframework.beans.factory.annotation.Configurable;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long VetSpecialty.id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer VetSpecialty.version;              public java.lang.Long VetSpecialty.getId() {             return id;             }              public void VetSpecialty.setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer VetSpecialty.getVersion() {             return version;             }              public void VetSpecialty.setVersion(java.lang.Integer version) {             this.version = version;             }              public java.util.Date VetSpecialty.getRegistered() {             return registered;             }              public void VetSpecialty.setRegistered(java.util.Date registered) {             this.registered = registered;             }              public com.springsource.petclinic.reference.Specialty VetSpecialty.getSpecialty() {             return specialty;             }              public void VetSpecialty.setSpecialty(com.springsource.petclinic.reference.Specialty specialty) {             this.specialty = specialty;             }              public com.springsource.petclinic.domain.Vet VetSpecialty.getVet() {             return vet;             }              public void VetSpecialty.setVet(com.springsource.petclinic.domain.Vet vet) {             this.vet = vet;             }              public java.lang.String VetSpecialty.toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Registered: " + getRegistered());                 tsc.append("Specialty: " + getSpecialty());                 tsc.append("Vet: " + getVet());                 return tsc.toString();             }          }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package hasitds;  import itds.ITDAspect; import java.util.List;  public class HasITDs {   public void tryItOut() {   this.list.addAll(null);   this.makeList(4);    new HasITDs(6);   this.value = 9;   this.inside = 9;    }  } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- public class  AspectWithDotClass {  int x1;  private boolean method() {   Object o = new Object();   if (!o.equals(void.class)) {    this.x1 ++ ;    return true;   }   return false;  } }     ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package other;  import java.util.List; import java.util.HashMap;  public class Gen <T extends Number & List<?>,          F extends HashMap<String, String> & Comparable<?>> {       void doNothing(T bar, F baz) {         bar.floatValue();         bar.clear();         baz.clear();         baz.compareTo(null);     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VetDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package com.springsource.petclinic.reference;

privileged aspect SpecialtyIntegrationTest_Roo_Integration_Test_Itd {
    
    declare parents: SpecialtyIntegrationTest implements com.springsource.petclinic.AbstractIntegrationTest;    
(8726 more lines...)
Collapse Failed ProblemFinderTests10 testProblemFindingErrors History
Default Job 6 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- > 1 public class ErrorClass {  > 1  public static aspect ProfilingAspect {   > 1  private long AccessTracked.lastAccessedTime;    > 1   public void AccessTracked.updateLastAccessedTime() {    > 1    lastAccessedTime = System.nanoTime();    > 1   }    > 1   public long AccessTracked.getLastAccessedTime() {    > 1   return lastAccessedTime;    > 1  }    > 1   before(AccessTracked accessTracked)   > 1     : execution(* AccessTracked+.*(..))  > 1       && !execution(* AccessTracked.*(..))      > 1   && this(accessTracked){      > 1  accessTracked.updateLastAccessedTime(); // ERROR reported here      > 1  }     > 1      > 1  }  > 1   > 1  interface AccessTracked {   > 1  }   > 1  }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  Specialty_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Specialty$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Specialty$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$merge() {             Specialty merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$remove() {             this.entityManager.remove(this);             }              public static long Specialty$countSpecialtys() {             return (Long) new Specialty().entityManager.createQuery("select count(o) from Specialty o").getSingleResult();             }              public static com.springsource.petclinic.reference.Specialty Specialty$findSpecialty(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Specialty");                 return new Specialty().entityManager.find(Specialty.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.Specialty> Specialty$findAllSpecialtys() {             return new Specialty().entityManager.createQuery("select o from Specialty o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.Specialty> Specialty$findSpecialtyEntries(int firstResult, int maxResults) {             return new Specialty().entityManager.createQuery("select o from Specialty o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Specialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = PetType.class) public class PetTypeEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VisitDataOnDemand_Roo_Dod_Itd {          int     $type                                                                               ;              int     $type                                                              ;              private java.util.Random VisitDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Visit> VisitDataOnDemand$data;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.PetDataOnDemand VisitDataOnDemand$petDataOnDemand;              public Visit VisitDataOnDemand$getNewTransientEntity(int index) {             Visit obj = new Visit();                 obj.setVisitDate(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 obj.setPet(petDataOnDemand.getRandomPersistentEntity());                 return obj;             }              public Visit VisitDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VisitDataOnDemand$modify(com.springsource.petclinic.domain.Visit obj) {             return false;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VisitDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Visit.findVisitEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Visit' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Visit obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VisitDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class PetTypeIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                    ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.OwnerDataOnDemand OwnerIntegrationTest$ownerDataOnDemand;              @org.junit.Test         public void OwnerIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 junit.framework.Assert.assertTrue("Counter for 'Owner' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void OwnerIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = ownerDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to provide an identifier", id);                 Owner obj = Owner.findOwner(id);                 junit.framework.Assert.assertNotNull("Find method for 'Owner' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Owner' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void OwnerIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Owner', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'OwnerIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Owner> result = Owner.findAllOwners();                 junit.framework.Assert.assertNotNull("Find all method for 'Owner' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Owner' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void OwnerIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Owner> result = Owner.findOwnerEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Owner' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Owner' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = Owner.findOwner(ownerDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = ownerDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Owner' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = Owner.findOwner(ownerDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = ownerDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Owner' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = ownerDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Owner' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Owner' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Owner' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Owner' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = ownerDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to provide an identifier", id);                 Owner.findOwner(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Owner' with identifier '" + id + "'", Owner.findOwner(id));             }          OwnerIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Vet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Vet * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Vet.class) @Controller @RequestMapping("/vet/**") public class VetController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  OwnerController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "owner", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 return "owner/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("owner", com.springsource.petclinic.domain.Owner.findOwner(id));                 return "owner/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String OwnerController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Owner.findOwner(id).remove();                 return "redirect:/owner";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 modelMap.addAttribute("owner", new com.springsource.petclinic.domain.Owner());                 return "owner/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String OwnerController$create(@org.springframework.web.bind.annotation.ModelAttribute("owner") com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "Owner must be provided.");                 owner.persist();                 return "redirect:/owner/"+owner.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 modelMap.addAttribute("owner", com.springsource.petclinic.domain.Owner.findOwner(id));                 return "owner/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String OwnerController$update(@org.springframework.web.bind.annotation.ModelAttribute("owner") com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "Owner must be provided.");                 owner.merge();                 return "redirect:/owner/" + owner.getId();             }              @org.springframework.web.bind.annotation.InitBinder         void OwnerController$initBinder(org.springframework.web.bind.WebDataBinder binder) {             binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));             }          OwnerController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = VetSpecialty.class) public class VetSpecialtyEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = Owner.class) public class OwnerEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import com.springsource.petclinic.reference.Specialty; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn;  @RooEntity @RooJpa @Entity public class VetSpecialty {      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date registered;      @ManyToOne     @JoinColumn     private Specialty specialty;      @ManyToOne     @JoinColumn     private Vet vet; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyEditor_Roo_Editor_Itd {          int     parents                                                                ;              org.springframework.beans.SimpleTypeConverter VetSpecialtyEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String VetSpecialtyEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.VetSpecialty) obj).getId() , String.class);             }              public void VetSpecialtyEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.VetSpecialty.findVetSpecialty(identifier));             }          VetSpecialtyEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetDataOnDemand_Roo_Dod_Itd {          int     $type                                                                             ;              int     $type                                                            ;              private java.util.Random VetDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Vet> VetDataOnDemand$data;              public Vet VetDataOnDemand$getNewTransientEntity(int index) {             Vet obj = new Vet();                 obj.setEmployedSince(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 obj.setLastName("lastName_" + index);                 obj.setAddress("address_" + index);                 obj.setCity("city_" + index);                 obj.setTelephone(new Integer(index));                 obj.setBirthDay(new java.util.Date());                 return obj;             }              public Vet VetDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VetDataOnDemand$modify(com.springsource.petclinic.domain.Vet obj) {             obj.setLastName(obj.getLastName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VetDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Vet.findVetEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Vet' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Vet obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VetDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VetSpecialtyDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VetIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package injavafiles.hasitds;  import injavafiles.itds.ITDAspect; import java.util.List;  public class HasITDs {   public void tryItOut() {   this.list.addAll(null);   this.makeList(4);    new HasITDs(6);   this.value = 9;   this.inside = 9;    }  } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Vet_Roo_Jpa_Itd {          public static long Vet$countVets() {             return (Long) new Vet().entityManager.createQuery("select count(o) from Vet o").getSingleResult();             }              public static com.springsource.petclinic.domain.Vet Vet$findVet(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Vet");                 return new Vet().entityManager.find(Vet.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Vet> Vet$findAllVets() {             return new Vet().entityManager.createQuery("select o from Vet o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Vet> Vet$findVetEntries(int firstResult, int maxResults) {             return new Vet().entityManager.createQuery("select o from Vet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Vet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.Length; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn;  @RooEntity @Entity @RooJpa(finders = { "findVisitsByDescriptionAndVisitDate", "findVisitsByVisitDateBetween", "findVisitsByDescriptionLike" }) public class Visit {      @Length(min = 0, max = 255)     private String description;      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date visitDate;      @NotNull     @ManyToOne     @JoinColumn     private Pet pet;      @ManyToOne     @JoinColumn     private Vet vet; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetType_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager PetType$entityManager;              @org.springframework.transaction.annotation.Transactional         public void PetType$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void PetType$merge() {             PetType merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void PetType$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void PetType$remove() {             this.entityManager.remove(this);             }              public static long PetType$countPetTypes() {             return (Long) new PetType().entityManager.createQuery("select count(o) from PetType o").getSingleResult();             }              public static com.springsource.petclinic.reference.PetType PetType$findPetType(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of PetType");                 return new PetType().entityManager.find(PetType.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.PetType> PetType$findAllPetTypes() {             return new PetType().entityManager.createQuery("select o from PetType o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.PetType> PetType$findPetTypeEntries(int firstResult, int maxResults) {             return new PetType().entityManager.createQuery("select o from PetType o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          PetType ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class PetTypeDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class SpecialtyDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import java.util.Set; import java.util.HashSet; import javax.persistence.OneToMany; import javax.persistence.CascadeType;  @RooEntity @RooJpa @Entity public class Vet extends AbstractPerson {      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date employedSince;      @OneToMany(cascade = CascadeType.ALL, mappedBy = "vet")     private Set<VetSpecialty> specialties = new HashSet<VetSpecialty>(); }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VisitIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                    ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VisitDataOnDemand VisitIntegrationTest$visitDataOnDemand;              @org.junit.Test         public void VisitIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 junit.framework.Assert.assertTrue("Counter for 'Visit' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VisitIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = visitDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to provide an identifier", id);                 Visit obj = Visit.findVisit(id);                 junit.framework.Assert.assertNotNull("Find method for 'Visit' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Visit' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VisitIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Visit', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VisitIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Visit> result = Visit.findAllVisits();                 junit.framework.Assert.assertNotNull("Find all method for 'Visit' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Visit' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VisitIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Visit> result = Visit.findVisitEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Visit' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Visit' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = Visit.findVisit(visitDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = visitDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Visit' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = Visit.findVisit(visitDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = visitDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Visit' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = visitDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Visit' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Visit' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Visit' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Visit' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = visitDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to provide an identifier", id);                 Visit.findVisit(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Visit' with identifier '" + id + "'", Visit.findVisit(id));             }          VisitIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                      ;              int     $type                                                                     ;              private java.util.Random VetSpecialtyDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<VetSpecialty> VetSpecialtyDataOnDemand$data;              public VetSpecialty VetSpecialtyDataOnDemand$getNewTransientEntity(int index) {             VetSpecialty obj = new VetSpecialty();                 obj.setRegistered(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 return obj;             }              public VetSpecialty VetSpecialtyDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VetSpecialtyDataOnDemand$modify(com.springsource.petclinic.domain.VetSpecialty obj) {             return false;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VetSpecialtyDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = VetSpecialty.findVetSpecialtyEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'VetSpecialty' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     VetSpecialty obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VetSpecialtyDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic;  import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.ContextConfiguration;  @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:/applicationContext.xml") public abstract class AbstractIntegrationTest { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeEditor_Roo_Editor_Itd {          int     parents                                                           ;              org.springframework.beans.SimpleTypeConverter PetTypeEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String PetTypeEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.reference.PetType) obj).getId() , String.class);             }              public void PetTypeEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.reference.PetType.findPetType(identifier));             }          PetTypeEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                           ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VetSpecialtyDataOnDemand VetSpecialtyIntegrationTest$vetSpecialtyDataOnDemand;              @org.junit.Test         public void VetSpecialtyIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'VetSpecialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to provide an identifier", id);                 VetSpecialty obj = VetSpecialty.findVetSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'VetSpecialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'VetSpecialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'VetSpecialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VetSpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<VetSpecialty> result = VetSpecialty.findAllVetSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'VetSpecialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'VetSpecialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<VetSpecialty> result = VetSpecialty.findVetSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'VetSpecialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'VetSpecialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = VetSpecialty.findVetSpecialty(vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetSpecialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'VetSpecialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = VetSpecialty.findVetSpecialty(vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetSpecialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'VetSpecialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = vetSpecialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'VetSpecialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'VetSpecialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'VetSpecialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'VetSpecialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to provide an identifier", id);                 VetSpecialty.findVetSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'VetSpecialty' with identifier '" + id + "'", VetSpecialty.findVetSpecialty(id));             }          VetSpecialtyIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.Length; import org.hibernate.validator.NotNull; import org.hibernate.validator.Min; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn; import com.springsource.petclinic.reference.PetType;  @RooEntity @Entity @RooJpa(finders = { "findPetsByNameAndWeight", "findPetsByOwner" }) public class Pet {      @Length(min = 0, max = 50)     private String contactEmails;      @NotNull     private Boolean sendReminders;      @NotNull     private String name;      @NotNull     @Min(0)     private Float weight;      @ManyToOne     @JoinColumn     private Owner owner;      @ManyToOne     @JoinColumn     private PetType type; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Entity_Itd {          int     $type                                                                   ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Visit$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Visit$version;              public java.lang.Long Visit$getId() {             return id;             }              public void Visit$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Visit$getVersion() {             return version;             }              public void Visit$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Visit$getDescription() {             return description;             }              public void Visit$setDescription(java.lang.String description) {             this.description = description;             }              public java.util.Date Visit$getVisitDate() {             return visitDate;             }              public void Visit$setVisitDate(java.util.Date visitDate) {             this.visitDate = visitDate;             }              public com.springsource.petclinic.domain.Pet Visit$getPet() {             return pet;             }              public void Visit$setPet(com.springsource.petclinic.domain.Pet pet) {             this.pet = pet;             }              public com.springsource.petclinic.domain.Vet Visit$getVet() {             return vet;             }              public void Visit$setVet(com.springsource.petclinic.domain.Vet vet) {             this.vet = vet;             }              public java.lang.String Visit$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Description: " + getDescription());                 tsc.append("VisitDate: " + getVisitDate());                 tsc.append("Pet: " + getPet());                 tsc.append("Vet: " + getVet());                 return tsc.toString();             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  SpecialtyIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                        ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.SpecialtyDataOnDemand SpecialtyIntegrationTest$specialtyDataOnDemand;              @org.junit.Test         public void SpecialtyIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'Specialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty obj = Specialty.findSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'Specialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Specialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void SpecialtyIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Specialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'SpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Specialty> result = Specialty.findAllSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Specialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Specialty> result = Specialty.findSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Specialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = specialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Specialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Specialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty.findSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Specialty' with identifier '" + id + "'", Specialty.findSpecialty(id));             }          SpecialtyIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Finder_Itd {          public static javax.persistence.Query Pet$findPetsByNameAndWeight(java.lang.String name, java.lang.Float weight) {             org.springframework.util.Assert.notNull(name, "A Name is required.");                 org.springframework.util.Assert.notNull(weight, "A Weight is required.");                 javax.persistence.Query q = new Pet().entityManager.createQuery("FROM Pet AS pet WHERE pet.name = :name AND pet.weight = :weight");                 q.setParameter("name", name);                 q.setParameter("weight", weight);                 return q;             }              public static javax.persistence.Query Pet$findPetsByOwner(com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "A Owner is required.");                 javax.persistence.Query q = new Pet().entityManager.createQuery("FROM Pet AS pet WHERE pet.owner = :owner");                 q.setParameter("owner", owner);                 return q;             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  AbstractPerson_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager AbstractPerson$entityManager;              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$merge() {             AbstractPerson merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$remove() {             this.entityManager.remove(this);             }          AbstractPerson ___ITD_INSERTED_IDENTIFIER___0; }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerEditor_Roo_Editor_Itd {          int     parents                                                         ;              org.springframework.beans.SimpleTypeConverter OwnerEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String OwnerEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.Owner) obj).getId() , String.class);             }              public void OwnerEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.Owner.findOwner(identifier));             }          OwnerEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = Pet.class) public class PetEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import java.util.Date;  public abstract class AbstractPerson {      private String firstName;      private String lastName;      private String address;      private String city;      private Integer telephone;      private String homePage;      private String email;      private Date birthDay; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class PetIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Vet_Roo_Entity_Itd {          int     $type                                                                 ;              public java.util.Date Vet$getEmployedSince() {             return employedSince;             }              public void Vet$setEmployedSince(java.util.Date employedSince) {             this.employedSince = employedSince;             }              public java.util.Set<com.springsource.petclinic.domain.VetSpecialty> Vet$getSpecialties() {             return specialties;             }              public void Vet$setSpecialties(java.util.Set<com.springsource.petclinic.domain.VetSpecialty> specialties) {             this.specialties = specialties;             }              public java.lang.String Vet$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 tsc.append("EmployedSince: " + getEmployedSince());                 tsc.append("Specialties: " + specialties.size());                 return tsc.toString();             }          Vet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package injavafiles.uses;  import injavafiles.hasitds.HasITDs; import java.util.List;  class UsesITDs {  public void tryItOut() {   HasITDs h = new HasITDs(6);   h.list.addAll(null);   h.makeList(4);   h.value = 9;   h.inside = 9;   }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- import p.Aspect2;   public class  Aspect {  int Class$x;    int hhh;  int h() {   Aspect2.aspectOf().hhh++;   return 9;  } Class ___ITD_INSERTED_IDENTIFIER___0; }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.NotNull; import org.hibernate.validator.Length;  @RooEntity @RooJpa @Entity public class Specialty {      @NotNull     @Length(min = 0, max = 30)     private String name; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  Specialty_Roo_Entity_Itd {          int     $type                                                                       ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Specialty$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Specialty$version;              public java.lang.Long Specialty$getId() {             return id;             }              public void Specialty$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Specialty$getVersion() {             return version;             }              public void Specialty$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Specialty$getName() {             return name;             }              public void Specialty$setName(java.lang.String name) {             this.name = name;             }              public java.lang.String Specialty$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Name: " + getName());                 return tsc.toString();             }          Specialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Owner_Roo_Entity_Itd {          int     $type                                                                   ;              public java.util.Set<com.springsource.petclinic.domain.Pet> Owner$getPets() {             return pets;             }              public void Owner$setPets(java.util.Set<com.springsource.petclinic.domain.Pet> pets) {             this.pets = pets;             }              public java.lang.String Owner$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 tsc.append("Pets: " + pets.size());                 return tsc.toString();             }          Owner ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package uses;  import hasitds.HasITDs; import java.util.List;  class UsesITDs {  public void tryItOut() {   HasITDs h = new HasITDs(6);   h.list.addAll(null);   h.makeList(4);   h.value = 9;   h.inside = 9;   }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  VetController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "vet", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("vets", com.springsource.petclinic.domain.Vet.findAllVets());                 return "vet/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("vet", com.springsource.petclinic.domain.Vet.findVet(id));                 return "vet/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String VetController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Vet.findVet(id).remove();                 return "redirect:/vet";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("vetspecialtys", com.springsource.petclinic.domain.VetSpecialty.findAllVetSpecialtys());                 modelMap.addAttribute("vet", new com.springsource.petclinic.domain.Vet());                 return "vet/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String VetController$create(@org.springframework.web.bind.annotation.ModelAttribute("vet") com.springsource.petclinic.domain.Vet vet) {             org.springframework.util.Assert.notNull(vet, "Vet must be provided.");                 vet.persist();                 return "redirect:/vet/"+vet.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("vetspecialtys", com.springsource.petclinic.domain.VetSpecialty.findAllVetSpecialtys());                 modelMap.addAttribute("vet", com.springsource.petclinic.domain.Vet.findVet(id));                 return "vet/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String VetController$update(@org.springframework.web.bind.annotation.ModelAttribute("vet") com.springsource.petclinic.domain.Vet vet) {             org.springframework.util.Assert.notNull(vet, "Vet must be provided.");                 vet.merge();                 return "redirect:/vet/" + vet.getId();             }              @org.springframework.web.bind.annotation.InitBinder         void VetController$initBinder(org.springframework.web.bind.WebDataBinder binder) {             binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));                 binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));             }          VetController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Visit$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Visit$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Visit$merge() {             Visit merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Visit$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Visit$remove() {             this.entityManager.remove(this);             }              public static long Visit$countVisits() {             return (Long) new Visit().entityManager.createQuery("select count(o) from Visit o").getSingleResult();             }              public static com.springsource.petclinic.domain.Visit Visit$findVisit(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Visit");                 return new Visit().entityManager.find(Visit.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Visit> Visit$findAllVisits() {             return new Visit().entityManager.createQuery("select o from Visit o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Visit> Visit$findVisitEntries(int firstResult, int maxResults) {             return new Visit().entityManager.createQuery("select o from Visit o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetEditor_Roo_Editor_Itd {          int     parents                                                       ;              org.springframework.beans.SimpleTypeConverter PetEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String PetEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.Pet) obj).getId() , String.class);             }              public void PetEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.Pet.findPet(identifier));             }          PetEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  PetTypeController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "pettype", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 return "pettype/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pettype", com.springsource.petclinic.reference.PetType.findPetType(id));                 return "pettype/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String PetTypeController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.reference.PetType.findPetType(id).remove();                 return "redirect:/pettype";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pettype", new com.springsource.petclinic.reference.PetType());                 return "pettype/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String PetTypeController$create(@org.springframework.web.bind.annotation.ModelAttribute("pettype") com.springsource.petclinic.reference.PetType pettype) {             org.springframework.util.Assert.notNull(pettype, "PetType must be provided.");                 pettype.persist();                 return "redirect:/pettype/"+pettype.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pettype", com.springsource.petclinic.reference.PetType.findPetType(id));                 return "pettype/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String PetTypeController$update(@org.springframework.web.bind.annotation.ModelAttribute("pettype") com.springsource.petclinic.reference.PetType pettype) {             org.springframework.util.Assert.notNull(pettype, "PetType must be provided.");                 pettype.merge();                 return "redirect:/pettype/" + pettype.getId();             }          PetTypeController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Owner; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Owner * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Owner.class) @Controller @RequestMapping("/owner/**") public class OwnerController {          void test() {         new Owner().toString();     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class PetDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialty_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager VetSpecialty$entityManager;              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$merge() {             VetSpecialty merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$remove() {             this.entityManager.remove(this);             }              public static long VetSpecialty$countVetSpecialtys() {             return (Long) new VetSpecialty().entityManager.createQuery("select count(o) from VetSpecialty o").getSingleResult();             }              public static com.springsource.petclinic.domain.VetSpecialty VetSpecialty$findVetSpecialty(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of VetSpecialty");                 return new VetSpecialty().entityManager.find(VetSpecialty.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.VetSpecialty> VetSpecialty$findAllVetSpecialtys() {             return new VetSpecialty().entityManager.createQuery("select o from VetSpecialty o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.VetSpecialty> VetSpecialty$findVetSpecialtyEntries(int firstResult, int maxResults) {             return new VetSpecialty().entityManager.createQuery("select o from VetSpecialty o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          VetSpecialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                  ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.PetDataOnDemand PetIntegrationTest$petDataOnDemand;              @org.junit.Test         public void PetIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 junit.framework.Assert.assertTrue("Counter for 'Pet' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void PetIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to provide an identifier", id);                 Pet obj = Pet.findPet(id);                 junit.framework.Assert.assertNotNull("Find method for 'Pet' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Pet' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void PetIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Pet', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'PetIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Pet> result = Pet.findAllPets();                 junit.framework.Assert.assertNotNull("Find all method for 'Pet' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Pet' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void PetIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Pet> result = Pet.findPetEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Pet' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Pet' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = Pet.findPet(petDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Pet' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = Pet.findPet(petDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Pet' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = petDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Pet' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Pet' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Pet' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Pet' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to provide an identifier", id);                 Pet.findPet(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Pet' with identifier '" + id + "'", Pet.findPet(id));             }          PetIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.reference.PetType; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for PetType * */ @RooWebScaffold(automaticallyMaintainView = true, entity = PetType.class) @Controller @RequestMapping("/pettype/**") public class PetTypeController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VetSpecialtyIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Pet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Pet * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Pet.class) @Controller @RequestMapping("/pet/**") public class PetController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerDataOnDemand_Roo_Dod_Itd {          int     $type                                                                               ;              int     $type                                                              ;              private java.util.Random OwnerDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Owner> OwnerDataOnDemand$data;              public Owner OwnerDataOnDemand$getNewTransientEntity(int index) {             Owner obj = new Owner();                 obj.setLastName("lastName_" + index);                 obj.setAddress("address_" + index);                 obj.setCity("city_" + index);                 obj.setTelephone(new Integer(index));                 obj.setBirthDay(new java.util.Date());                 return obj;             }              public Owner OwnerDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean OwnerDataOnDemand$modify(com.springsource.petclinic.domain.Owner obj) {             obj.setLastName(obj.getLastName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void OwnerDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Owner.findOwnerEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Owner' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Owner obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          OwnerDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Set; import java.util.HashSet; import javax.persistence.OneToMany; import javax.persistence.CascadeType;  @RooEntity @RooJpa @Entity public class Owner extends AbstractPerson {      @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")     private Set<Pet> pets = new HashSet<Pet>();          public void test() throws Exception {         this.getAddress();  } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Finder_Itd {          public static javax.persistence.Query Visit$findVisitsByDescriptionAndVisitDate(java.lang.String description, java.util.Date visitDate) {             org.springframework.util.Assert.notNull(description, "A Description is required.");                 org.springframework.util.Assert.notNull(visitDate, "A VisitDate is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.description = :description AND visit.visitDate = :visitDate");                 q.setParameter("description", description);                 q.setParameter("visitDate", visitDate);                 return q;             }              public static javax.persistence.Query Visit$findVisitsByVisitDateBetween(java.util.Date minVisitDate, java.util.Date maxVisitDate) {             org.springframework.util.Assert.notNull(minVisitDate, "A minimum VisitDate is required.");                 org.springframework.util.Assert.notNull(maxVisitDate, "A maximum VisitDate is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.visitDate BETWEEN :minVisitDate AND :maxVisitDate ");                 q.setParameter("minVisitDate", minVisitDate);                 q.setParameter("maxVisitDate", maxVisitDate);                 return q;             }              public static javax.persistence.Query Visit$findVisitsByDescriptionLike(java.lang.String description) {             org.springframework.util.Assert.notNull(description, "A Description is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.description LIKE :description ");                 q.setParameter("description", "%"+description+"%");                 return q;             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.NotNull; import org.hibernate.validator.Length;  @RooEntity @RooJpa @Entity public class PetType {      @NotNull     @Length(min = 0, max = 30)     private String type; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Owner_Roo_Jpa_Itd {          public static long Owner$countOwners() {             return (Long) new Owner().entityManager.createQuery("select count(o) from Owner o").getSingleResult();             }              public static com.springsource.petclinic.domain.Owner Owner$findOwner(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Owner");                 return new Owner().entityManager.find(Owner.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Owner> Owner$findAllOwners() {             return new Owner().entityManager.createQuery("select o from Owner o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Owner> Owner$findOwnerEntries(int firstResult, int maxResults) {             return new Owner().entityManager.createQuery("select o from Owner o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Owner ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                      ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.PetTypeDataOnDemand PetTypeIntegrationTest$petTypeDataOnDemand;              @org.junit.Test         public void PetTypeIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 junit.framework.Assert.assertTrue("Counter for 'PetType' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void PetTypeIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petTypeDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to provide an identifier", id);                 PetType obj = PetType.findPetType(id);                 junit.framework.Assert.assertNotNull("Find method for 'PetType' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'PetType' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void PetTypeIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'PetType', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'PetTypeIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<PetType> result = PetType.findAllPetTypes();                 junit.framework.Assert.assertNotNull("Find all method for 'PetType' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'PetType' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void PetTypeIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 if (count > 20) {                     count = 20;                     }                 java.util.List<PetType> result = PetType.findPetTypeEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'PetType' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'PetType' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = PetType.findPetType(petTypeDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petTypeDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'PetType' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = PetType.findPetType(petTypeDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petTypeDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'PetType' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = petTypeDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'PetType' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'PetType' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'PetType' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'PetType' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petTypeDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to provide an identifier", id);                 PetType.findPetType(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'PetType' with identifier '" + id + "'", PetType.findPetType(id));             }          PetTypeIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN -------------------------------------  public class Class {  int y;  @Override  public String toString() {   Aspect.aspectOf().hhh++;   Aspect.aspectOf().getWithinTypeName().substring(0);   Aspect.hasAspect();   return super.toString();  } }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  PetController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "pet", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 return "pet/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pet", com.springsource.petclinic.domain.Pet.findPet(id));                 return "pet/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String PetController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Pet.findPet(id).remove();                 return "redirect:/pet";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 modelMap.addAttribute("pet", new com.springsource.petclinic.domain.Pet());                 return "pet/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String PetController$create(@org.springframework.web.bind.annotation.ModelAttribute("pet") com.springsource.petclinic.domain.Pet pet) {             org.springframework.util.Assert.notNull(pet, "Pet must be provided.");                 pet.persist();                 return "redirect:/pet/"+pet.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 modelMap.addAttribute("pet", com.springsource.petclinic.domain.Pet.findPet(id));                 return "pet/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String PetController$update(@org.springframework.web.bind.annotation.ModelAttribute("pet") com.springsource.petclinic.domain.Pet pet) {             org.springframework.util.Assert.notNull(pet, "Pet must be provided.");                 pet.merge();                 return "redirect:/pet/" + pet.getId();             }          PetController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  AbstractPerson_Roo_Entity_Itd {          int     $type                                                                            ;              @javax.persistence.Id          @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long AbstractPerson$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer AbstractPerson$version;              public java.lang.Long AbstractPerson$getId() {             return id;             }              public void AbstractPerson$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer AbstractPerson$getVersion() {             return version;             }              public void AbstractPerson$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String AbstractPerson$getFirstName() {             return firstName;             }              public void AbstractPerson$setFirstName(java.lang.String firstName) {             this.firstName = firstName;             }              public java.lang.String AbstractPerson$getLastName() {             return lastName;             }              public void AbstractPerson$setLastName(java.lang.String lastName) {             this.lastName = lastName;             }              public java.lang.String AbstractPerson$getAddress() {             return address;             }              public void AbstractPerson$setAddress(java.lang.String address) {             this.address = address;             }              public java.lang.String AbstractPerson$getCity() {             return city;             }              public void AbstractPerson$setCity(java.lang.String city) {             this.city = city;             }              public java.lang.Integer AbstractPerson$getTelephone() {             return telephone;             }              public void AbstractPerson$setTelephone(java.lang.Integer telephone) {             this.telephone = telephone;             }              public java.lang.String AbstractPerson$getHomePage() {             return homePage;             }              public void AbstractPerson$setHomePage(java.lang.String homePage) {             this.homePage = homePage;             }              public java.lang.String AbstractPerson$getEmail() {             return email;             }              public void AbstractPerson$setEmail(java.lang.String email) {             this.email = email;             }              public java.util.Date AbstractPerson$getBirthDay() {             return birthDay;             }              public void AbstractPerson$setBirthDay(java.util.Date birthDay) {             this.birthDay = birthDay;             }              public java.lang.String AbstractPerson$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 return tsc.toString();             }          AbstractPerson ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                 ;              int     $type                                                                ;              private java.util.Random PetTypeDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<PetType> PetTypeDataOnDemand$data;              public PetType PetTypeDataOnDemand$getNewTransientEntity(int index) {             PetType obj = new PetType();                 obj.setType("type_" + index);                 return obj;             }              public PetType PetTypeDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean PetTypeDataOnDemand$modify(com.springsource.petclinic.reference.PetType obj) {             obj.setType(obj.getType() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void PetTypeDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = PetType.findPetTypeEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'PetType' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     PetType obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          PetTypeDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetType_Roo_Entity_Itd {          int     $type                                                                     ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long PetType$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer PetType$version;              public java.lang.Long PetType$getId() {             return id;             }              public void PetType$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer PetType$getVersion() {             return version;             }              public void PetType$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String PetType$getType() {             return type;             }              public void PetType$setType(java.lang.String type) {             this.type = type;             }              public java.lang.String PetType$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Type: " + getType());                 return tsc.toString();             }          PetType ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  SpecialtyDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                   ;              int     $type                                                                  ;              private java.util.Random SpecialtyDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Specialty> SpecialtyDataOnDemand$data;              public Specialty SpecialtyDataOnDemand$getNewTransientEntity(int index) {             Specialty obj = new Specialty();                 obj.setName("name_" + index);                 return obj;             }              public Specialty SpecialtyDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean SpecialtyDataOnDemand$modify(com.springsource.petclinic.reference.Specialty obj) {             obj.setName(obj.getName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void SpecialtyDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Specialty.findSpecialtyEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Specialty' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Specialty obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          SpecialtyDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VisitDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                  ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VetDataOnDemand VetIntegrationTest$vetDataOnDemand;              @org.junit.Test         public void VetIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 junit.framework.Assert.assertTrue("Counter for 'Vet' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VetIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to provide an identifier", id);                 Vet obj = Vet.findVet(id);                 junit.framework.Assert.assertNotNull("Find method for 'Vet' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Vet' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VetIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Vet', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VetIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Vet> result = Vet.findAllVets();                 junit.framework.Assert.assertNotNull("Find all method for 'Vet' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Vet' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VetIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Vet> result = Vet.findVetEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Vet' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Vet' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = Vet.findVet(vetDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Vet' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = Vet.findVet(vetDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Vet' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = vetDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Vet' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Vet' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Vet' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Vet' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to provide an identifier", id);                 Vet.findVet(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Vet' with identifier '" + id + "'", Vet.findVet(id));             }          VetIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package itds; import java.util.ArrayList; import java.util.List; import hasitds.HasITDs;    public class  ITDAspect {  public List<String> HasITDs$list;  public java.util.List<String> HasITDs$makeList(int size) {   return new ArrayList<String>();  }   public HasITDs$new(int x) {   this();   list = new ArrayList<String>();   }      public static class Super {   public int inside =9;  }    public int Super$value = 7;    int     parents                        ;    public static void main(String[] args) {      int x = args.length;      x++;     }    void around()                                       {      thisJoinPoint.getArgs();  } HasITDs ___ITD_INSERTED_IDENTIFIER___0; ITDAspect ___ITD_INSERTED_IDENTIFIER___1; Super ___ITD_INSERTED_IDENTIFIER___2; } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VisitIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Entity_Itd {          int     $type                                                                 ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Pet$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Pet$version;              public java.lang.Long Pet$getId() {             return id;             }              public void Pet$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Pet$getVersion() {             return version;             }              public void Pet$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Pet$getContactEmails() {             return contactEmails;             }              public void Pet$setContactEmails(java.lang.String contactEmails) {             this.contactEmails = contactEmails;             }              public java.lang.Boolean Pet$getSendReminders() {             return sendReminders;             }              public void Pet$setSendReminders(java.lang.Boolean sendReminders) {             this.sendReminders = sendReminders;             }              public java.lang.String Pet$getName() {             return name;             }              public void Pet$setName(java.lang.String name) {             this.name = name;             }              public java.lang.Float Pet$getWeight() {             return weight;             }              public void Pet$setWeight(java.lang.Float weight) {             this.weight = weight;             }              public com.springsource.petclinic.domain.Owner Pet$getOwner() {             return owner;             }              public void Pet$setOwner(com.springsource.petclinic.domain.Owner owner) {             this.owner = owner;             }              public com.springsource.petclinic.reference.PetType Pet$getType() {             return type;             }              public void Pet$setType(com.springsource.petclinic.reference.PetType type) {             this.type = type;             }              public java.lang.String Pet$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("ContactEmails: " + getContactEmails());                 tsc.append("SendReminders: " + getSendReminders());                 tsc.append("Name: " + getName());                 tsc.append("Weight: " + getWeight());                 tsc.append("Owner: " + getOwner());                 tsc.append("Type: " + getType());                 return tsc.toString();             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class SpecialtyIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class OwnerIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class OwnerDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetDataOnDemand_Roo_Dod_Itd {          int     $type                                                                             ;              int     $type                                                            ;              private java.util.Random PetDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Pet> PetDataOnDemand$data;              public Pet PetDataOnDemand$getNewTransientEntity(int index) {             Pet obj = new Pet();                 obj.setSendReminders(new Boolean(true));                 obj.setName("name_" + index);                 obj.setWeight(new Float(index));                 return obj;             }              public Pet PetDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean PetDataOnDemand$modify(com.springsource.petclinic.domain.Pet obj) {             obj.setName(obj.getName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void PetDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Pet.findPetEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Pet' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Pet obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          PetDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Pet$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Pet$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Pet$merge() {             Pet merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Pet$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Pet$remove() {             this.entityManager.remove(this);             }              public static long Pet$countPets() {             return (Long) new Pet().entityManager.createQuery("select count(o) from Pet o").getSingleResult();             }              public static com.springsource.petclinic.domain.Pet Pet$findPet(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Pet");                 return new Pet().entityManager.find(Pet.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Pet> Pet$findAllPets() {             return new Pet().entityManager.createQuery("select o from Pet o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Pet> Pet$findPetEntries(int firstResult, int maxResults) {             return new Pet().entityManager.createQuery("select o from Pet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialty_Roo_Entity_Itd {          int     $type                                                                          ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long VetSpecialty$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer VetSpecialty$version;              public java.lang.Long VetSpecialty$getId() {             return id;             }              public void VetSpecialty$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer VetSpecialty$getVersion() {             return version;             }              public void VetSpecialty$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.util.Date VetSpecialty$getRegistered() {             return registered;             }              public void VetSpecialty$setRegistered(java.util.Date registered) {             this.registered = registered;             }              public com.springsource.petclinic.reference.Specialty VetSpecialty$getSpecialty() {             return specialty;             }              public void VetSpecialty$setSpecialty(com.springsource.petclinic.reference.Specialty specialty) {             this.specialty = specialty;             }              public com.springsource.petclinic.domain.Vet VetSpecialty$getVet() {             return vet;             }              public void VetSpecialty$setVet(com.springsource.petclinic.domain.Vet vet) {             this.vet = vet;             }              public java.lang.String VetSpecialty$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Registered: " + getRegistered());                 tsc.append("Specialty: " + getSpecialty());                 tsc.append("Vet: " + getVet());                 return tsc.toString();             }          VetSpecialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package hasitds;  import itds.ITDAspect; import java.util.List;  public class HasITDs {   public void tryItOut() {   this.list.addAll(null);   this.makeList(4);    new HasITDs(6);   this.value = 9;   this.inside = 9;    }  } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- public class  AspectWithDotClass {  int x1;  private boolean method() {   Object o = new Object();   if (!o.equals(void.class)) {    this.x1 ++ ;    return true;   }   return false;  } }     ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package other;  import java.util.List; import java.util.HashMap;  public class Gen <T extends Number & List<?>,          F extends HashMap<String, String> & Comparable<?>> {       void doNothing(T bar, F baz) {         bar.floatValue();         bar.clear();         baz.clear();         baz.compareTo(null);     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VetDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
> 1 public class ErrorClass {
	> 1 	public static aspect ProfilingAspect {
		> 1 	private long AccessTracked.lastAccessedTime;

		> 1 		public void AccessTracked.updateLastAccessedTime() {
(8720 more lines...)
Collapse Failed ProblemFinderTests10 testProblemFindingAll History
Default Job 5 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package ajia.tracking;   public aspect TimeTracker {      private static interface LastAccessedTimeHolder {          static aspect Impl {              private long LastAccessedTimeHolder.lastAccessedTime;               public long LastAccessedTimeHolder.getLastAccessedTime() {                  return lastAccessedTime;              }               public void                  LastAccessedTimeHolder.setLastAccessedTime(long time) {                  lastAccessedTime = time;              }          }      }       declare parents : @Service * implements LastAccessedTimeHolder;       before(LastAccessedTimeHolder service)          : execution(* LastAccessedTimeHolder+.*(..)) && this(service)            && !within(TimeTracker) {          service.setLastAccessedTime(System.nanoTime());      } }  @interface Service { }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  Specialty_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Specialty$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Specialty$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$merge() {             Specialty merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$remove() {             this.entityManager.remove(this);             }              public static long Specialty$countSpecialtys() {             return (Long) new Specialty().entityManager.createQuery("select count(o) from Specialty o").getSingleResult();             }              public static com.springsource.petclinic.reference.Specialty Specialty$findSpecialty(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Specialty");                 return new Specialty().entityManager.find(Specialty.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.Specialty> Specialty$findAllSpecialtys() {             return new Specialty().entityManager.createQuery("select o from Specialty o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.Specialty> Specialty$findSpecialtyEntries(int firstResult, int maxResults) {             return new Specialty().entityManager.createQuery("select o from Specialty o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Specialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = PetType.class) public class PetTypeEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VisitDataOnDemand_Roo_Dod_Itd {          int     $type                                                                               ;              int     $type                                                              ;              private java.util.Random VisitDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Visit> VisitDataOnDemand$data;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.PetDataOnDemand VisitDataOnDemand$petDataOnDemand;              public Visit VisitDataOnDemand$getNewTransientEntity(int index) {             Visit obj = new Visit();                 obj.setVisitDate(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 obj.setPet(petDataOnDemand.getRandomPersistentEntity());                 return obj;             }              public Visit VisitDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VisitDataOnDemand$modify(com.springsource.petclinic.domain.Visit obj) {             return false;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VisitDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Visit.findVisitEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Visit' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Visit obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VisitDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class PetTypeIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                    ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.OwnerDataOnDemand OwnerIntegrationTest$ownerDataOnDemand;              @org.junit.Test         public void OwnerIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 junit.framework.Assert.assertTrue("Counter for 'Owner' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void OwnerIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = ownerDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to provide an identifier", id);                 Owner obj = Owner.findOwner(id);                 junit.framework.Assert.assertNotNull("Find method for 'Owner' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Owner' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void OwnerIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Owner', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'OwnerIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Owner> result = Owner.findAllOwners();                 junit.framework.Assert.assertNotNull("Find all method for 'Owner' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Owner' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void OwnerIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Owner> result = Owner.findOwnerEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Owner' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Owner' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = Owner.findOwner(ownerDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = ownerDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Owner' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = Owner.findOwner(ownerDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = ownerDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Owner' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = ownerDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Owner' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Owner' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Owner' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Owner' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = ownerDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to provide an identifier", id);                 Owner.findOwner(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Owner' with identifier '" + id + "'", Owner.findOwner(id));             }          OwnerIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Vet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Vet * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Vet.class) @Controller @RequestMapping("/vet/**") public class VetController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  OwnerController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "owner", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 return "owner/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("owner", com.springsource.petclinic.domain.Owner.findOwner(id));                 return "owner/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String OwnerController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Owner.findOwner(id).remove();                 return "redirect:/owner";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 modelMap.addAttribute("owner", new com.springsource.petclinic.domain.Owner());                 return "owner/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String OwnerController$create(@org.springframework.web.bind.annotation.ModelAttribute("owner") com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "Owner must be provided.");                 owner.persist();                 return "redirect:/owner/"+owner.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 modelMap.addAttribute("owner", com.springsource.petclinic.domain.Owner.findOwner(id));                 return "owner/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String OwnerController$update(@org.springframework.web.bind.annotation.ModelAttribute("owner") com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "Owner must be provided.");                 owner.merge();                 return "redirect:/owner/" + owner.getId();             }              @org.springframework.web.bind.annotation.InitBinder         void OwnerController$initBinder(org.springframework.web.bind.WebDataBinder binder) {             binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));             }          OwnerController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = VetSpecialty.class) public class VetSpecialtyEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = Owner.class) public class OwnerEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import com.springsource.petclinic.reference.Specialty; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn;  @RooEntity @RooJpa @Entity public class VetSpecialty {      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date registered;      @ManyToOne     @JoinColumn     private Specialty specialty;      @ManyToOne     @JoinColumn     private Vet vet; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyEditor_Roo_Editor_Itd {          int     parents                                                                ;              org.springframework.beans.SimpleTypeConverter VetSpecialtyEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String VetSpecialtyEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.VetSpecialty) obj).getId() , String.class);             }              public void VetSpecialtyEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.VetSpecialty.findVetSpecialty(identifier));             }          VetSpecialtyEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetDataOnDemand_Roo_Dod_Itd {          int     $type                                                                             ;              int     $type                                                            ;              private java.util.Random VetDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Vet> VetDataOnDemand$data;              public Vet VetDataOnDemand$getNewTransientEntity(int index) {             Vet obj = new Vet();                 obj.setEmployedSince(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 obj.setLastName("lastName_" + index);                 obj.setAddress("address_" + index);                 obj.setCity("city_" + index);                 obj.setTelephone(new Integer(index));                 obj.setBirthDay(new java.util.Date());                 return obj;             }              public Vet VetDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VetDataOnDemand$modify(com.springsource.petclinic.domain.Vet obj) {             obj.setLastName(obj.getLastName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VetDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Vet.findVetEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Vet' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Vet obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VetDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VetSpecialtyDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VetIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package injavafiles.hasitds;  import injavafiles.itds.ITDAspect; import java.util.List;  public class HasITDs {   public void tryItOut() {   this.list.addAll(null);   this.makeList(4);    new HasITDs(6);   this.value = 9;   this.inside = 9;    }  } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Vet_Roo_Jpa_Itd {          public static long Vet$countVets() {             return (Long) new Vet().entityManager.createQuery("select count(o) from Vet o").getSingleResult();             }              public static com.springsource.petclinic.domain.Vet Vet$findVet(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Vet");                 return new Vet().entityManager.find(Vet.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Vet> Vet$findAllVets() {             return new Vet().entityManager.createQuery("select o from Vet o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Vet> Vet$findVetEntries(int firstResult, int maxResults) {             return new Vet().entityManager.createQuery("select o from Vet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Vet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.Length; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn;  @RooEntity @Entity @RooJpa(finders = { "findVisitsByDescriptionAndVisitDate", "findVisitsByVisitDateBetween", "findVisitsByDescriptionLike" }) public class Visit {      @Length(min = 0, max = 255)     private String description;      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date visitDate;      @NotNull     @ManyToOne     @JoinColumn     private Pet pet;      @ManyToOne     @JoinColumn     private Vet vet; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetType_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager PetType$entityManager;              @org.springframework.transaction.annotation.Transactional         public void PetType$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void PetType$merge() {             PetType merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void PetType$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void PetType$remove() {             this.entityManager.remove(this);             }              public static long PetType$countPetTypes() {             return (Long) new PetType().entityManager.createQuery("select count(o) from PetType o").getSingleResult();             }              public static com.springsource.petclinic.reference.PetType PetType$findPetType(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of PetType");                 return new PetType().entityManager.find(PetType.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.PetType> PetType$findAllPetTypes() {             return new PetType().entityManager.createQuery("select o from PetType o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.PetType> PetType$findPetTypeEntries(int firstResult, int maxResults) {             return new PetType().entityManager.createQuery("select o from PetType o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          PetType ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class PetTypeDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class SpecialtyDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import java.util.Set; import java.util.HashSet; import javax.persistence.OneToMany; import javax.persistence.CascadeType;  @RooEntity @RooJpa @Entity public class Vet extends AbstractPerson {      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date employedSince;      @OneToMany(cascade = CascadeType.ALL, mappedBy = "vet")     private Set<VetSpecialty> specialties = new HashSet<VetSpecialty>(); }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VisitIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                    ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VisitDataOnDemand VisitIntegrationTest$visitDataOnDemand;              @org.junit.Test         public void VisitIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 junit.framework.Assert.assertTrue("Counter for 'Visit' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VisitIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = visitDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to provide an identifier", id);                 Visit obj = Visit.findVisit(id);                 junit.framework.Assert.assertNotNull("Find method for 'Visit' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Visit' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VisitIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Visit', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VisitIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Visit> result = Visit.findAllVisits();                 junit.framework.Assert.assertNotNull("Find all method for 'Visit' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Visit' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VisitIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Visit> result = Visit.findVisitEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Visit' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Visit' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = Visit.findVisit(visitDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = visitDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Visit' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = Visit.findVisit(visitDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = visitDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Visit' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = visitDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Visit' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Visit' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Visit' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Visit' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = visitDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to provide an identifier", id);                 Visit.findVisit(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Visit' with identifier '" + id + "'", Visit.findVisit(id));             }          VisitIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                      ;              int     $type                                                                     ;              private java.util.Random VetSpecialtyDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<VetSpecialty> VetSpecialtyDataOnDemand$data;              public VetSpecialty VetSpecialtyDataOnDemand$getNewTransientEntity(int index) {             VetSpecialty obj = new VetSpecialty();                 obj.setRegistered(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 return obj;             }              public VetSpecialty VetSpecialtyDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VetSpecialtyDataOnDemand$modify(com.springsource.petclinic.domain.VetSpecialty obj) {             return false;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VetSpecialtyDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = VetSpecialty.findVetSpecialtyEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'VetSpecialty' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     VetSpecialty obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VetSpecialtyDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic;  import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.ContextConfiguration;  @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:/applicationContext.xml") public abstract class AbstractIntegrationTest { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeEditor_Roo_Editor_Itd {          int     parents                                                           ;              org.springframework.beans.SimpleTypeConverter PetTypeEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String PetTypeEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.reference.PetType) obj).getId() , String.class);             }              public void PetTypeEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.reference.PetType.findPetType(identifier));             }          PetTypeEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                           ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VetSpecialtyDataOnDemand VetSpecialtyIntegrationTest$vetSpecialtyDataOnDemand;              @org.junit.Test         public void VetSpecialtyIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'VetSpecialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to provide an identifier", id);                 VetSpecialty obj = VetSpecialty.findVetSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'VetSpecialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'VetSpecialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'VetSpecialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VetSpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<VetSpecialty> result = VetSpecialty.findAllVetSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'VetSpecialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'VetSpecialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<VetSpecialty> result = VetSpecialty.findVetSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'VetSpecialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'VetSpecialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = VetSpecialty.findVetSpecialty(vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetSpecialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'VetSpecialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = VetSpecialty.findVetSpecialty(vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetSpecialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'VetSpecialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = vetSpecialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'VetSpecialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'VetSpecialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'VetSpecialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'VetSpecialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to provide an identifier", id);                 VetSpecialty.findVetSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'VetSpecialty' with identifier '" + id + "'", VetSpecialty.findVetSpecialty(id));             }          VetSpecialtyIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.Length; import org.hibernate.validator.NotNull; import org.hibernate.validator.Min; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn; import com.springsource.petclinic.reference.PetType;  @RooEntity @Entity @RooJpa(finders = { "findPetsByNameAndWeight", "findPetsByOwner" }) public class Pet {      @Length(min = 0, max = 50)     private String contactEmails;      @NotNull     private Boolean sendReminders;      @NotNull     private String name;      @NotNull     @Min(0)     private Float weight;      @ManyToOne     @JoinColumn     private Owner owner;      @ManyToOne     @JoinColumn     private PetType type; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Entity_Itd {          int     $type                                                                   ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Visit$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Visit$version;              public java.lang.Long Visit$getId() {             return id;             }              public void Visit$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Visit$getVersion() {             return version;             }              public void Visit$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Visit$getDescription() {             return description;             }              public void Visit$setDescription(java.lang.String description) {             this.description = description;             }              public java.util.Date Visit$getVisitDate() {             return visitDate;             }              public void Visit$setVisitDate(java.util.Date visitDate) {             this.visitDate = visitDate;             }              public com.springsource.petclinic.domain.Pet Visit$getPet() {             return pet;             }              public void Visit$setPet(com.springsource.petclinic.domain.Pet pet) {             this.pet = pet;             }              public com.springsource.petclinic.domain.Vet Visit$getVet() {             return vet;             }              public void Visit$setVet(com.springsource.petclinic.domain.Vet vet) {             this.vet = vet;             }              public java.lang.String Visit$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Description: " + getDescription());                 tsc.append("VisitDate: " + getVisitDate());                 tsc.append("Pet: " + getPet());                 tsc.append("Vet: " + getVet());                 return tsc.toString();             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  SpecialtyIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                        ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.SpecialtyDataOnDemand SpecialtyIntegrationTest$specialtyDataOnDemand;              @org.junit.Test         public void SpecialtyIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'Specialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty obj = Specialty.findSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'Specialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Specialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void SpecialtyIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Specialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'SpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Specialty> result = Specialty.findAllSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Specialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Specialty> result = Specialty.findSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Specialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = specialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Specialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Specialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty.findSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Specialty' with identifier '" + id + "'", Specialty.findSpecialty(id));             }          SpecialtyIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Finder_Itd {          public static javax.persistence.Query Pet$findPetsByNameAndWeight(java.lang.String name, java.lang.Float weight) {             org.springframework.util.Assert.notNull(name, "A Name is required.");                 org.springframework.util.Assert.notNull(weight, "A Weight is required.");                 javax.persistence.Query q = new Pet().entityManager.createQuery("FROM Pet AS pet WHERE pet.name = :name AND pet.weight = :weight");                 q.setParameter("name", name);                 q.setParameter("weight", weight);                 return q;             }              public static javax.persistence.Query Pet$findPetsByOwner(com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "A Owner is required.");                 javax.persistence.Query q = new Pet().entityManager.createQuery("FROM Pet AS pet WHERE pet.owner = :owner");                 q.setParameter("owner", owner);                 return q;             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  AbstractPerson_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager AbstractPerson$entityManager;              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$merge() {             AbstractPerson merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$remove() {             this.entityManager.remove(this);             }          AbstractPerson ___ITD_INSERTED_IDENTIFIER___0; }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerEditor_Roo_Editor_Itd {          int     parents                                                         ;              org.springframework.beans.SimpleTypeConverter OwnerEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String OwnerEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.Owner) obj).getId() , String.class);             }              public void OwnerEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.Owner.findOwner(identifier));             }          OwnerEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = Pet.class) public class PetEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import java.util.Date;  public abstract class AbstractPerson {      private String firstName;      private String lastName;      private String address;      private String city;      private Integer telephone;      private String homePage;      private String email;      private Date birthDay; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class PetIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Vet_Roo_Entity_Itd {          int     $type                                                                 ;              public java.util.Date Vet$getEmployedSince() {             return employedSince;             }              public void Vet$setEmployedSince(java.util.Date employedSince) {             this.employedSince = employedSince;             }              public java.util.Set<com.springsource.petclinic.domain.VetSpecialty> Vet$getSpecialties() {             return specialties;             }              public void Vet$setSpecialties(java.util.Set<com.springsource.petclinic.domain.VetSpecialty> specialties) {             this.specialties = specialties;             }              public java.lang.String Vet$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 tsc.append("EmployedSince: " + getEmployedSince());                 tsc.append("Specialties: " + specialties.size());                 return tsc.toString();             }          Vet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package injavafiles.uses;  import injavafiles.hasitds.HasITDs; import java.util.List;  class UsesITDs {  public void tryItOut() {   HasITDs h = new HasITDs(6);   h.list.addAll(null);   h.makeList(4);   h.value = 9;   h.inside = 9;   }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- import p.Aspect2;   public class  Aspect {  int Class$x;    int hhh;  int h() {   Aspect2.aspectOf().hhh++;   return 9;  } Class ___ITD_INSERTED_IDENTIFIER___0; }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.NotNull; import org.hibernate.validator.Length;  @RooEntity @RooJpa @Entity public class Specialty {      @NotNull     @Length(min = 0, max = 30)     private String name; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  Specialty_Roo_Entity_Itd {          int     $type                                                                       ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Specialty$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Specialty$version;              public java.lang.Long Specialty$getId() {             return id;             }              public void Specialty$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Specialty$getVersion() {             return version;             }              public void Specialty$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Specialty$getName() {             return name;             }              public void Specialty$setName(java.lang.String name) {             this.name = name;             }              public java.lang.String Specialty$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Name: " + getName());                 return tsc.toString();             }          Specialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Owner_Roo_Entity_Itd {          int     $type                                                                   ;              public java.util.Set<com.springsource.petclinic.domain.Pet> Owner$getPets() {             return pets;             }              public void Owner$setPets(java.util.Set<com.springsource.petclinic.domain.Pet> pets) {             this.pets = pets;             }              public java.lang.String Owner$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 tsc.append("Pets: " + pets.size());                 return tsc.toString();             }          Owner ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package uses;  import hasitds.HasITDs; import java.util.List;  class UsesITDs {  public void tryItOut() {   HasITDs h = new HasITDs(6);   h.list.addAll(null);   h.makeList(4);   h.value = 9;   h.inside = 9;   }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  VetController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "vet", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("vets", com.springsource.petclinic.domain.Vet.findAllVets());                 return "vet/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("vet", com.springsource.petclinic.domain.Vet.findVet(id));                 return "vet/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String VetController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Vet.findVet(id).remove();                 return "redirect:/vet";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("vetspecialtys", com.springsource.petclinic.domain.VetSpecialty.findAllVetSpecialtys());                 modelMap.addAttribute("vet", new com.springsource.petclinic.domain.Vet());                 return "vet/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String VetController$create(@org.springframework.web.bind.annotation.ModelAttribute("vet") com.springsource.petclinic.domain.Vet vet) {             org.springframework.util.Assert.notNull(vet, "Vet must be provided.");                 vet.persist();                 return "redirect:/vet/"+vet.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("vetspecialtys", com.springsource.petclinic.domain.VetSpecialty.findAllVetSpecialtys());                 modelMap.addAttribute("vet", com.springsource.petclinic.domain.Vet.findVet(id));                 return "vet/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String VetController$update(@org.springframework.web.bind.annotation.ModelAttribute("vet") com.springsource.petclinic.domain.Vet vet) {             org.springframework.util.Assert.notNull(vet, "Vet must be provided.");                 vet.merge();                 return "redirect:/vet/" + vet.getId();             }              @org.springframework.web.bind.annotation.InitBinder         void VetController$initBinder(org.springframework.web.bind.WebDataBinder binder) {             binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));                 binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));             }          VetController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Visit$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Visit$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Visit$merge() {             Visit merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Visit$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Visit$remove() {             this.entityManager.remove(this);             }              public static long Visit$countVisits() {             return (Long) new Visit().entityManager.createQuery("select count(o) from Visit o").getSingleResult();             }              public static com.springsource.petclinic.domain.Visit Visit$findVisit(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Visit");                 return new Visit().entityManager.find(Visit.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Visit> Visit$findAllVisits() {             return new Visit().entityManager.createQuery("select o from Visit o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Visit> Visit$findVisitEntries(int firstResult, int maxResults) {             return new Visit().entityManager.createQuery("select o from Visit o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetEditor_Roo_Editor_Itd {          int     parents                                                       ;              org.springframework.beans.SimpleTypeConverter PetEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String PetEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.Pet) obj).getId() , String.class);             }              public void PetEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.Pet.findPet(identifier));             }          PetEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  PetTypeController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "pettype", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 return "pettype/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pettype", com.springsource.petclinic.reference.PetType.findPetType(id));                 return "pettype/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String PetTypeController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.reference.PetType.findPetType(id).remove();                 return "redirect:/pettype";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pettype", new com.springsource.petclinic.reference.PetType());                 return "pettype/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String PetTypeController$create(@org.springframework.web.bind.annotation.ModelAttribute("pettype") com.springsource.petclinic.reference.PetType pettype) {             org.springframework.util.Assert.notNull(pettype, "PetType must be provided.");                 pettype.persist();                 return "redirect:/pettype/"+pettype.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pettype", com.springsource.petclinic.reference.PetType.findPetType(id));                 return "pettype/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String PetTypeController$update(@org.springframework.web.bind.annotation.ModelAttribute("pettype") com.springsource.petclinic.reference.PetType pettype) {             org.springframework.util.Assert.notNull(pettype, "PetType must be provided.");                 pettype.merge();                 return "redirect:/pettype/" + pettype.getId();             }          PetTypeController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Owner; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Owner * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Owner.class) @Controller @RequestMapping("/owner/**") public class OwnerController {          void test() {         new Owner().toString();     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class PetDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialty_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager VetSpecialty$entityManager;              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$merge() {             VetSpecialty merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$remove() {             this.entityManager.remove(this);             }              public static long VetSpecialty$countVetSpecialtys() {             return (Long) new VetSpecialty().entityManager.createQuery("select count(o) from VetSpecialty o").getSingleResult();             }              public static com.springsource.petclinic.domain.VetSpecialty VetSpecialty$findVetSpecialty(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of VetSpecialty");                 return new VetSpecialty().entityManager.find(VetSpecialty.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.VetSpecialty> VetSpecialty$findAllVetSpecialtys() {             return new VetSpecialty().entityManager.createQuery("select o from VetSpecialty o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.VetSpecialty> VetSpecialty$findVetSpecialtyEntries(int firstResult, int maxResults) {             return new VetSpecialty().entityManager.createQuery("select o from VetSpecialty o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          VetSpecialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                  ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.PetDataOnDemand PetIntegrationTest$petDataOnDemand;              @org.junit.Test         public void PetIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 junit.framework.Assert.assertTrue("Counter for 'Pet' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void PetIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to provide an identifier", id);                 Pet obj = Pet.findPet(id);                 junit.framework.Assert.assertNotNull("Find method for 'Pet' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Pet' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void PetIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Pet', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'PetIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Pet> result = Pet.findAllPets();                 junit.framework.Assert.assertNotNull("Find all method for 'Pet' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Pet' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void PetIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Pet> result = Pet.findPetEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Pet' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Pet' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = Pet.findPet(petDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Pet' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = Pet.findPet(petDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Pet' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = petDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Pet' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Pet' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Pet' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Pet' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to provide an identifier", id);                 Pet.findPet(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Pet' with identifier '" + id + "'", Pet.findPet(id));             }          PetIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.reference.PetType; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for PetType * */ @RooWebScaffold(automaticallyMaintainView = true, entity = PetType.class) @Controller @RequestMapping("/pettype/**") public class PetTypeController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VetSpecialtyIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Pet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Pet * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Pet.class) @Controller @RequestMapping("/pet/**") public class PetController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerDataOnDemand_Roo_Dod_Itd {          int     $type                                                                               ;              int     $type                                                              ;              private java.util.Random OwnerDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Owner> OwnerDataOnDemand$data;              public Owner OwnerDataOnDemand$getNewTransientEntity(int index) {             Owner obj = new Owner();                 obj.setLastName("lastName_" + index);                 obj.setAddress("address_" + index);                 obj.setCity("city_" + index);                 obj.setTelephone(new Integer(index));                 obj.setBirthDay(new java.util.Date());                 return obj;             }              public Owner OwnerDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean OwnerDataOnDemand$modify(com.springsource.petclinic.domain.Owner obj) {             obj.setLastName(obj.getLastName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void OwnerDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Owner.findOwnerEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Owner' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Owner obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          OwnerDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Set; import java.util.HashSet; import javax.persistence.OneToMany; import javax.persistence.CascadeType;  @RooEntity @RooJpa @Entity public class Owner extends AbstractPerson {      @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")     private Set<Pet> pets = new HashSet<Pet>();          public void test() throws Exception {         this.getAddress();  } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Finder_Itd {          public static javax.persistence.Query Visit$findVisitsByDescriptionAndVisitDate(java.lang.String description, java.util.Date visitDate) {             org.springframework.util.Assert.notNull(description, "A Description is required.");                 org.springframework.util.Assert.notNull(visitDate, "A VisitDate is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.description = :description AND visit.visitDate = :visitDate");                 q.setParameter("description", description);                 q.setParameter("visitDate", visitDate);                 return q;             }              public static javax.persistence.Query Visit$findVisitsByVisitDateBetween(java.util.Date minVisitDate, java.util.Date maxVisitDate) {             org.springframework.util.Assert.notNull(minVisitDate, "A minimum VisitDate is required.");                 org.springframework.util.Assert.notNull(maxVisitDate, "A maximum VisitDate is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.visitDate BETWEEN :minVisitDate AND :maxVisitDate ");                 q.setParameter("minVisitDate", minVisitDate);                 q.setParameter("maxVisitDate", maxVisitDate);                 return q;             }              public static javax.persistence.Query Visit$findVisitsByDescriptionLike(java.lang.String description) {             org.springframework.util.Assert.notNull(description, "A Description is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.description LIKE :description ");                 q.setParameter("description", "%"+description+"%");                 return q;             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.NotNull; import org.hibernate.validator.Length;  @RooEntity @RooJpa @Entity public class PetType {      @NotNull     @Length(min = 0, max = 30)     private String type; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Owner_Roo_Jpa_Itd {          public static long Owner$countOwners() {             return (Long) new Owner().entityManager.createQuery("select count(o) from Owner o").getSingleResult();             }              public static com.springsource.petclinic.domain.Owner Owner$findOwner(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Owner");                 return new Owner().entityManager.find(Owner.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Owner> Owner$findAllOwners() {             return new Owner().entityManager.createQuery("select o from Owner o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Owner> Owner$findOwnerEntries(int firstResult, int maxResults) {             return new Owner().entityManager.createQuery("select o from Owner o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Owner ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                      ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.PetTypeDataOnDemand PetTypeIntegrationTest$petTypeDataOnDemand;              @org.junit.Test         public void PetTypeIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 junit.framework.Assert.assertTrue("Counter for 'PetType' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void PetTypeIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petTypeDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to provide an identifier", id);                 PetType obj = PetType.findPetType(id);                 junit.framework.Assert.assertNotNull("Find method for 'PetType' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'PetType' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void PetTypeIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'PetType', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'PetTypeIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<PetType> result = PetType.findAllPetTypes();                 junit.framework.Assert.assertNotNull("Find all method for 'PetType' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'PetType' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void PetTypeIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 if (count > 20) {                     count = 20;                     }                 java.util.List<PetType> result = PetType.findPetTypeEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'PetType' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'PetType' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = PetType.findPetType(petTypeDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petTypeDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'PetType' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = PetType.findPetType(petTypeDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petTypeDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'PetType' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = petTypeDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'PetType' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'PetType' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'PetType' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'PetType' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petTypeDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to provide an identifier", id);                 PetType.findPetType(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'PetType' with identifier '" + id + "'", PetType.findPetType(id));             }          PetTypeIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN -------------------------------------  public class Class {  int y;  @Override  public String toString() {   Aspect.aspectOf().hhh++;   Aspect.aspectOf().getWithinTypeName().substring(0);   Aspect.hasAspect();   return super.toString();  } }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  PetController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "pet", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 return "pet/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pet", com.springsource.petclinic.domain.Pet.findPet(id));                 return "pet/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String PetController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Pet.findPet(id).remove();                 return "redirect:/pet";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 modelMap.addAttribute("pet", new com.springsource.petclinic.domain.Pet());                 return "pet/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String PetController$create(@org.springframework.web.bind.annotation.ModelAttribute("pet") com.springsource.petclinic.domain.Pet pet) {             org.springframework.util.Assert.notNull(pet, "Pet must be provided.");                 pet.persist();                 return "redirect:/pet/"+pet.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 modelMap.addAttribute("pet", com.springsource.petclinic.domain.Pet.findPet(id));                 return "pet/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String PetController$update(@org.springframework.web.bind.annotation.ModelAttribute("pet") com.springsource.petclinic.domain.Pet pet) {             org.springframework.util.Assert.notNull(pet, "Pet must be provided.");                 pet.merge();                 return "redirect:/pet/" + pet.getId();             }          PetController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  AbstractPerson_Roo_Entity_Itd {          int     $type                                                                            ;              @javax.persistence.Id          @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long AbstractPerson$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer AbstractPerson$version;              public java.lang.Long AbstractPerson$getId() {             return id;             }              public void AbstractPerson$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer AbstractPerson$getVersion() {             return version;             }              public void AbstractPerson$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String AbstractPerson$getFirstName() {             return firstName;             }              public void AbstractPerson$setFirstName(java.lang.String firstName) {             this.firstName = firstName;             }              public java.lang.String AbstractPerson$getLastName() {             return lastName;             }              public void AbstractPerson$setLastName(java.lang.String lastName) {             this.lastName = lastName;             }              public java.lang.String AbstractPerson$getAddress() {             return address;             }              public void AbstractPerson$setAddress(java.lang.String address) {             this.address = address;             }              public java.lang.String AbstractPerson$getCity() {             return city;             }              public void AbstractPerson$setCity(java.lang.String city) {             this.city = city;             }              public java.lang.Integer AbstractPerson$getTelephone() {             return telephone;             }              public void AbstractPerson$setTelephone(java.lang.Integer telephone) {             this.telephone = telephone;             }              public java.lang.String AbstractPerson$getHomePage() {             return homePage;             }              public void AbstractPerson$setHomePage(java.lang.String homePage) {             this.homePage = homePage;             }              public java.lang.String AbstractPerson$getEmail() {             return email;             }              public void AbstractPerson$setEmail(java.lang.String email) {             this.email = email;             }              public java.util.Date AbstractPerson$getBirthDay() {             return birthDay;             }              public void AbstractPerson$setBirthDay(java.util.Date birthDay) {             this.birthDay = birthDay;             }              public java.lang.String AbstractPerson$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 return tsc.toString();             }          AbstractPerson ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                 ;              int     $type                                                                ;              private java.util.Random PetTypeDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<PetType> PetTypeDataOnDemand$data;              public PetType PetTypeDataOnDemand$getNewTransientEntity(int index) {             PetType obj = new PetType();                 obj.setType("type_" + index);                 return obj;             }              public PetType PetTypeDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean PetTypeDataOnDemand$modify(com.springsource.petclinic.reference.PetType obj) {             obj.setType(obj.getType() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void PetTypeDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = PetType.findPetTypeEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'PetType' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     PetType obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          PetTypeDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetType_Roo_Entity_Itd {          int     $type                                                                     ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long PetType$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer PetType$version;              public java.lang.Long PetType$getId() {             return id;             }              public void PetType$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer PetType$getVersion() {             return version;             }              public void PetType$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String PetType$getType() {             return type;             }              public void PetType$setType(java.lang.String type) {             this.type = type;             }              public java.lang.String PetType$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Type: " + getType());                 return tsc.toString();             }          PetType ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  SpecialtyDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                   ;              int     $type                                                                  ;              private java.util.Random SpecialtyDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Specialty> SpecialtyDataOnDemand$data;              public Specialty SpecialtyDataOnDemand$getNewTransientEntity(int index) {             Specialty obj = new Specialty();                 obj.setName("name_" + index);                 return obj;             }              public Specialty SpecialtyDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean SpecialtyDataOnDemand$modify(com.springsource.petclinic.reference.Specialty obj) {             obj.setName(obj.getName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void SpecialtyDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Specialty.findSpecialtyEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Specialty' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Specialty obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          SpecialtyDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VisitDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                  ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VetDataOnDemand VetIntegrationTest$vetDataOnDemand;              @org.junit.Test         public void VetIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 junit.framework.Assert.assertTrue("Counter for 'Vet' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VetIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to provide an identifier", id);                 Vet obj = Vet.findVet(id);                 junit.framework.Assert.assertNotNull("Find method for 'Vet' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Vet' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VetIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Vet', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VetIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Vet> result = Vet.findAllVets();                 junit.framework.Assert.assertNotNull("Find all method for 'Vet' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Vet' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VetIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Vet> result = Vet.findVetEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Vet' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Vet' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = Vet.findVet(vetDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Vet' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = Vet.findVet(vetDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Vet' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = vetDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Vet' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Vet' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Vet' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Vet' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to provide an identifier", id);                 Vet.findVet(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Vet' with identifier '" + id + "'", Vet.findVet(id));             }          VetIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package itds; import java.util.ArrayList; import java.util.List; import hasitds.HasITDs;    public class  ITDAspect {  public List<String> HasITDs$list;  public java.util.List<String> HasITDs$makeList(int size) {   return new ArrayList<String>();  }   public HasITDs$new(int x) {   this();   list = new ArrayList<String>();   }      public static class Super {   public int inside =9;  }    public int Super$value = 7;    int     parents                        ;    public static void main(String[] args) {      int x = args.length;      x++;     }    void around()                                       {      thisJoinPoint.getArgs();  } HasITDs ___ITD_INSERTED_IDENTIFIER___0; ITDAspect ___ITD_INSERTED_IDENTIFIER___1; Super ___ITD_INSERTED_IDENTIFIER___2; } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VisitIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Entity_Itd {          int     $type                                                                 ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Pet$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Pet$version;              public java.lang.Long Pet$getId() {             return id;             }              public void Pet$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Pet$getVersion() {             return version;             }              public void Pet$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Pet$getContactEmails() {             return contactEmails;             }              public void Pet$setContactEmails(java.lang.String contactEmails) {             this.contactEmails = contactEmails;             }              public java.lang.Boolean Pet$getSendReminders() {             return sendReminders;             }              public void Pet$setSendReminders(java.lang.Boolean sendReminders) {             this.sendReminders = sendReminders;             }              public java.lang.String Pet$getName() {             return name;             }              public void Pet$setName(java.lang.String name) {             this.name = name;             }              public java.lang.Float Pet$getWeight() {             return weight;             }              public void Pet$setWeight(java.lang.Float weight) {             this.weight = weight;             }              public com.springsource.petclinic.domain.Owner Pet$getOwner() {             return owner;             }              public void Pet$setOwner(com.springsource.petclinic.domain.Owner owner) {             this.owner = owner;             }              public com.springsource.petclinic.reference.PetType Pet$getType() {             return type;             }              public void Pet$setType(com.springsource.petclinic.reference.PetType type) {             this.type = type;             }              public java.lang.String Pet$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("ContactEmails: " + getContactEmails());                 tsc.append("SendReminders: " + getSendReminders());                 tsc.append("Name: " + getName());                 tsc.append("Weight: " + getWeight());                 tsc.append("Owner: " + getOwner());                 tsc.append("Type: " + getType());                 return tsc.toString();             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class SpecialtyIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class OwnerIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class OwnerDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetDataOnDemand_Roo_Dod_Itd {          int     $type                                                                             ;              int     $type                                                            ;              private java.util.Random PetDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Pet> PetDataOnDemand$data;              public Pet PetDataOnDemand$getNewTransientEntity(int index) {             Pet obj = new Pet();                 obj.setSendReminders(new Boolean(true));                 obj.setName("name_" + index);                 obj.setWeight(new Float(index));                 return obj;             }              public Pet PetDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean PetDataOnDemand$modify(com.springsource.petclinic.domain.Pet obj) {             obj.setName(obj.getName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void PetDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Pet.findPetEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Pet' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Pet obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          PetDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Pet$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Pet$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Pet$merge() {             Pet merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Pet$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Pet$remove() {             this.entityManager.remove(this);             }              public static long Pet$countPets() {             return (Long) new Pet().entityManager.createQuery("select count(o) from Pet o").getSingleResult();             }              public static com.springsource.petclinic.domain.Pet Pet$findPet(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Pet");                 return new Pet().entityManager.find(Pet.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Pet> Pet$findAllPets() {             return new Pet().entityManager.createQuery("select o from Pet o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Pet> Pet$findPetEntries(int firstResult, int maxResults) {             return new Pet().entityManager.createQuery("select o from Pet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialty_Roo_Entity_Itd {          int     $type                                                                          ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long VetSpecialty$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer VetSpecialty$version;              public java.lang.Long VetSpecialty$getId() {             return id;             }              public void VetSpecialty$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer VetSpecialty$getVersion() {             return version;             }              public void VetSpecialty$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.util.Date VetSpecialty$getRegistered() {             return registered;             }              public void VetSpecialty$setRegistered(java.util.Date registered) {             this.registered = registered;             }              public com.springsource.petclinic.reference.Specialty VetSpecialty$getSpecialty() {             return specialty;             }              public void VetSpecialty$setSpecialty(com.springsource.petclinic.reference.Specialty specialty) {             this.specialty = specialty;             }              public com.springsource.petclinic.domain.Vet VetSpecialty$getVet() {             return vet;             }              public void VetSpecialty$setVet(com.springsource.petclinic.domain.Vet vet) {             this.vet = vet;             }              public java.lang.String VetSpecialty$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Registered: " + getRegistered());                 tsc.append("Specialty: " + getSpecialty());                 tsc.append("Vet: " + getVet());                 return tsc.toString();             }          VetSpecialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package hasitds;  import itds.ITDAspect; import java.util.List;  public class HasITDs {   public void tryItOut() {   this.list.addAll(null);   this.makeList(4);    new HasITDs(6);   this.value = 9;   this.inside = 9;    }  } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- public class  AspectWithDotClass {  int x1;  private boolean method() {   Object o = new Object();   if (!o.equals(void.class)) {    this.x1 ++ ;    return true;   }   return false;  } }     ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package other;  import java.util.List; import java.util.HashMap;  public class Gen <T extends Number & List<?>,          F extends HashMap<String, String> & Comparable<?>> {       void doNothing(T bar, F baz) {         bar.floatValue();         bar.clear();         baz.clear();         baz.compareTo(null);     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VetDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package ajia.tracking;


public aspect TimeTracker {
     private static interface LastAccessedTimeHolder {
(8736 more lines...)
Collapse Failed ProblemFinderTests11 testProblemFindingAll History
Default Job 4 secs
org.eclipse.jdt.core.JavaModelException: All Source code being worked on: ----------------------------------- SOURCE BEGIN ------------------------------------- package p;  import java.rmi.RemoteException;   public class TestSoftening {      public static void main(String[] args) {          TestSoftening test = new TestSoftening();          test.perform();      }      public void perform() throws RemoteException {          throw new RemoteException();      } }  aspect SofteningTestAspect {      declare soft : RemoteException : call(void TestSoftening.perform()); }  ----------------------------------- SOURCE END ------------------------------------------------------------------------ WORKING COPIES ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  Specialty_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Specialty$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Specialty$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$merge() {             Specialty merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Specialty$remove() {             this.entityManager.remove(this);             }              public static long Specialty$countSpecialtys() {             return (Long) new Specialty().entityManager.createQuery("select count(o) from Specialty o").getSingleResult();             }              public static com.springsource.petclinic.reference.Specialty Specialty$findSpecialty(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Specialty");                 return new Specialty().entityManager.find(Specialty.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.Specialty> Specialty$findAllSpecialtys() {             return new Specialty().entityManager.createQuery("select o from Specialty o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.Specialty> Specialty$findSpecialtyEntries(int firstResult, int maxResults) {             return new Specialty().entityManager.createQuery("select o from Specialty o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Specialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = PetType.class) public class PetTypeEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VisitDataOnDemand_Roo_Dod_Itd {          int     $type                                                                               ;              int     $type                                                              ;              private java.util.Random VisitDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Visit> VisitDataOnDemand$data;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.PetDataOnDemand VisitDataOnDemand$petDataOnDemand;              public Visit VisitDataOnDemand$getNewTransientEntity(int index) {             Visit obj = new Visit();                 obj.setVisitDate(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 obj.setPet(petDataOnDemand.getRandomPersistentEntity());                 return obj;             }              public Visit VisitDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VisitDataOnDemand$modify(com.springsource.petclinic.domain.Visit obj) {             return false;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VisitDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Visit.findVisitEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Visit' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Visit obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VisitDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class PetTypeIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                    ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.OwnerDataOnDemand OwnerIntegrationTest$ownerDataOnDemand;              @org.junit.Test         public void OwnerIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 junit.framework.Assert.assertTrue("Counter for 'Owner' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void OwnerIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = ownerDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to provide an identifier", id);                 Owner obj = Owner.findOwner(id);                 junit.framework.Assert.assertNotNull("Find method for 'Owner' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Owner' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void OwnerIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Owner', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'OwnerIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Owner> result = Owner.findAllOwners();                 junit.framework.Assert.assertNotNull("Find all method for 'Owner' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Owner' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void OwnerIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 long count = Owner.countOwners();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Owner> result = Owner.findOwnerEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Owner' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Owner' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = Owner.findOwner(ownerDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = ownerDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Owner' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = Owner.findOwner(ownerDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = ownerDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Owner' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 Owner obj = ownerDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Owner' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Owner' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Owner' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Owner' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void OwnerIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to initialize correctly", ownerDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = ownerDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Owner' failed to provide an identifier", id);                 Owner.findOwner(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Owner' with identifier '" + id + "'", Owner.findOwner(id));             }          OwnerIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Vet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Vet * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Vet.class) @Controller @RequestMapping("/vet/**") public class VetController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  OwnerController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "owner", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 return "owner/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("owner", com.springsource.petclinic.domain.Owner.findOwner(id));                 return "owner/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String OwnerController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Owner.findOwner(id).remove();                 return "redirect:/owner";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 modelMap.addAttribute("owner", new com.springsource.petclinic.domain.Owner());                 return "owner/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String OwnerController$create(@org.springframework.web.bind.annotation.ModelAttribute("owner") com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "Owner must be provided.");                 owner.persist();                 return "redirect:/owner/"+owner.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "owner/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String OwnerController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 modelMap.addAttribute("owner", com.springsource.petclinic.domain.Owner.findOwner(id));                 return "owner/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String OwnerController$update(@org.springframework.web.bind.annotation.ModelAttribute("owner") com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "Owner must be provided.");                 owner.merge();                 return "redirect:/owner/" + owner.getId();             }              @org.springframework.web.bind.annotation.InitBinder         void OwnerController$initBinder(org.springframework.web.bind.WebDataBinder binder) {             binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));             }          OwnerController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = VetSpecialty.class) public class VetSpecialtyEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = Owner.class) public class OwnerEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import com.springsource.petclinic.reference.Specialty; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn;  @RooEntity @RooJpa @Entity public class VetSpecialty {      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date registered;      @ManyToOne     @JoinColumn     private Specialty specialty;      @ManyToOne     @JoinColumn     private Vet vet; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyEditor_Roo_Editor_Itd {          int     parents                                                                ;              org.springframework.beans.SimpleTypeConverter VetSpecialtyEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String VetSpecialtyEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.VetSpecialty) obj).getId() , String.class);             }              public void VetSpecialtyEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.VetSpecialty.findVetSpecialty(identifier));             }          VetSpecialtyEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetDataOnDemand_Roo_Dod_Itd {          int     $type                                                                             ;              int     $type                                                            ;              private java.util.Random VetDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Vet> VetDataOnDemand$data;              public Vet VetDataOnDemand$getNewTransientEntity(int index) {             Vet obj = new Vet();                 obj.setEmployedSince(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 obj.setLastName("lastName_" + index);                 obj.setAddress("address_" + index);                 obj.setCity("city_" + index);                 obj.setTelephone(new Integer(index));                 obj.setBirthDay(new java.util.Date());                 return obj;             }              public Vet VetDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VetDataOnDemand$modify(com.springsource.petclinic.domain.Vet obj) {             obj.setLastName(obj.getLastName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VetDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Vet.findVetEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Vet' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Vet obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VetDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VetSpecialtyDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VetIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package injavafiles.hasitds;  import injavafiles.itds.ITDAspect; import java.util.List;  public class HasITDs {   public void tryItOut() {   this.list.addAll(null);   this.makeList(4);    new HasITDs(6);   this.value = 9;   this.inside = 9;    }  } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Vet_Roo_Jpa_Itd {          public static long Vet$countVets() {             return (Long) new Vet().entityManager.createQuery("select count(o) from Vet o").getSingleResult();             }              public static com.springsource.petclinic.domain.Vet Vet$findVet(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Vet");                 return new Vet().entityManager.find(Vet.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Vet> Vet$findAllVets() {             return new Vet().entityManager.createQuery("select o from Vet o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Vet> Vet$findVetEntries(int firstResult, int maxResults) {             return new Vet().entityManager.createQuery("select o from Vet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Vet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.Length; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn;  @RooEntity @Entity @RooJpa(finders = { "findVisitsByDescriptionAndVisitDate", "findVisitsByVisitDateBetween", "findVisitsByDescriptionLike" }) public class Visit {      @Length(min = 0, max = 255)     private String description;      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date visitDate;      @NotNull     @ManyToOne     @JoinColumn     private Pet pet;      @ManyToOne     @JoinColumn     private Vet vet; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetType_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager PetType$entityManager;              @org.springframework.transaction.annotation.Transactional         public void PetType$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void PetType$merge() {             PetType merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void PetType$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void PetType$remove() {             this.entityManager.remove(this);             }              public static long PetType$countPetTypes() {             return (Long) new PetType().entityManager.createQuery("select count(o) from PetType o").getSingleResult();             }              public static com.springsource.petclinic.reference.PetType PetType$findPetType(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of PetType");                 return new PetType().entityManager.find(PetType.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.PetType> PetType$findAllPetTypes() {             return new PetType().entityManager.createQuery("select o from PetType o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.reference.PetType> PetType$findPetTypeEntries(int firstResult, int maxResults) {             return new PetType().entityManager.createQuery("select o from PetType o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          PetType ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class PetTypeDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class SpecialtyDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Date; import org.hibernate.validator.NotNull; import javax.persistence.Temporal; import javax.persistence.TemporalType; import org.hibernate.validator.Past; import java.util.Set; import java.util.HashSet; import javax.persistence.OneToMany; import javax.persistence.CascadeType;  @RooEntity @RooJpa @Entity public class Vet extends AbstractPerson {      @NotNull     @Temporal(TemporalType.TIMESTAMP)     @Past     private Date employedSince;      @OneToMany(cascade = CascadeType.ALL, mappedBy = "vet")     private Set<VetSpecialty> specialties = new HashSet<VetSpecialty>(); }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VisitIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                    ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VisitDataOnDemand VisitIntegrationTest$visitDataOnDemand;              @org.junit.Test         public void VisitIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 junit.framework.Assert.assertTrue("Counter for 'Visit' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VisitIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = visitDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to provide an identifier", id);                 Visit obj = Visit.findVisit(id);                 junit.framework.Assert.assertNotNull("Find method for 'Visit' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Visit' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VisitIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Visit', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VisitIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Visit> result = Visit.findAllVisits();                 junit.framework.Assert.assertNotNull("Find all method for 'Visit' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Visit' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VisitIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 long count = Visit.countVisits();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Visit> result = Visit.findVisitEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Visit' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Visit' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = Visit.findVisit(visitDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = visitDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Visit' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = Visit.findVisit(visitDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = visitDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Visit' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 Visit obj = visitDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Visit' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Visit' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Visit' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Visit' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VisitIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to initialize correctly", visitDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = visitDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Visit' failed to provide an identifier", id);                 Visit.findVisit(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Visit' with identifier '" + id + "'", Visit.findVisit(id));             }          VisitIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                      ;              int     $type                                                                     ;              private java.util.Random VetSpecialtyDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<VetSpecialty> VetSpecialtyDataOnDemand$data;              public VetSpecialty VetSpecialtyDataOnDemand$getNewTransientEntity(int index) {             VetSpecialty obj = new VetSpecialty();                 obj.setRegistered(new java.util.Date(new java.util.Date().getTime() - 10000000L));                 return obj;             }              public VetSpecialty VetSpecialtyDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean VetSpecialtyDataOnDemand$modify(com.springsource.petclinic.domain.VetSpecialty obj) {             return false;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void VetSpecialtyDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = VetSpecialty.findVetSpecialtyEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'VetSpecialty' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     VetSpecialty obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          VetSpecialtyDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic;  import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.ContextConfiguration;  @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:/applicationContext.xml") public abstract class AbstractIntegrationTest { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeEditor_Roo_Editor_Itd {          int     parents                                                           ;              org.springframework.beans.SimpleTypeConverter PetTypeEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String PetTypeEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.reference.PetType) obj).getId() , String.class);             }              public void PetTypeEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.reference.PetType.findPetType(identifier));             }          PetTypeEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialtyIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                           ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VetSpecialtyDataOnDemand VetSpecialtyIntegrationTest$vetSpecialtyDataOnDemand;              @org.junit.Test         public void VetSpecialtyIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'VetSpecialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to provide an identifier", id);                 VetSpecialty obj = VetSpecialty.findVetSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'VetSpecialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'VetSpecialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'VetSpecialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VetSpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<VetSpecialty> result = VetSpecialty.findAllVetSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'VetSpecialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'VetSpecialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VetSpecialtyIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 long count = VetSpecialty.countVetSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<VetSpecialty> result = VetSpecialty.findVetSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'VetSpecialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'VetSpecialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = VetSpecialty.findVetSpecialty(vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetSpecialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'VetSpecialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = VetSpecialty.findVetSpecialty(vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetSpecialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'VetSpecialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 VetSpecialty obj = vetSpecialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'VetSpecialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'VetSpecialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'VetSpecialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'VetSpecialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetSpecialtyIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to initialize correctly", vetSpecialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetSpecialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'VetSpecialty' failed to provide an identifier", id);                 VetSpecialty.findVetSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'VetSpecialty' with identifier '" + id + "'", VetSpecialty.findVetSpecialty(id));             }          VetSpecialtyIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.Length; import org.hibernate.validator.NotNull; import org.hibernate.validator.Min; import javax.persistence.ManyToOne; import javax.persistence.JoinColumn; import com.springsource.petclinic.reference.PetType;  @RooEntity @Entity @RooJpa(finders = { "findPetsByNameAndWeight", "findPetsByOwner" }) public class Pet {      @Length(min = 0, max = 50)     private String contactEmails;      @NotNull     private Boolean sendReminders;      @NotNull     private String name;      @NotNull     @Min(0)     private Float weight;      @ManyToOne     @JoinColumn     private Owner owner;      @ManyToOne     @JoinColumn     private PetType type; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Entity_Itd {          int     $type                                                                   ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Visit$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Visit$version;              public java.lang.Long Visit$getId() {             return id;             }              public void Visit$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Visit$getVersion() {             return version;             }              public void Visit$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Visit$getDescription() {             return description;             }              public void Visit$setDescription(java.lang.String description) {             this.description = description;             }              public java.util.Date Visit$getVisitDate() {             return visitDate;             }              public void Visit$setVisitDate(java.util.Date visitDate) {             this.visitDate = visitDate;             }              public com.springsource.petclinic.domain.Pet Visit$getPet() {             return pet;             }              public void Visit$setPet(com.springsource.petclinic.domain.Pet pet) {             this.pet = pet;             }              public com.springsource.petclinic.domain.Vet Visit$getVet() {             return vet;             }              public void Visit$setVet(com.springsource.petclinic.domain.Vet vet) {             this.vet = vet;             }              public java.lang.String Visit$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Description: " + getDescription());                 tsc.append("VisitDate: " + getVisitDate());                 tsc.append("Pet: " + getPet());                 tsc.append("Vet: " + getVet());                 return tsc.toString();             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  SpecialtyIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                        ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.SpecialtyDataOnDemand SpecialtyIntegrationTest$specialtyDataOnDemand;              @org.junit.Test         public void SpecialtyIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 junit.framework.Assert.assertTrue("Counter for 'Specialty' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty obj = Specialty.findSpecialty(id);                 junit.framework.Assert.assertNotNull("Find method for 'Specialty' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Specialty' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void SpecialtyIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Specialty', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'SpecialtyIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Specialty> result = Specialty.findAllSpecialtys();                 junit.framework.Assert.assertNotNull("Find all method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Specialty' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void SpecialtyIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 long count = Specialty.countSpecialtys();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Specialty> result = Specialty.findSpecialtyEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Specialty' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Specialty' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = Specialty.findSpecialty(specialtyDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = specialtyDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Specialty' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 Specialty obj = specialtyDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Specialty' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Specialty' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Specialty' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void SpecialtyIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to initialize correctly", specialtyDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = specialtyDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Specialty' failed to provide an identifier", id);                 Specialty.findSpecialty(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Specialty' with identifier '" + id + "'", Specialty.findSpecialty(id));             }          SpecialtyIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Finder_Itd {          public static javax.persistence.Query Pet$findPetsByNameAndWeight(java.lang.String name, java.lang.Float weight) {             org.springframework.util.Assert.notNull(name, "A Name is required.");                 org.springframework.util.Assert.notNull(weight, "A Weight is required.");                 javax.persistence.Query q = new Pet().entityManager.createQuery("FROM Pet AS pet WHERE pet.name = :name AND pet.weight = :weight");                 q.setParameter("name", name);                 q.setParameter("weight", weight);                 return q;             }              public static javax.persistence.Query Pet$findPetsByOwner(com.springsource.petclinic.domain.Owner owner) {             org.springframework.util.Assert.notNull(owner, "A Owner is required.");                 javax.persistence.Query q = new Pet().entityManager.createQuery("FROM Pet AS pet WHERE pet.owner = :owner");                 q.setParameter("owner", owner);                 return q;             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  AbstractPerson_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager AbstractPerson$entityManager;              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$merge() {             AbstractPerson merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void AbstractPerson$remove() {             this.entityManager.remove(this);             }          AbstractPerson ___ITD_INSERTED_IDENTIFIER___0; }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerEditor_Roo_Editor_Itd {          int     parents                                                         ;              org.springframework.beans.SimpleTypeConverter OwnerEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String OwnerEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.Owner) obj).getId() , String.class);             }              public void OwnerEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.Owner.findOwner(identifier));             }          OwnerEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.webmvc.ref.RooEditor;  /** * * ROO generated Property Editor * */ @RooEditor(providePropertyEditorFor = Pet.class) public class PetEditor { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import java.util.Date;  public abstract class AbstractPerson {      private String firstName;      private String lastName;      private String address;      private String city;      private Integer telephone;      private String homePage;      private String email;      private Date birthDay; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class PetIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Vet_Roo_Entity_Itd {          int     $type                                                                 ;              public java.util.Date Vet$getEmployedSince() {             return employedSince;             }              public void Vet$setEmployedSince(java.util.Date employedSince) {             this.employedSince = employedSince;             }              public java.util.Set<com.springsource.petclinic.domain.VetSpecialty> Vet$getSpecialties() {             return specialties;             }              public void Vet$setSpecialties(java.util.Set<com.springsource.petclinic.domain.VetSpecialty> specialties) {             this.specialties = specialties;             }              public java.lang.String Vet$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 tsc.append("EmployedSince: " + getEmployedSince());                 tsc.append("Specialties: " + specialties.size());                 return tsc.toString();             }          Vet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package injavafiles.uses;  import injavafiles.hasitds.HasITDs; import java.util.List;  class UsesITDs {  public void tryItOut() {   HasITDs h = new HasITDs(6);   h.list.addAll(null);   h.makeList(4);   h.value = 9;   h.inside = 9;   }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- import p.Aspect2;   public class  Aspect {  int Class$x;    int hhh;  int h() {   Aspect2.aspectOf().hhh++;   return 9;  } Class ___ITD_INSERTED_IDENTIFIER___0; }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.NotNull; import org.hibernate.validator.Length;  @RooEntity @RooJpa @Entity public class Specialty {      @NotNull     @Length(min = 0, max = 30)     private String name; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  Specialty_Roo_Entity_Itd {          int     $type                                                                       ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Specialty$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Specialty$version;              public java.lang.Long Specialty$getId() {             return id;             }              public void Specialty$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Specialty$getVersion() {             return version;             }              public void Specialty$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Specialty$getName() {             return name;             }              public void Specialty$setName(java.lang.String name) {             this.name = name;             }              public java.lang.String Specialty$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Name: " + getName());                 return tsc.toString();             }          Specialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Owner_Roo_Entity_Itd {          int     $type                                                                   ;              public java.util.Set<com.springsource.petclinic.domain.Pet> Owner$getPets() {             return pets;             }              public void Owner$setPets(java.util.Set<com.springsource.petclinic.domain.Pet> pets) {             this.pets = pets;             }              public java.lang.String Owner$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 tsc.append("Pets: " + pets.size());                 return tsc.toString();             }          Owner ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package uses;  import hasitds.HasITDs; import java.util.List;  class UsesITDs {  public void tryItOut() {   HasITDs h = new HasITDs(6);   h.list.addAll(null);   h.makeList(4);   h.value = 9;   h.inside = 9;   }  }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  VetController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "vet", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("vets", com.springsource.petclinic.domain.Vet.findAllVets());                 return "vet/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("vet", com.springsource.petclinic.domain.Vet.findVet(id));                 return "vet/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String VetController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Vet.findVet(id).remove();                 return "redirect:/vet";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("vetspecialtys", com.springsource.petclinic.domain.VetSpecialty.findAllVetSpecialtys());                 modelMap.addAttribute("vet", new com.springsource.petclinic.domain.Vet());                 return "vet/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String VetController$create(@org.springframework.web.bind.annotation.ModelAttribute("vet") com.springsource.petclinic.domain.Vet vet) {             org.springframework.util.Assert.notNull(vet, "Vet must be provided.");                 vet.persist();                 return "redirect:/vet/"+vet.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "vet/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String VetController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("vetspecialtys", com.springsource.petclinic.domain.VetSpecialty.findAllVetSpecialtys());                 modelMap.addAttribute("vet", com.springsource.petclinic.domain.Vet.findVet(id));                 return "vet/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String VetController$update(@org.springframework.web.bind.annotation.ModelAttribute("vet") com.springsource.petclinic.domain.Vet vet) {             org.springframework.util.Assert.notNull(vet, "Vet must be provided.");                 vet.merge();                 return "redirect:/vet/" + vet.getId();             }              @org.springframework.web.bind.annotation.InitBinder         void VetController$initBinder(org.springframework.web.bind.WebDataBinder binder) {             binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));                 binder.registerCustomEditor(java.util.Date.class, new org.springframework.beans.propertyeditors.CustomDateEditor(new java.text.SimpleDateFormat("MM/dd/yyyy"), false));             }          VetController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Visit$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Visit$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Visit$merge() {             Visit merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Visit$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Visit$remove() {             this.entityManager.remove(this);             }              public static long Visit$countVisits() {             return (Long) new Visit().entityManager.createQuery("select count(o) from Visit o").getSingleResult();             }              public static com.springsource.petclinic.domain.Visit Visit$findVisit(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Visit");                 return new Visit().entityManager.find(Visit.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Visit> Visit$findAllVisits() {             return new Visit().entityManager.createQuery("select o from Visit o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Visit> Visit$findVisitEntries(int firstResult, int maxResults) {             return new Visit().entityManager.createQuery("select o from Visit o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetEditor_Roo_Editor_Itd {          int     parents                                                       ;              org.springframework.beans.SimpleTypeConverter PetEditor$typeConverter = new org.springframework.beans.SimpleTypeConverter();              public String PetEditor$getAsText() {             Object obj = getValue();                 if (obj == null) {                     return null;                     }                 return (String) typeConverter.convertIfNecessary(((com.springsource.petclinic.domain.Pet) obj).getId() , String.class);             }              public void PetEditor$setAsText(String text) {             if (text == null || "".equals(text)) {                     setValue(null);                         return;                     }                          Long identifier = (Long) typeConverter.convertIfNecessary(text, Long.class);                 if (identifier == null) {                     setValue(null);                         return;                     }                          setValue(com.springsource.petclinic.domain.Pet.findPet(identifier));             }          PetEditor ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  PetTypeController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "pettype", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 return "pettype/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pettype", com.springsource.petclinic.reference.PetType.findPetType(id));                 return "pettype/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String PetTypeController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.reference.PetType.findPetType(id).remove();                 return "redirect:/pettype";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pettype", new com.springsource.petclinic.reference.PetType());                 return "pettype/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String PetTypeController$create(@org.springframework.web.bind.annotation.ModelAttribute("pettype") com.springsource.petclinic.reference.PetType pettype) {             org.springframework.util.Assert.notNull(pettype, "PetType must be provided.");                 pettype.persist();                 return "redirect:/pettype/"+pettype.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pettype/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetTypeController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pettype", com.springsource.petclinic.reference.PetType.findPetType(id));                 return "pettype/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String PetTypeController$update(@org.springframework.web.bind.annotation.ModelAttribute("pettype") com.springsource.petclinic.reference.PetType pettype) {             org.springframework.util.Assert.notNull(pettype, "PetType must be provided.");                 pettype.merge();                 return "redirect:/pettype/" + pettype.getId();             }          PetTypeController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Owner; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Owner * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Owner.class) @Controller @RequestMapping("/owner/**") public class OwnerController {          void test() {         new Owner().toString();     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class PetDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialty_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager VetSpecialty$entityManager;              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$merge() {             VetSpecialty merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void VetSpecialty$remove() {             this.entityManager.remove(this);             }              public static long VetSpecialty$countVetSpecialtys() {             return (Long) new VetSpecialty().entityManager.createQuery("select count(o) from VetSpecialty o").getSingleResult();             }              public static com.springsource.petclinic.domain.VetSpecialty VetSpecialty$findVetSpecialty(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of VetSpecialty");                 return new VetSpecialty().entityManager.find(VetSpecialty.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.VetSpecialty> VetSpecialty$findAllVetSpecialtys() {             return new VetSpecialty().entityManager.createQuery("select o from VetSpecialty o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.VetSpecialty> VetSpecialty$findVetSpecialtyEntries(int firstResult, int maxResults) {             return new VetSpecialty().entityManager.createQuery("select o from VetSpecialty o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          VetSpecialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                  ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.PetDataOnDemand PetIntegrationTest$petDataOnDemand;              @org.junit.Test         public void PetIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 junit.framework.Assert.assertTrue("Counter for 'Pet' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void PetIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to provide an identifier", id);                 Pet obj = Pet.findPet(id);                 junit.framework.Assert.assertNotNull("Find method for 'Pet' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Pet' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void PetIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Pet', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'PetIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Pet> result = Pet.findAllPets();                 junit.framework.Assert.assertNotNull("Find all method for 'Pet' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Pet' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void PetIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 long count = Pet.countPets();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Pet> result = Pet.findPetEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Pet' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Pet' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = Pet.findPet(petDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Pet' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = Pet.findPet(petDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Pet' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 Pet obj = petDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Pet' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Pet' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Pet' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Pet' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to initialize correctly", petDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Pet' failed to provide an identifier", id);                 Pet.findPet(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Pet' with identifier '" + id + "'", Pet.findPet(id));             }          PetIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.reference.PetType; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for PetType * */ @RooWebScaffold(automaticallyMaintainView = true, entity = PetType.class) @Controller @RequestMapping("/pettype/**") public class PetTypeController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VetSpecialtyIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;  import org.springframework.roo.addon.webmvc.ref.RooWebScaffold; import com.springsource.petclinic.domain.Pet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping;  /** * * ROO generated Spring MVC Controller for Pet * */ @RooWebScaffold(automaticallyMaintainView = true, entity = Pet.class) @Controller @RequestMapping("/pet/**") public class PetController { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  OwnerDataOnDemand_Roo_Dod_Itd {          int     $type                                                                               ;              int     $type                                                              ;              private java.util.Random OwnerDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Owner> OwnerDataOnDemand$data;              public Owner OwnerDataOnDemand$getNewTransientEntity(int index) {             Owner obj = new Owner();                 obj.setLastName("lastName_" + index);                 obj.setAddress("address_" + index);                 obj.setCity("city_" + index);                 obj.setTelephone(new Integer(index));                 obj.setBirthDay(new java.util.Date());                 return obj;             }              public Owner OwnerDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean OwnerDataOnDemand$modify(com.springsource.petclinic.domain.Owner obj) {             obj.setLastName(obj.getLastName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void OwnerDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Owner.findOwnerEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Owner' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Owner obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          OwnerDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import java.util.Set; import java.util.HashSet; import javax.persistence.OneToMany; import javax.persistence.CascadeType;  @RooEntity @RooJpa @Entity public class Owner extends AbstractPerson {      @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")     private Set<Pet> pets = new HashSet<Pet>();          public void test() throws Exception {         this.getAddress();  } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Visit_Roo_Finder_Itd {          public static javax.persistence.Query Visit$findVisitsByDescriptionAndVisitDate(java.lang.String description, java.util.Date visitDate) {             org.springframework.util.Assert.notNull(description, "A Description is required.");                 org.springframework.util.Assert.notNull(visitDate, "A VisitDate is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.description = :description AND visit.visitDate = :visitDate");                 q.setParameter("description", description);                 q.setParameter("visitDate", visitDate);                 return q;             }              public static javax.persistence.Query Visit$findVisitsByVisitDateBetween(java.util.Date minVisitDate, java.util.Date maxVisitDate) {             org.springframework.util.Assert.notNull(minVisitDate, "A minimum VisitDate is required.");                 org.springframework.util.Assert.notNull(maxVisitDate, "A maximum VisitDate is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.visitDate BETWEEN :minVisitDate AND :maxVisitDate ");                 q.setParameter("minVisitDate", minVisitDate);                 q.setParameter("maxVisitDate", maxVisitDate);                 return q;             }              public static javax.persistence.Query Visit$findVisitsByDescriptionLike(java.lang.String description) {             org.springframework.util.Assert.notNull(description, "A Description is required.");                 javax.persistence.Query q = new Visit().entityManager.createQuery("FROM Visit AS visit WHERE visit.description LIKE :description ");                 q.setParameter("description", "%"+description+"%");                 return q;             }          Visit ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.entity.ref.RooEntity; import org.springframework.roo.addon.jpa.ref.RooJpa; import javax.persistence.Entity; import org.hibernate.validator.NotNull; import org.hibernate.validator.Length;  @RooEntity @RooJpa @Entity public class PetType {      @NotNull     @Length(min = 0, max = 30)     private String type; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Owner_Roo_Jpa_Itd {          public static long Owner$countOwners() {             return (Long) new Owner().entityManager.createQuery("select count(o) from Owner o").getSingleResult();             }              public static com.springsource.petclinic.domain.Owner Owner$findOwner(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Owner");                 return new Owner().entityManager.find(Owner.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Owner> Owner$findAllOwners() {             return new Owner().entityManager.createQuery("select o from Owner o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Owner> Owner$findOwnerEntries(int firstResult, int maxResults) {             return new Owner().entityManager.createQuery("select o from Owner o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Owner ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                      ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.reference.PetTypeDataOnDemand PetTypeIntegrationTest$petTypeDataOnDemand;              @org.junit.Test         public void PetTypeIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 junit.framework.Assert.assertTrue("Counter for 'PetType' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void PetTypeIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petTypeDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to provide an identifier", id);                 PetType obj = PetType.findPetType(id);                 junit.framework.Assert.assertNotNull("Find method for 'PetType' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'PetType' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void PetTypeIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'PetType', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'PetTypeIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<PetType> result = PetType.findAllPetTypes();                 junit.framework.Assert.assertNotNull("Find all method for 'PetType' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'PetType' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void PetTypeIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 long count = PetType.countPetTypes();                 if (count > 20) {                     count = 20;                     }                 java.util.List<PetType> result = PetType.findPetTypeEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'PetType' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'PetType' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = PetType.findPetType(petTypeDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petTypeDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'PetType' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = PetType.findPetType(petTypeDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = petTypeDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'PetType' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 PetType obj = petTypeDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'PetType' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'PetType' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'PetType' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'PetType' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void PetTypeIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to initialize correctly", petTypeDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = petTypeDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'PetType' failed to provide an identifier", id);                 PetType.findPetType(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'PetType' with identifier '" + id + "'", PetType.findPetType(id));             }          PetTypeIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN -------------------------------------  public class Class {  int y;  @Override  public String toString() {   Aspect.aspectOf().hhh++;   Aspect.aspectOf().getWithinTypeName().substring(0);   Aspect.hasAspect();   return super.toString();  } }   ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.web;             class  PetController_Roo_Controller_Itd {          @org.springframework.web.bind.annotation.RequestMapping(value = "pet", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$list(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("pets", com.springsource.petclinic.domain.Pet.findAllPets());                 return "pet/list";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$show(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("pet", com.springsource.petclinic.domain.Pet.findPet(id));                 return "pet/show";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}", method = org.springframework.web.bind.annotation.RequestMethod.DELETE)         public java.lang.String PetController$delete(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 com.springsource.petclinic.domain.Pet.findPet(id).remove();                 return "redirect:/pet";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$form(org.springframework.ui.ModelMap modelMap) {             modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 modelMap.addAttribute("pet", new com.springsource.petclinic.domain.Pet());                 return "pet/create";             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet", method = org.springframework.web.bind.annotation.RequestMethod.POST)         public java.lang.String PetController$create(@org.springframework.web.bind.annotation.ModelAttribute("pet") com.springsource.petclinic.domain.Pet pet) {             org.springframework.util.Assert.notNull(pet, "Pet must be provided.");                 pet.persist();                 return "redirect:/pet/"+pet.getId();             }              @org.springframework.web.bind.annotation.RequestMapping(value = "pet/{id}/form", method = org.springframework.web.bind.annotation.RequestMethod.GET)         public java.lang.String PetController$updateForm(@org.springframework.web.bind.annotation.PathVariable("id") java.lang.Long id, org.springframework.ui.ModelMap modelMap) {             org.springframework.util.Assert.notNull(id, "Identifier must be provided.");                 modelMap.addAttribute("owners", com.springsource.petclinic.domain.Owner.findAllOwners());                 modelMap.addAttribute("pettypes", com.springsource.petclinic.reference.PetType.findAllPetTypes());                 modelMap.addAttribute("pet", com.springsource.petclinic.domain.Pet.findPet(id));                 return "pet/update";             }              @org.springframework.web.bind.annotation.RequestMapping(method = org.springframework.web.bind.annotation.RequestMethod.PUT)         public java.lang.String PetController$update(@org.springframework.web.bind.annotation.ModelAttribute("pet") com.springsource.petclinic.domain.Pet pet) {             org.springframework.util.Assert.notNull(pet, "Pet must be provided.");                 pet.merge();                 return "redirect:/pet/" + pet.getId();             }          PetController ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  AbstractPerson_Roo_Entity_Itd {          int     $type                                                                            ;              @javax.persistence.Id          @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long AbstractPerson$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer AbstractPerson$version;              public java.lang.Long AbstractPerson$getId() {             return id;             }              public void AbstractPerson$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer AbstractPerson$getVersion() {             return version;             }              public void AbstractPerson$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String AbstractPerson$getFirstName() {             return firstName;             }              public void AbstractPerson$setFirstName(java.lang.String firstName) {             this.firstName = firstName;             }              public java.lang.String AbstractPerson$getLastName() {             return lastName;             }              public void AbstractPerson$setLastName(java.lang.String lastName) {             this.lastName = lastName;             }              public java.lang.String AbstractPerson$getAddress() {             return address;             }              public void AbstractPerson$setAddress(java.lang.String address) {             this.address = address;             }              public java.lang.String AbstractPerson$getCity() {             return city;             }              public void AbstractPerson$setCity(java.lang.String city) {             this.city = city;             }              public java.lang.Integer AbstractPerson$getTelephone() {             return telephone;             }              public void AbstractPerson$setTelephone(java.lang.Integer telephone) {             this.telephone = telephone;             }              public java.lang.String AbstractPerson$getHomePage() {             return homePage;             }              public void AbstractPerson$setHomePage(java.lang.String homePage) {             this.homePage = homePage;             }              public java.lang.String AbstractPerson$getEmail() {             return email;             }              public void AbstractPerson$setEmail(java.lang.String email) {             this.email = email;             }              public java.util.Date AbstractPerson$getBirthDay() {             return birthDay;             }              public void AbstractPerson$setBirthDay(java.util.Date birthDay) {             this.birthDay = birthDay;             }              public java.lang.String AbstractPerson$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("FirstName: " + getFirstName());                 tsc.append("LastName: " + getLastName());                 tsc.append("Address: " + getAddress());                 tsc.append("City: " + getCity());                 tsc.append("Telephone: " + getTelephone());                 tsc.append("HomePage: " + getHomePage());                 tsc.append("Email: " + getEmail());                 tsc.append("BirthDay: " + getBirthDay());                 return tsc.toString();             }          AbstractPerson ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetTypeDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                 ;              int     $type                                                                ;              private java.util.Random PetTypeDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<PetType> PetTypeDataOnDemand$data;              public PetType PetTypeDataOnDemand$getNewTransientEntity(int index) {             PetType obj = new PetType();                 obj.setType("type_" + index);                 return obj;             }              public PetType PetTypeDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean PetTypeDataOnDemand$modify(com.springsource.petclinic.reference.PetType obj) {             obj.setType(obj.getType() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void PetTypeDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = PetType.findPetTypeEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'PetType' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     PetType obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          PetTypeDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  PetType_Roo_Entity_Itd {          int     $type                                                                     ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long PetType$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer PetType$version;              public java.lang.Long PetType$getId() {             return id;             }              public void PetType$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer PetType$getVersion() {             return version;             }              public void PetType$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String PetType$getType() {             return type;             }              public void PetType$setType(java.lang.String type) {             this.type = type;             }              public java.lang.String PetType$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Type: " + getType());                 return tsc.toString();             }          PetType ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;             class  SpecialtyDataOnDemand_Roo_Dod_Itd {          int     $type                                                                                   ;              int     $type                                                                  ;              private java.util.Random SpecialtyDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Specialty> SpecialtyDataOnDemand$data;              public Specialty SpecialtyDataOnDemand$getNewTransientEntity(int index) {             Specialty obj = new Specialty();                 obj.setName("name_" + index);                 return obj;             }              public Specialty SpecialtyDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean SpecialtyDataOnDemand$modify(com.springsource.petclinic.reference.Specialty obj) {             obj.setName(obj.getName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void SpecialtyDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Specialty.findSpecialtyEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Specialty' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Specialty obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          SpecialtyDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VisitDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetIntegrationTest_Roo_Integration_Test_Itd {          int     parents                                                                                  ;              @org.springframework.beans.factory.annotation.Autowired         private com.springsource.petclinic.domain.VetDataOnDemand VetIntegrationTest$vetDataOnDemand;              @org.junit.Test         public void VetIntegrationTest$count() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 junit.framework.Assert.assertTrue("Counter for 'Vet' incorrectly reported there were no entries", count > 0);             }              @org.junit.Test         public void VetIntegrationTest$find() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to provide an identifier", id);                 Vet obj = Vet.findVet(id);                 junit.framework.Assert.assertNotNull("Find method for 'Vet' illegally returned null for id '" + id + "'", obj);                 junit.framework.Assert.assertEquals("Find method for 'Vet' returned the incorrect identifier", id, obj.getId());             }              @org.junit.Test         public void VetIntegrationTest$findAll() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 if (count > 250) {                     junit.framework.Assert.fail("Too expensive to perform a find all test for 'Vet', as there are " + count + " entries; use @RooIntegrationTest.findAllMaximum=" + count + " (or higher) on 'VetIntegrationTest' to force a find all test, or specify @RooIntegrationTest.findAll=false to disable");                     }                 java.util.List<Vet> result = Vet.findAllVets();                 junit.framework.Assert.assertNotNull("Find all method for 'Vet' illegally returned null", result);                 junit.framework.Assert.assertTrue("Find all method for 'Vet' failed to return any data", result.size() > 0);             }              @org.junit.Test         public void VetIntegrationTest$findEntries() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 long count = Vet.countVets();                 if (count > 20) {                     count = 20;                     }                 java.util.List<Vet> result = Vet.findVetEntries(0, (int) count);                 junit.framework.Assert.assertNotNull("Find entries method for 'Vet' illegally returned null", result);                 junit.framework.Assert.assertEquals("Find entries method for 'Vet' returned an incorrect number of entries", count, result.size());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$flush() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = Vet.findVet(vetDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Vet' failed to increment on flush directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$merge() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = Vet.findVet(vetDataOnDemand.getRandomPersistentEntity().getId());                 boolean modified = vetDataOnDemand.modify(obj);                 int currentVersion = obj.getVersion();                 obj.merge();                 obj.flush();                 if (modified) {                     junit.framework.Assert.assertTrue("Version for 'Vet' failed to increment on merge directive", obj.getVersion() > currentVersion);                     }             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$persist() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 Vet obj = vetDataOnDemand.getNewTransientEntity(Integer.MAX_VALUE);                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to return a new transient entity", obj);                 junit.framework.Assert.assertNull("Expected 'Vet' identifier to be null", obj.getId());                 junit.framework.Assert.assertNull("Expected 'Vet' version to be null", obj.getVersion());                 obj.persist();                 junit.framework.Assert.assertNotNull("Expected newly-persisted 'Vet' identifier to be null", obj.getId());                 junit.framework.Assert.assertEquals("Expected newly-persisted 'Vet' version to be 0", new Integer(0), obj.getVersion());             }              @org.junit.Test         @org.springframework.transaction.annotation.Transactional         public void VetIntegrationTest$remove() {             junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to initialize correctly", vetDataOnDemand.getRandomPersistentEntity());                 java.lang.Long id = vetDataOnDemand.getRandomPersistentEntity().getId();                 junit.framework.Assert.assertNotNull("Data on demand for 'Vet' failed to provide an identifier", id);                 Vet.findVet(id).remove();                 junit.framework.Assert.assertNull("Failed to remove 'Vet' with identifier '" + id + "'", Vet.findVet(id));             }          VetIntegrationTest ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package itds; import java.util.ArrayList; import java.util.List; import hasitds.HasITDs;    public class  ITDAspect {  public List<String> HasITDs$list;  public java.util.List<String> HasITDs$makeList(int size) {   return new ArrayList<String>();  }   public HasITDs$new(int x) {   this();   list = new ArrayList<String>();   }      public static class Super {   public int inside =9;  }    public int Super$value = 7;    int     parents                        ;    public static void main(String[] args) {      int x = args.length;      x++;     }    void around()                                       {      thisJoinPoint.getArgs();  } HasITDs ___ITD_INSERTED_IDENTIFIER___0; ITDAspect ___ITD_INSERTED_IDENTIFIER___1; Super ___ITD_INSERTED_IDENTIFIER___2; } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class VisitIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Entity_Itd {          int     $type                                                                 ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long Pet$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer Pet$version;              public java.lang.Long Pet$getId() {             return id;             }              public void Pet$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer Pet$getVersion() {             return version;             }              public void Pet$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.lang.String Pet$getContactEmails() {             return contactEmails;             }              public void Pet$setContactEmails(java.lang.String contactEmails) {             this.contactEmails = contactEmails;             }              public java.lang.Boolean Pet$getSendReminders() {             return sendReminders;             }              public void Pet$setSendReminders(java.lang.Boolean sendReminders) {             this.sendReminders = sendReminders;             }              public java.lang.String Pet$getName() {             return name;             }              public void Pet$setName(java.lang.String name) {             this.name = name;             }              public java.lang.Float Pet$getWeight() {             return weight;             }              public void Pet$setWeight(java.lang.Float weight) {             this.weight = weight;             }              public com.springsource.petclinic.domain.Owner Pet$getOwner() {             return owner;             }              public void Pet$setOwner(com.springsource.petclinic.domain.Owner owner) {             this.owner = owner;             }              public com.springsource.petclinic.reference.PetType Pet$getType() {             return type;             }              public void Pet$setType(com.springsource.petclinic.reference.PetType type) {             this.type = type;             }              public java.lang.String Pet$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("ContactEmails: " + getContactEmails());                 tsc.append("SendReminders: " + getSendReminders());                 tsc.append("Name: " + getName());                 tsc.append("Weight: " + getWeight());                 tsc.append("Owner: " + getOwner());                 tsc.append("Type: " + getType());                 return tsc.toString();             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.reference;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class SpecialtyIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.test.ref.RooIntegrationTest; import org.junit.Test;  @RooIntegrationTest public class OwnerIntegrationTest {      @Test     public void testMarkerMethod() {     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class OwnerDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  PetDataOnDemand_Roo_Dod_Itd {          int     $type                                                                             ;              int     $type                                                            ;              private java.util.Random PetDataOnDemand$rnd = new java.security.SecureRandom();              private java.util.List<Pet> PetDataOnDemand$data;              public Pet PetDataOnDemand$getNewTransientEntity(int index) {             Pet obj = new Pet();                 obj.setSendReminders(new Boolean(true));                 obj.setName("name_" + index);                 obj.setWeight(new Float(index));                 return obj;             }              public Pet PetDataOnDemand$getRandomPersistentEntity() {             init();                 return data.get(rnd.nextInt(data.size()));             }              public Boolean PetDataOnDemand$modify(com.springsource.petclinic.domain.Pet obj) {             obj.setName(obj.getName() + "_modified");                 return true;             }              @org.springframework.transaction.annotation.Transactional(propagation=org.springframework.transaction.annotation.Propagation.REQUIRES_NEW)         public void PetDataOnDemand$init() {             if (data != null) {                     return;                     }                          data = Pet.findPetEntries(0, 10);                 org.springframework.util.Assert.notNull(data, "Find entries implementation for 'Pet' illegally returned null");                 if (data.size() > 0) {                     return;                     }                          for (int i = 0; i < 10; i ++) {                     Pet obj = getNewTransientEntity(i);                         obj.persist();                         data.add(obj);                     }             }          PetDataOnDemand ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  Pet_Roo_Jpa_Itd {          @javax.persistence.PersistenceContext         transient javax.persistence.EntityManager Pet$entityManager;              @org.springframework.transaction.annotation.Transactional         public void Pet$flush() {             this.entityManager.flush();             }              @org.springframework.transaction.annotation.Transactional         public void Pet$merge() {             Pet merged = this.entityManager.merge(this);                 this.entityManager.flush();                 this.id = merged.getId();             }              @org.springframework.transaction.annotation.Transactional         public void Pet$persist() {             this.entityManager.persist(this);             }              @org.springframework.transaction.annotation.Transactional         public void Pet$remove() {             this.entityManager.remove(this);             }              public static long Pet$countPets() {             return (Long) new Pet().entityManager.createQuery("select count(o) from Pet o").getSingleResult();             }              public static com.springsource.petclinic.domain.Pet Pet$findPet(java.lang.Long id) {             org.springframework.util.Assert.notNull(id, "An identifier is required to retrieve an instance of Pet");                 return new Pet().entityManager.find(Pet.class, id);             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Pet> Pet$findAllPets() {             return new Pet().entityManager.createQuery("select o from Pet o").getResultList();             }              @SuppressWarnings("unchecked")         public static java.util.List<com.springsource.petclinic.domain.Pet> Pet$findPetEntries(int firstResult, int maxResults) {             return new Pet().entityManager.createQuery("select o from Pet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();             }          Pet ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;             class  VetSpecialty_Roo_Entity_Itd {          int     $type                                                                          ;              @javax.persistence.Id         @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.AUTO)         @javax.persistence.Column(name="id")         private java.lang.Long VetSpecialty$id;              @javax.persistence.Version         @javax.persistence.Column(name="version")         private java.lang.Integer VetSpecialty$version;              public java.lang.Long VetSpecialty$getId() {             return id;             }              public void VetSpecialty$setId(java.lang.Long id) {             this.id = id;             }              public java.lang.Integer VetSpecialty$getVersion() {             return version;             }              public void VetSpecialty$setVersion(java.lang.Integer version) {             this.version = version;             }              public java.util.Date VetSpecialty$getRegistered() {             return registered;             }              public void VetSpecialty$setRegistered(java.util.Date registered) {             this.registered = registered;             }              public com.springsource.petclinic.reference.Specialty VetSpecialty$getSpecialty() {             return specialty;             }              public void VetSpecialty$setSpecialty(com.springsource.petclinic.reference.Specialty specialty) {             this.specialty = specialty;             }              public com.springsource.petclinic.domain.Vet VetSpecialty$getVet() {             return vet;             }              public void VetSpecialty$setVet(com.springsource.petclinic.domain.Vet vet) {             this.vet = vet;             }              public java.lang.String VetSpecialty$toString() {             org.springframework.core.style.ToStringCreator tsc = new org.springframework.core.style.ToStringCreator(this);                 tsc.append("Registered: " + getRegistered());                 tsc.append("Specialty: " + getSpecialty());                 tsc.append("Vet: " + getVet());                 return tsc.toString();             }          VetSpecialty ___ITD_INSERTED_IDENTIFIER___0; }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package hasitds;  import itds.ITDAspect; import java.util.List;  public class HasITDs {   public void tryItOut() {   this.list.addAll(null);   this.makeList(4);    new HasITDs(6);   this.value = 9;   this.inside = 9;    }  } ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- public class  AspectWithDotClass {  int x1;  private boolean method() {   Object o = new Object();   if (!o.equals(void.class)) {    this.x1 ++ ;    return true;   }   return false;  } }     ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package other;  import java.util.List; import java.util.HashMap;  public class Gen <T extends Number & List<?>,          F extends HashMap<String, String> & Comparable<?>> {       void doNothing(T bar, F baz) {         bar.floatValue();         bar.clear();         baz.clear();         baz.compareTo(null);     } }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPY SOURCE BEGIN ------------------------------------- package com.springsource.petclinic.domain;  import org.springframework.roo.addon.dod.ref.RooDataOnDemand;  @RooDataOnDemand public class VetDataOnDemand { }  ----------------------------------- WORKING COPY SOURCE END ------------------------------------------------------------------------ WORKING COPIES END -------------------------------------
Java Model Exception: java.lang.RuntimeException: All Source code being worked on:
----------------------------------- SOURCE BEGIN -------------------------------------
package p;

import java.rmi.RemoteException;


(8695 more lines...)