mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-04 21:01:21 +08:00
Remove trailing whitespace in querydsl-jdo
This commit is contained in:
parent
8dc6ff190a
commit
ef1f8ee605
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -61,24 +61,24 @@ public interface JDOQLQuery<T> extends FetchableQuery<T, JDOQLQuery<T>>, Query<J
|
||||
|
||||
/**
|
||||
* Add the fetch group to the set of active fetch groups.
|
||||
*
|
||||
*
|
||||
* @param fetchGroupName fetch group name
|
||||
* @return the current object
|
||||
*/
|
||||
JDOQLQuery<T> addFetchGroup(String fetchGroupName);
|
||||
|
||||
/**
|
||||
* Set the maximum fetch depth when fetching.
|
||||
* Set the maximum fetch depth when fetching.
|
||||
* A value of 0 has no meaning and will throw a JDOUserException.
|
||||
* A value of -1 means that no limit is placed on fetching.
|
||||
* A positive integer will result in that number of references from the
|
||||
* initial object to be fetched.
|
||||
*
|
||||
*
|
||||
* @param maxFetchDepth max fetch depth
|
||||
* @return the current object
|
||||
*/
|
||||
JDOQLQuery<T> setMaxFetchDepth(int maxFetchDepth);
|
||||
|
||||
|
||||
/**
|
||||
* Close the query and related resources
|
||||
*/
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -63,7 +63,7 @@ public final class JDOQLSerializer extends SerializerBase<JDOQLSerializer> {
|
||||
private static final String VARIABLES = "\nVARIABLES ";
|
||||
|
||||
private static final String WHERE = "\nWHERE ";
|
||||
|
||||
|
||||
private static Comparator<Map.Entry<Object,String>> comparator = new Comparator<Map.Entry<Object,String>>() {
|
||||
@Override
|
||||
public int compare(Entry<Object, String> o1, Entry<Object, String> o2) {
|
||||
@ -76,7 +76,7 @@ public final class JDOQLSerializer extends SerializerBase<JDOQLSerializer> {
|
||||
private final List<Object> constants = new ArrayList<Object>();
|
||||
|
||||
private final Stack<Map<Object,String>> constantToLabel = new Stack<Map<Object,String>>();
|
||||
|
||||
|
||||
public JDOQLSerializer(JDOQLTemplates templates, Expression<?> candidate) {
|
||||
super(templates);
|
||||
this.candidatePath = candidate;
|
||||
@ -90,7 +90,7 @@ public final class JDOQLSerializer extends SerializerBase<JDOQLSerializer> {
|
||||
public List<Object> getConstants() {
|
||||
return constants;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<Object,String> getConstantToLabel() {
|
||||
return constantToLabel.peek();
|
||||
@ -106,7 +106,7 @@ public final class JDOQLSerializer extends SerializerBase<JDOQLSerializer> {
|
||||
final List<OrderSpecifier<?>> orderBy = metadata.getOrderBy();
|
||||
|
||||
constantToLabel.push(new HashMap<Object,String>());
|
||||
|
||||
|
||||
// select
|
||||
boolean skippedSelect = false;
|
||||
if (forCountRow) {
|
||||
@ -153,9 +153,9 @@ public final class JDOQLSerializer extends SerializerBase<JDOQLSerializer> {
|
||||
if (joins.size() > 1) {
|
||||
serializeVariables(joins);
|
||||
}
|
||||
|
||||
|
||||
int position = getLength();
|
||||
|
||||
|
||||
// group by
|
||||
if (!groupBy.isEmpty()) {
|
||||
append(GROUP_BY).handle(COMMA, groupBy);
|
||||
@ -186,14 +186,14 @@ public final class JDOQLSerializer extends SerializerBase<JDOQLSerializer> {
|
||||
Long offset = metadata.getModifiers().getOffset();
|
||||
serializeModifiers(limit, offset);
|
||||
}
|
||||
|
||||
// parameters
|
||||
|
||||
// parameters
|
||||
if (!getConstantToLabel().isEmpty()) {
|
||||
insert(position, serializeParameters(metadata.getParams()));
|
||||
insert(position, serializeParameters(metadata.getParams()));
|
||||
}
|
||||
|
||||
|
||||
constantToLabel.pop();
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void serializeModifiers(@Nullable Long limit, @Nullable Long offset) {
|
||||
@ -284,24 +284,24 @@ public final class JDOQLSerializer extends SerializerBase<JDOQLSerializer> {
|
||||
} else if (operator == Ops.LIKE || operator == Ops.LIKE_ESCAPE) {
|
||||
@SuppressWarnings("unchecked") //This is the expected type for like
|
||||
Expression<String> rightArg = (Expression<String>) args.get(1);
|
||||
super.visitOperation(type, Ops.MATCHES,
|
||||
super.visitOperation(type, Ops.MATCHES,
|
||||
ImmutableList.of(args.get(0), ExpressionUtils.likeToRegex(rightArg, false)));
|
||||
|
||||
// exists
|
||||
|
||||
// exists
|
||||
} else if (operator == Ops.EXISTS && args.get(0) instanceof SubQueryExpression) {
|
||||
final SubQueryExpression subQuery = (SubQueryExpression) args.get(0);
|
||||
append("(");
|
||||
serialize(subQuery.getMetadata(), true, true);
|
||||
append(") > 0");
|
||||
|
||||
// not exists
|
||||
} else if (operator == Ops.NOT && args.get(0) instanceof Operation
|
||||
&& ((Operation)args.get(0)).getOperator().equals(Ops.EXISTS)) {
|
||||
// not exists
|
||||
} else if (operator == Ops.NOT && args.get(0) instanceof Operation
|
||||
&& ((Operation)args.get(0)).getOperator().equals(Ops.EXISTS)) {
|
||||
final SubQueryExpression subQuery = (SubQueryExpression) ((Operation)args.get(0)).getArg(0);
|
||||
append("(");
|
||||
serialize(subQuery.getMetadata(), true, true);
|
||||
append(") == 0");
|
||||
|
||||
|
||||
} else if (operator == Ops.NUMCAST) {
|
||||
@SuppressWarnings("unchecked") //This is the expected type for castToNum
|
||||
Constant<Class<?>> rightArg = (Constant<Class<?>>)args.get(1);
|
||||
@ -315,6 +315,6 @@ public final class JDOQLSerializer extends SerializerBase<JDOQLSerializer> {
|
||||
super.visitOperation(type, operator, args);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -70,13 +70,13 @@ public class JDOQuery<T> extends AbstractJDOQuery<T, JDOQuery<T>> {
|
||||
|
||||
/**
|
||||
* Create a new {@link JDOQuery} instance
|
||||
*
|
||||
*
|
||||
* @param persistenceManager PersistenceManager instance to use
|
||||
* @param templates templates to use
|
||||
* @param metadata query metadata
|
||||
* @param detach detached results or not
|
||||
*/
|
||||
protected JDOQuery(PersistenceManager persistenceManager, JDOQLTemplates templates,
|
||||
protected JDOQuery(PersistenceManager persistenceManager, JDOQLTemplates templates,
|
||||
QueryMetadata metadata, boolean detach) {
|
||||
super(persistenceManager, templates, metadata, detach);
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -20,13 +20,13 @@ import com.querydsl.core.types.*;
|
||||
|
||||
/**
|
||||
* {@code JDOQueryMixin} extends {@link QueryMixin} to provide module-specific extensions
|
||||
*
|
||||
*
|
||||
* @author tiwe
|
||||
*
|
||||
* @param <T>
|
||||
*/
|
||||
public class JDOQueryMixin<T> extends QueryMixin<T> {
|
||||
|
||||
|
||||
public JDOQueryMixin() {}
|
||||
|
||||
public JDOQueryMixin(QueryMetadata metadata) {
|
||||
@ -36,18 +36,18 @@ public class JDOQueryMixin<T> extends QueryMixin<T> {
|
||||
public JDOQueryMixin(T self, QueryMetadata metadata) {
|
||||
super(self, metadata);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected Predicate convert(Predicate predicate, Role role) {
|
||||
predicate = (Predicate)ExpressionUtils.extract(predicate);
|
||||
if (predicate != null) {
|
||||
Context context = new Context();
|
||||
Context context = new Context();
|
||||
Predicate transformed = (Predicate) predicate.accept(collectionAnyVisitor, context);
|
||||
for (int i = 0; i < context.paths.size(); i++) {
|
||||
Path<?> path = context.paths.get(i);
|
||||
Path<?> path = context.paths.get(i);
|
||||
addCondition(context, i, path, role);
|
||||
}
|
||||
return transformed;
|
||||
return transformed;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@ -55,7 +55,7 @@ public class JDOQueryMixin<T> extends QueryMixin<T> {
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void addCondition(Context context, int i, Path<?> path, Role role) {
|
||||
EntityPath<?> alias = context.replacements.get(i);
|
||||
EntityPath<?> alias = context.replacements.get(i);
|
||||
from(alias);
|
||||
Predicate condition = ExpressionUtils.predicate(Ops.IN, alias, path.getMetadata().getParent());
|
||||
if (role == Role.WHERE) {
|
||||
@ -64,5 +64,5 @@ public class JDOQueryMixin<T> extends QueryMixin<T> {
|
||||
super.having(condition);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -49,7 +49,7 @@ public class JDODeleteClause implements DeleteClause<JDODeleteClause> {
|
||||
this(pm, entity, JDOQLTemplates.DEFAULT);
|
||||
}
|
||||
|
||||
public JDODeleteClause(PersistenceManager persistenceManager, EntityPath<?> entity,
|
||||
public JDODeleteClause(PersistenceManager persistenceManager, EntityPath<?> entity,
|
||||
JDOQLTemplates templates) {
|
||||
this.entity = entity;
|
||||
this.persistenceManager = persistenceManager;
|
||||
@ -94,15 +94,15 @@ public class JDODeleteClause implements DeleteClause<JDODeleteClause> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public JDODeleteClause where(Predicate... o) {
|
||||
for (Predicate p : o) {
|
||||
metadata.addWhere(p);
|
||||
}
|
||||
metadata.addWhere(p);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
JDOQLSerializer serializer = new JDOQLSerializer(templates, entity);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -72,18 +72,18 @@ public class JDOUpdateClause implements UpdateClause<JDOUpdateClause> {
|
||||
updates.put(path, expression);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public <T> JDOUpdateClause setNull(Path<T> path) {
|
||||
updates.put(path, Expressions.nullExpression(path));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public JDOUpdateClause where(Predicate... o) {
|
||||
for (Predicate p : o) {
|
||||
metadata.addWhere(p);
|
||||
}
|
||||
metadata.addWhere(p);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -34,8 +34,8 @@ import com.querydsl.jdo.test.domain.Store;
|
||||
public abstract class AbstractJDOTest {
|
||||
|
||||
private static final JDOQLTemplates templates = new JDOQLTemplates();
|
||||
|
||||
protected static final PersistenceManagerFactory pmf =
|
||||
|
||||
protected static final PersistenceManagerFactory pmf =
|
||||
JDOHelper.getPersistenceManagerFactory("datanucleus.properties");
|
||||
|
||||
protected PersistenceManager pm;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -43,7 +43,7 @@ public class AggregateTest extends AbstractJDOTest{
|
||||
assertEquals(Double.valueOf(avg), query().from(product).select(product.price.avg()).fetch().get(0));
|
||||
assertEquals(Double.valueOf(max), query().from(product).select(product.price.max()).fetch().get(0));
|
||||
}
|
||||
|
||||
|
||||
@BeforeClass
|
||||
public static void doPersist() {
|
||||
// Persistence of a Product and a Book.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -85,17 +85,17 @@ public class BasicsTest extends AbstractJDOTest {
|
||||
public void List_Distinct() {
|
||||
query().from(product).distinct().select(product).fetch();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void List_Distinct_Two_Sources() {
|
||||
query().from(product, product2).distinct().select(product, product2).fetch();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Single_Result() {
|
||||
query().from(product).select(product).fetchFirst();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Single_Result_With_Array() {
|
||||
query().from(product).select(new Expression<?>[]{product}).fetchFirst();
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -26,46 +26,46 @@ import com.querydsl.jdo.test.domain.QProduct;
|
||||
import com.querydsl.jdo.test.domain.QStore;
|
||||
|
||||
public class CollectionTest extends AbstractJDOTest {
|
||||
|
||||
|
||||
private final QStore store = QStore.store;
|
||||
|
||||
|
||||
@Test
|
||||
public void Contains_Key() {
|
||||
query(store, store.productsByName.containsKey("XXX"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Contains_Value() {
|
||||
Product product = query().from(QProduct.product).select(QProduct.product).fetch().get(0);
|
||||
query(store, store.productsByName.containsValue(product));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void Get() {
|
||||
query(store, store.products.get(0).name.isNotNull());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void isEmpty() {
|
||||
query(store, store.products.isEmpty());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isNotEmpty() {
|
||||
query(store, store.products.isNotEmpty());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Size() {
|
||||
query(store, store.products.size().gt(0));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Collection_Any() {
|
||||
query(store, store.products.any().name.eq("Sony Discman"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Collection_Any_And() {
|
||||
query(store, store.products.any().name.eq("Sony Discman").and(store.products.any().price.gt(10.0)));
|
||||
@ -75,13 +75,13 @@ public class CollectionTest extends AbstractJDOTest {
|
||||
public void Collection_Any_Count() {
|
||||
query().from(store).where(store.products.any().name.eq("Sony Discman")).fetchCount();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
@Ignore // Not supported
|
||||
public void Collection_Any_In_Projection() {
|
||||
query().from(store).select(store.products.any()).fetch();
|
||||
}
|
||||
|
||||
|
||||
@BeforeClass
|
||||
public static void doPersist() {
|
||||
// Persistence of a Product and a Book.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -23,16 +23,16 @@ import org.junit.Test;
|
||||
import jdepend.framework.JDepend;
|
||||
|
||||
public class DependenciesTest {
|
||||
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void test() throws IOException{
|
||||
JDepend jdepend = new JDepend();
|
||||
JDepend jdepend = new JDepend();
|
||||
jdepend.addDirectory("target/classes/com/querydsl/jdo");
|
||||
jdepend.addDirectory("target/classes/com/querydsl/jdo/dml");
|
||||
jdepend.addDirectory("target/classes/com/querydsl/jdo/sql");
|
||||
|
||||
jdepend.analyze();
|
||||
|
||||
jdepend.analyze();
|
||||
assertFalse(jdepend.containsCycles());
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -33,9 +33,9 @@ import com.querydsl.jdo.test.domain.QProduct;
|
||||
import com.querydsl.jdo.test.domain.QStore;
|
||||
|
||||
public class FetchPlanTest extends AbstractJDOTest{
|
||||
|
||||
|
||||
private JDOQuery<?> query;
|
||||
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
if (query != null) {
|
||||
@ -43,7 +43,7 @@ public class FetchPlanTest extends AbstractJDOTest{
|
||||
}
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test
|
||||
public void ListProducts() throws Exception{
|
||||
@ -56,34 +56,34 @@ public class FetchPlanTest extends AbstractJDOTest{
|
||||
.setMaxFetchDepth(2)
|
||||
.select(product).fetch();
|
||||
// query.close();
|
||||
|
||||
|
||||
Field queriesField = AbstractJDOQuery.class.getDeclaredField("queries");
|
||||
queriesField.setAccessible(true);
|
||||
List<Query> queries = (List<Query>)queriesField.get(query);
|
||||
Query jdoQuery = queries.get(0);
|
||||
assertEquals(new HashSet<String>(Arrays.asList("myfetchgroup1","myfetchgroup2")),
|
||||
assertEquals(new HashSet<String>(Arrays.asList("myfetchgroup1","myfetchgroup2")),
|
||||
jdoQuery.getFetchPlan().getGroups());
|
||||
assertEquals(2, jdoQuery.getFetchPlan().getMaxFetchDepth());
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test
|
||||
public void ListStores() throws Exception{
|
||||
QStore store = QStore.store;
|
||||
query = query();
|
||||
query = query();
|
||||
query.from(store)
|
||||
.addFetchGroup("products")
|
||||
.select(store).fetch();
|
||||
|
||||
|
||||
Field queriesField = AbstractJDOQuery.class.getDeclaredField("queries");
|
||||
queriesField.setAccessible(true);
|
||||
List<Query> queries = (List<Query>)queriesField.get(query);
|
||||
Query jdoQuery = queries.get(0);
|
||||
assertEquals(new HashSet<String>(Arrays.asList("products")),
|
||||
assertEquals(new HashSet<String>(Arrays.asList("products")),
|
||||
jdoQuery.getFetchPlan().getGroups());
|
||||
assertEquals(1, jdoQuery.getFetchPlan().getMaxFetchDepth());
|
||||
}
|
||||
|
||||
|
||||
@BeforeClass
|
||||
public static void doPersist() {
|
||||
PersistenceManager pm = pmf.getPersistenceManager();
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -39,7 +39,7 @@ public class GroupByTest extends AbstractJDOTest {
|
||||
assertEquals(3, query().from(product).groupBy(product.description).select(product.description).fetch().size());
|
||||
assertEquals(3, query().from(product).groupBy(product.price).select(product.price).fetch().size());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Having() {
|
||||
assertEquals(3, query().from(product)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -39,43 +39,43 @@ import com.querydsl.sql.HSQLDBTemplates;
|
||||
import com.querydsl.sql.SQLTemplates;
|
||||
|
||||
public class JDOSQLQueryTest extends AbstractJDOTest{
|
||||
|
||||
|
||||
private final SQLTemplates sqlTemplates = new HSQLDBTemplates();
|
||||
|
||||
|
||||
private final SProduct product = SProduct.product;
|
||||
|
||||
|
||||
protected JDOSQLQuery<?> sql() {
|
||||
return new JDOSQLQuery<Void>(pm, sqlTemplates);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Count() {
|
||||
public void Count() {
|
||||
assertEquals(30l, sql().from(product).fetchCount());
|
||||
}
|
||||
|
||||
|
||||
@Test(expected=NonUniqueResultException.class)
|
||||
public void UniqueResult() {
|
||||
sql().from(product).select(product.name).fetchOne();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void SingleResult() {
|
||||
sql().from(product).select(product.name).fetchFirst();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void SingleResult_With_Array() {
|
||||
sql().from(product).select(new Expression[]{product.name}).fetchFirst();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@Test
|
||||
public void StartsWith_Count() {
|
||||
assertEquals(10l, sql().from(product).where(product.name.startsWith("A")).fetchCount());
|
||||
assertEquals(10l, sql().from(product).where(product.name.startsWith("B")).fetchCount());
|
||||
assertEquals(10l, sql().from(product).where(product.name.startsWith("C")).fetchCount());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Eq_Count() {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
@ -84,11 +84,11 @@ public class JDOSQLQueryTest extends AbstractJDOTest{
|
||||
assertEquals(1l, sql().from(product).where(product.name.eq("C"+i)).fetchCount());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void ScalarQueries() {
|
||||
BooleanExpression filter = product.name.startsWith("A");
|
||||
|
||||
|
||||
// fetchCount
|
||||
assertEquals(10l, sql().from(product).where(filter).fetchCount());
|
||||
|
||||
@ -120,7 +120,7 @@ public class JDOSQLQueryTest extends AbstractJDOTest{
|
||||
assertEquals(30l, results.getTotal());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
@ -130,7 +130,7 @@ public class JDOSQLQueryTest extends AbstractJDOTest{
|
||||
List<Integer> list = sql().union(sq1, sq2).list();
|
||||
assertFalse(list.isEmpty());
|
||||
}
|
||||
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -69,25 +69,25 @@ public class OrderingTest extends AbstractJDOTest {
|
||||
.select(product.name, product.description).fetch();
|
||||
assertEquals(30, rows.size());
|
||||
for (Tuple row : rows) {
|
||||
assertEquals(row.get(0, String.class).substring(1),
|
||||
assertEquals(row.get(0, String.class).substring(1),
|
||||
row.get(1, String.class).substring(1));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void Limit_Order_Asc() {
|
||||
assertEquals(Arrays.asList("A0", "A1"),
|
||||
assertEquals(Arrays.asList("A0", "A1"),
|
||||
query().from(product).orderBy(product.name.asc()).limit(2).select(product.name).fetch());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Limit_Order_Desc() {
|
||||
assertEquals(Arrays.asList("C9", "C8"),
|
||||
assertEquals(Arrays.asList("C9", "C8"),
|
||||
query().from(product).orderBy(product.name.desc()).limit(2).select(product.name).fetch());
|
||||
}
|
||||
|
||||
|
||||
public void Limit_and_Offset() {
|
||||
assertEquals(Arrays.asList("A2", "A3", "A4"),
|
||||
assertEquals(Arrays.asList("A2", "A3", "A4"),
|
||||
query().from(product).orderBy(product.name.asc()).offset(2).limit(3).select(product.name).fetch());
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -32,11 +32,11 @@ import com.querydsl.codegen.CodegenModule;
|
||||
import com.querydsl.core.types.Expression;
|
||||
|
||||
public class PackageVerification {
|
||||
|
||||
|
||||
@Test
|
||||
public void Verify_Package() throws Exception{
|
||||
String version = System.getProperty("version");
|
||||
verify(new File("target/querydsl-jdo-"+version+"-apt-one-jar.jar"));
|
||||
verify(new File("target/querydsl-jdo-"+version+"-apt-one-jar.jar"));
|
||||
}
|
||||
|
||||
private void verify(File oneJar) throws Exception {
|
||||
@ -46,12 +46,12 @@ public class PackageVerification {
|
||||
oneJarClassLoader.loadClass(Expression.class.getName()); // querydsl-core
|
||||
oneJarClassLoader.loadClass(CodeWriter.class.getName()); // codegen
|
||||
oneJarClassLoader.loadClass(CodegenModule.class.getName()).newInstance();
|
||||
oneJarClassLoader.loadClass(PersistenceCapable.class.getName()); // jdo
|
||||
oneJarClassLoader.loadClass(PersistenceCapable.class.getName()); // jdo
|
||||
Class cl = oneJarClassLoader.loadClass(JDOAnnotationProcessor.class.getName()); // querydsl-apt
|
||||
cl.newInstance();
|
||||
String resourceKey = "META-INF/services/javax.annotation.processing.Processor";
|
||||
assertEquals(JDOAnnotationProcessor.class.getName(),
|
||||
assertEquals(JDOAnnotationProcessor.class.getName(),
|
||||
Resources.toString(oneJarClassLoader.findResource(resourceKey), Charsets.UTF_8));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -23,21 +23,21 @@ import com.querydsl.jdo.test.domain.Product;
|
||||
import com.querydsl.jdo.test.domain.QProduct;
|
||||
|
||||
public class SubqueriesTest extends AbstractJDOTest {
|
||||
|
||||
|
||||
private QProduct product = QProduct.product;
|
||||
|
||||
private QProduct other = new QProduct("other");
|
||||
|
||||
|
||||
@Test
|
||||
public void List_Exists() {
|
||||
query().from(product).where(query().from(other).select(other).exists()).select(product).fetch();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void List_NotExists() {
|
||||
query().from(product).where(query().from(other).select(other).notExists()).select(product).fetch();
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void List_Contains() {
|
||||
query().from(product).where(product.name.in(query().from(other).select(other.name))).select(product).fetch();
|
||||
@ -51,7 +51,7 @@ public class SubqueriesTest extends AbstractJDOTest {
|
||||
System.out.println(price);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Gt_Subquery_with_Condition() {
|
||||
for (double price : query().from(product)
|
||||
@ -69,7 +69,7 @@ public class SubqueriesTest extends AbstractJDOTest {
|
||||
System.out.println(price);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void In_Subquery() {
|
||||
@ -89,7 +89,7 @@ public class SubqueriesTest extends AbstractJDOTest {
|
||||
System.out.println(price);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Exists() {
|
||||
for (double price : query().from(product)
|
||||
@ -98,7 +98,7 @@ public class SubqueriesTest extends AbstractJDOTest {
|
||||
System.out.println(price);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void Not_Exists() {
|
||||
for (double price : query().from(product)
|
||||
@ -107,9 +107,9 @@ public class SubqueriesTest extends AbstractJDOTest {
|
||||
System.out.println(price);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@BeforeClass
|
||||
public static void doPersist() {
|
||||
// Persistence of a Product and a Book.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -75,7 +75,7 @@ public class ContainerTest extends AbstractTest{
|
||||
gym.wardrobes.containsValue(wrd2))));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void NotContainsKeysInMapFields() {
|
||||
|
||||
// "SELECT FROM org.jpox.samples.models.fitness.Gym "
|
||||
@ -117,7 +117,7 @@ public class ContainerTest extends AbstractTest{
|
||||
gym.wardrobes2.containsKey(wrd1))));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void NotContainsEntryInMapFields() {
|
||||
// NOTE : containsEntry is not supported in Querydsl
|
||||
|
||||
@ -135,7 +135,7 @@ public class ContainerTest extends AbstractTest{
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void GetInMapFields() {
|
||||
|
||||
// "SELECT FROM org.jpox.samples.models.fitness.Gym "
|
||||
@ -150,7 +150,7 @@ public class ContainerTest extends AbstractTest{
|
||||
.where(gym.wardrobes.get(wrd.getModel()).eq(wrd))));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void GetInOrderingInMapFields() {
|
||||
// "SELECT FROM org.jpox.samples.models.fitness.Gym "
|
||||
// + "PARAMETERS org.jpox.samples.models.fitness.Wardrobe wrd");
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -8,7 +8,7 @@ import org.junit.Test;
|
||||
import com.querydsl.jdo.models.company.QEmployee;
|
||||
|
||||
public class GroupByTest extends AbstractTest {
|
||||
|
||||
|
||||
@Test
|
||||
public void GroupBy() {
|
||||
QEmployee employee = QEmployee.employee;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -48,13 +48,13 @@ public class QBook extends EntityPathBase<com.querydsl.jdo.test.domain.Book>{
|
||||
public QBook(String path) {
|
||||
this(com.querydsl.jdo.test.domain.Book.class, path);
|
||||
}
|
||||
|
||||
|
||||
public QBook(Class<? extends com.querydsl.jdo.test.domain.Book> cl, String path) {
|
||||
super(cl, PathMetadataFactory.forVariable(path));
|
||||
}
|
||||
|
||||
|
||||
public QBook(PathMetadata metadata) {
|
||||
super(com.querydsl.jdo.test.domain.Book.class, metadata);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -43,13 +43,13 @@ public class QProduct extends EntityPathBase<com.querydsl.jdo.test.domain.Produc
|
||||
public QProduct(String path) {
|
||||
this(com.querydsl.jdo.test.domain.Product.class, path);
|
||||
}
|
||||
|
||||
|
||||
public QProduct(Class<? extends com.querydsl.jdo.test.domain.Product> cl, String path) {
|
||||
super(cl, PathMetadataFactory.forVariable(path));
|
||||
}
|
||||
|
||||
|
||||
public QProduct(PathMetadata metadata) {
|
||||
super(com.querydsl.jdo.test.domain.Product.class, metadata);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -43,13 +43,13 @@ public class QStore extends EntityPathBase<com.querydsl.jdo.test.domain.Store>{
|
||||
public QStore(String path) {
|
||||
this(Store.class, path);
|
||||
}
|
||||
|
||||
|
||||
public QStore(Class<? extends Store> cl, String path) {
|
||||
super(cl, PathMetadataFactory.forVariable(path));
|
||||
}
|
||||
|
||||
|
||||
public QStore(PathMetadata metadata) {
|
||||
super(Store.class, metadata);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -85,6 +85,6 @@ public class SProduct extends RelationalPathBase<SProduct> {
|
||||
addMetadata(publicationdate, ColumnMetadata.named("PUBLICATIONDATE"));
|
||||
addMetadata(timefield, ColumnMetadata.named("TIMEFIELD"));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
||||
Loading…
Reference in New Issue
Block a user