19 package org.turro.financials.model.contract;
21 import java.util.ArrayList;
22 import java.util.List;
23 import org.turro.elephant.db.WhereClause;
24 import org.turro.financials.db.FinancialsPU;
25 import org.turro.financials.entity.ContractParticipant;
26 import org.turro.plugin.contacts.ElephantRelationSolver;
27 import org.turro.plugin.contacts.IContactRelation;
28 import org.turro.plugin.contacts.IContactRelationSolver;
34 @ElephantRelationSolver
44 List<IContactRelation> list =
new ArrayList<>();
52 List<IContactRelation> list =
new ArrayList<>();
54 wc.
addClause(
"select cp from ContractParticipant as cp");
55 wc.
addClause(
"where cp.idContact = :idContact");
66 public List<IContactRelation>
getWorkers(String idContact) {
67 List<IContactRelation> list =
new ArrayList<>();
69 wc.
addClause(
"select cp from ContractParticipant as cp");
70 wc.
addClause(
"where cp.contract.contractor = :idContact");
void addClause(String clause)
void addNamedValue(String name, Object value)
List< IContactRelation > getBusiness(String idContact)
List< IContactRelation > getWorkers(String idContact)
List< IContactRelation > getRelations(String idContact)