@DELETE @Path("/{id}") public Response deleteCustomer(@PathParam("id") int customerId) { Customer customer = CustomerFinder.findOne(CustomerFinder.customerId().eq(customerId)); customer.cascadeDelete(); return Response.ok().build(); } }
private static Mapper[] getConstantJoinPool() { if (constantJoinPool == null) { Mapper[] result = new Mapper[2]; result[0] = PetFinder.petTypeId().constructEqualityMapper(PetTypeFinder.petTypeId()); result[1] = PetTypeFinder.petTypeId().constructEqualityMapper(PetFinder.petTypeId()); constantJoinPool = result; } return constantJoinPool; }
public IntegerAttribute<ParentOwnerType> customerId() { IntegerAttribute<ParentOwnerType> result = this.customerId; if (result == null) { result = mapper == null ? SingleColumnIntegerAttribute.generate("CUSTOMER_ID","","customerId",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,true,this,null,true,false,false,-1,-1,-1,false, false) : new MappedIntegerAttribute(CustomerAccountFinder.customerId(), this.mapper, this.zGetValueSelector()); result.zSetOwningRelationship("customer"); result.zSetOwningReverseRelationship("bitemporalbank.domain", "Customer", "accounts"); this.customerId = result; } return result; }
public IntegerAttribute<ParentOwnerType> petTypeId() { IntegerAttribute<ParentOwnerType> result = this.petTypeId; if (result == null) { result = mapper == null ? SingleColumnIntegerAttribute.generate("PET_TYPE_ID","","petTypeId",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,false,-1,-1,-1,false, false) : new MappedIntegerAttribute(PetFinder.petTypeId(), this.mapper, this.zGetValueSelector()); result.zSetOwningRelationship("petType"); this.petTypeId = result; } return result; }
public Operation eq(Task other) { return this.taskId().eq(other.getTaskId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public IntegerAttribute<ParentOwnerType> customerId() { IntegerAttribute<ParentOwnerType> result = this.customerId; if (result == null) { result = mapper == null ? SingleColumnIntegerAttribute.generate("CUSTOMER_ID","","customerId",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,false,-1,-1,-1,false, false) : new MappedIntegerAttribute(CustomerAccountFinder.customerId(), this.mapper, this.zGetValueSelector()); result.zSetOwningRelationship("customer"); result.zSetOwningReverseRelationship("auditonlybank.domain", "Customer", "accounts"); this.customerId = result; } return result; }
private static Mapper[] getConstantJoinPool() { if (constantJoinPool == null) { Mapper[] result = new Mapper[2]; result[0] = PersonFinder.personId().constructEqualityMapper(PetFinder.personId()); result[1] = PetFinder.personId().constructEqualityMapper(PersonFinder.personId()); constantJoinPool = result; } return constantJoinPool; }
public Operation eq(AllTypes other) { return this.id().eq(other.getId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public IntegerAttribute<ParentOwnerType> personId() { IntegerAttribute<ParentOwnerType> result = this.personId; if (result == null) { result = mapper == null ? SingleColumnIntegerAttribute.generate("PERSON_ID","","personId",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,false,-1,-1,-1,false, false) : new MappedIntegerAttribute(PetFinder.personId(), this.mapper, this.zGetValueSelector()); result.zSetOwningRelationship("owner"); result.zSetOwningReverseRelationship("kata.domain", "Person", "pets"); this.personId = result; } return result; }
private static Mapper[] getConstantJoinPool() { if (constantJoinPool == null) { Mapper[] result = new Mapper[2]; result[0] = CustomerFinder.customerId().constructEqualityMapper(CustomerAccountFinder.customerId()); result[1] = CustomerAccountFinder.customerId().constructEqualityMapper(CustomerFinder.customerId()); constantJoinPool = result; } return constantJoinPool; }
public Operation eq(Person other) { return this.personId().eq(other.getPersonId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public IntegerAttribute<ParentOwnerType> customerId() { IntegerAttribute<ParentOwnerType> result = this.customerId; if (result == null) { result = mapper == null ? SingleColumnIntegerAttribute.generate("CUSTOMER_ID","","customerId",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,false,-1,-1,-1,false, false) : new MappedIntegerAttribute(CustomerAccountFinder.customerId(), this.mapper, this.zGetValueSelector()); result.zSetOwningRelationship("customer"); result.zSetOwningReverseRelationship("simplebank.domain", "Customer", "accounts"); this.customerId = result; } return result; }
private static Mapper[] getConstantJoinPool() { if (constantJoinPool == null) { Mapper[] result = new Mapper[2]; result[0] = ApplicantFinder.id().constructEqualityMapper(ApplicantCreditIssueTypeFinder.applicantId()); result[1] = ApplicantCreditIssueTypeFinder.applicantId().constructEqualityMapper(ApplicantFinder.id()); constantJoinPool = result; } return constantJoinPool; }
public Operation eq(Customer other) { return this.customerId().eq(other.getCustomerId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
private static Mapper[] getConstantJoinPool() { if (constantJoinPool == null) { Mapper[] result = new Mapper[2]; result[0] = CreditIssueTypeFinder.id().constructEqualityMapper(ApplicantCreditIssueTypeFinder.creditIssueTypeId()); result[1] = ApplicantCreditIssueTypeFinder.creditIssueTypeId().constructEqualityMapper(CreditIssueTypeFinder.id()); constantJoinPool = result; } return constantJoinPool; }
public Operation eq(CustomerAccount other) { return this.accountId().eq(other.getAccountId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
private static Mapper[] getConstantJoinPool() { if (constantJoinPool == null) { Mapper[] result = new Mapper[4]; result[0] = CustomerFinder.customerId().constructEqualityMapper(CustomerAccountFinder.customerId()); result[1] = CustomerAccountFinder.customerId().constructEqualityMapper(CustomerFinder.customerId()); result[2] = CustomerFinder.processingDate().constructEqualityMapper(CustomerAccountFinder.processingDate()); result[3] = CustomerAccountFinder.processingDate().constructEqualityMapper(CustomerFinder.processingDate()); constantJoinPool = result; } return constantJoinPool; }
public Operation eq(Customer other) { return this.customerId().eq(other.getCustomerId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
private static Mapper[] getConstantJoinPool() { if (constantJoinPool == null) { Mapper[] result = new Mapper[6]; result[0] = CustomerFinder.customerId().constructEqualityMapper(CustomerAccountFinder.customerId()); result[1] = CustomerAccountFinder.customerId().constructEqualityMapper(CustomerFinder.customerId()); result[2] = CustomerFinder.businessDate().constructEqualityMapper(CustomerAccountFinder.businessDate()); result[3] = CustomerAccountFinder.businessDate().constructEqualityMapper(CustomerFinder.businessDate()); result[4] = CustomerFinder.processingDate().constructEqualityMapper(CustomerAccountFinder.processingDate()); result[5] = CustomerAccountFinder.processingDate().constructEqualityMapper(CustomerFinder.processingDate()); constantJoinPool = result; } return constantJoinPool; }
public Operation eq(Employee other) { return this.employeeId().eq(other.getEmployeeId()) ; } // this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.