public QAddress(Class<? extends Address> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.copy = inits.isInitialized("copy") ? new QAddress(forProperty("copy"), inits.get("copy")) : null; }
@Override @Transactional(readOnly = true) public Customer findById(Long id) { if (id == null) { return null; } return findOne(qCustomer.id.eq(id)); }
@Override @Transactional(readOnly = true) public Customer findByEmailAddress(EmailAddress emailAddress) { if (emailAddress == null) { return null; } return findOne(qCustomer.emailAddress.eq(emailAddress.toString())); }
public QCustomer(Class<? extends Customer> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.emailAddress = inits.isInitialized("emailAddress") ? new QEmailAddress(forProperty("emailAddress")) : null; }
/** * @param <A> * @param property * @param type * @return */ protected <A extends Enum<A>> EnumPath<A> createEnum(String property, Class<A> type) { return add(new EnumPath<A>(type, forProperty(property))); }
/** * Create a new Time path * * @param <A> * @param property * @param type * @return */ @SuppressWarnings("unchecked") protected <A extends Comparable> TimePath<A> createTime(String property, Class<? super A> type) { return add(new TimePath<A>((Class) type, forProperty(property))); }
public QAddress(Class<? extends Address> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.copy = inits.isInitialized("copy") ? new QAddress(forProperty("copy"), inits.get("copy")) : null; }
public QCustomer(Class<? extends Customer> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.emailAddress = inits.isInitialized("emailAddress") ? new QEmailAddress(forProperty("emailAddress")) : null; }
@Override public long doInSqlDeleteClause(SQLDeleteClause delete) { return delete.where(qCustomer.id.eq(customer.getId())).execute(); } });
public QOrder(Class<? extends Order> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.billingAddress = inits.isInitialized("billingAddress") ? new com.oreilly.springdata.mongodb.core.QAddress(forProperty("billingAddress"), inits.get("billingAddress")) : null; this.customer = inits.isInitialized("customer") ? new com.oreilly.springdata.mongodb.core.QCustomer(forProperty("customer"), inits.get("customer")) : null; this.shippingAddress = inits.isInitialized("shippingAddress") ? new com.oreilly.springdata.mongodb.core.QAddress(forProperty("shippingAddress"), inits.get("shippingAddress")) : null; }
public QLineItem(Class<? extends LineItem> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.product = inits.isInitialized("product") ? new com.oreilly.springdata.querydsl.core.QProduct(forProperty("product")) : null; }
@Override public long doInSqlDeleteClause(SQLDeleteClause delete) { return delete.where(qAddress.customerId.eq(customer.getId())).execute(); } });
public QOrder(Class<? extends Order> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.billingAddress = inits.isInitialized("billingAddress") ? new com.oreilly.springdata.jpa.core.QAddress(forProperty("billingAddress"), inits.get("billingAddress")) : null; this.customer = inits.isInitialized("customer") ? new com.oreilly.springdata.jpa.core.QCustomer(forProperty("customer"), inits.get("customer")) : null; this.shippingAddress = inits.isInitialized("shippingAddress") ? new com.oreilly.springdata.jpa.core.QAddress(forProperty("shippingAddress"), inits.get("shippingAddress")) : null; }
public QCustomer(Class<? extends Customer> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.emailAddress = inits.isInitialized("emailAddress") ? new QEmailAddress(forProperty("emailAddress")) : null; }
@Override public long doInSqlUpdateClause(SQLUpdateClause update) { return update .where(qCustomer.id.eq(customer.getId())) .set(qCustomer.firstName, customer.getFirstName()) .set(qCustomer.lastName, customer.getLastName()) .set(qCustomer.emailAddress, customer.getEmailAddress() == null ? null : customer.getEmailAddress().toString()).execute(); } });
public QOrder(Class<? extends Order> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.billingAddress = inits.isInitialized("billingAddress") ? new com.oreilly.springdata.querydsl.core.QAddress(forProperty("billingAddress")) : null; this.customer = inits.isInitialized("customer") ? new com.oreilly.springdata.querydsl.core.QCustomer(forProperty("customer"), inits.get("customer")) : null; this.shippingAddress = inits.isInitialized("shippingAddress") ? new com.oreilly.springdata.querydsl.core.QAddress(forProperty("shippingAddress")) : null; }
public QLineItem(Class<? extends LineItem> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.product = inits.isInitialized("product") ? new com.oreilly.springdata.mongodb.core.QProduct(forProperty("product")) : null; }
@Override public long doInSqlUpdateClause(SQLUpdateClause update) { return update.where(qAddress.id.eq(a.getId())).set(qAddress.customerId, customer.getId()) .set(qAddress.street, a.getStreet()).set(qAddress.city, a.getCity()) .set(qAddress.country, a.getCountry()).execute(); } });
public QLineItem(Class<? extends LineItem> type, PathMetadata<?> metadata, PathInits inits) { super(type, metadata, inits); this.product = inits.isInitialized("product") ? new com.oreilly.springdata.jpa.core.QProduct(forProperty("product")) : null; }