Author: mprudhom Date: Wed Nov 15 15:44:55 2006 New Revision: 475499 URL: http://svn.apache.org/viewvc?view=rev&rev=475499 Log: Fixed duplicate named query in sample.
Modified: incubator/openjpa/trunk/openjpa-examples/src/main/java/relations/Deity.java Modified: incubator/openjpa/trunk/openjpa-examples/src/main/java/relations/Deity.java URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-examples/src/main/java/relations/Deity.java?view=diff&rev=475499&r1=475498&r2=475499 ============================================================================== --- incubator/openjpa/trunk/openjpa-examples/src/main/java/relations/Deity.java (original) +++ incubator/openjpa/trunk/openjpa-examples/src/main/java/relations/Deity.java Wed Nov 15 15:44:55 2006 @@ -59,15 +59,6 @@ + "and sibling1.mother = sibling2.mother)) " + "and sibling2 = ?1 and sibling1 <> ?1"), - // a half-siling shares a mother or a father, but not both - @NamedQuery(name="half-siblings", query="select distinct sibling1 " - + "from Deity sibling1, Deity sibling2 where " - + "((sibling1.father = sibling2.father " - + "and sibling1.mother <> sibling2.mother) " - + "or (sibling1.father <> sibling2.father " - + "and sibling1.mother = sibling2.mother)) " - + "and sibling2 = ?1 and sibling1 <> ?1"), - // a cousin shares a grandparent, but is not a sibling @NamedQuery(name="cousins", query="select distinct cousin1 " + "from Deity cousin1, Deity cousin2 where "