mirror of
https://github.com/apache/openjpa.git
synced 2025-02-24 03:28:35 +00:00
Fixed duplicate named query in sample.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475499 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08a615efad
commit
cf517aa224
@ -59,15 +59,6 @@ import javax.persistence.OneToOne;
|
||||
+ "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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user