<dd><code>org.springframework.data.repository.CrudRepository<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>,​java.lang.Long></code>, <code>org.springframework.data.jpa.repository.JpaRepository<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>,​java.lang.Long></code>, <code>org.springframework.data.repository.PagingAndSortingRepository<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>,​java.lang.Long></code>, <code>org.springframework.data.repository.query.QueryByExampleExecutor<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></code>, <code>org.springframework.data.repository.Repository<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>,​java.lang.Long></code></dd>
</dl>
<hr>
<pre>@Repository
public interface <spanclass="typeNameLabel">ExchangeRepository</span>
extends org.springframework.data.jpa.repository.JpaRepository<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>,​java.lang.Long></pre>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colSecond"scope="col">Method</th>
<thclass="colLast"scope="col">Description</th>
</tr>
</thead>
<tbody>
<trclass="altColor"id="i0">
<tdclass="colFirst"><code>java.util.Optional<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#checkForExchange(com.plannaplan.entities.Assignment,com.plannaplan.entities.Groups)">checkForExchange</a></span>​(<ahref="../entities/Assignment.html"title="class in com.plannaplan.entities">Assignment</a> assignment,
<ahref="../entities/Groups.html"title="class in com.plannaplan.entities">Groups</a> group)</code></th>
<tdclass="colLast"> </td>
</tr>
<trclass="rowColor"id="i1">
<tdclass="colFirst"><code>java.util.List<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></code></td>
<divclass="memberSignature"><spanclass="annotations">@Query("FROM Exchange WHERE owned_id = ?1 AND desired_id = ?2")
</span><spanclass="returnType">java.util.Optional<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></span> <spanclass="memberName">checkForExchange</span>​(<spanclass="arguments">@Param("owned_id")
<ahref="../entities/Assignment.html"title="class in com.plannaplan.entities">Assignment</a> assignment,
@Param("desired_id")
<ahref="../entities/Groups.html"title="class in com.plannaplan.entities">Groups</a> group)</span></div>
<divclass="memberSignature"><spanclass="annotations">@Query("FROM Exchange WHERE ownerId = ?1")
</span><spanclass="returnType">java.util.List<<ahref="../entities/Exchange.html"title="class in com.plannaplan.entities">Exchange</a>></span> <spanclass="memberName">getByUserId</span>​(<spanclass="arguments">@Param("id")
java.lang.Long id)</span></div>
</section>
</li>
<liclass="blockList">
<sectionclass="detail">
<h3><aid="getMatches()">getMatches</a></h3>
<divclass="memberSignature"><spanclass="annotations">@Query("Select e1,e2 FROM Exchange e1, Exchange e2 WHERE e1.ownedAssignment.group.id = e2.desiredAssignment.id")