diff --git a/src/main/java/io/ebeaninternal/server/query/DefaultFetchGroupQuery.java b/src/main/java/io/ebeaninternal/server/query/DefaultFetchGroupQuery.java index e7912546f..8ddc0e9e6 100644 --- a/src/main/java/io/ebeaninternal/server/query/DefaultFetchGroupQuery.java +++ b/src/main/java/io/ebeaninternal/server/query/DefaultFetchGroupQuery.java @@ -138,321 +138,321 @@ class DefaultFetchGroupQuery implements SpiFetchGroupQuery { @Override public Query copy() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setRawSql(RawSql rawSql) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query asOf(Timestamp asOf) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query asDraft() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public DtoQuery asDto(Class dtoClass) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public UpdateQuery asUpdate() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public void cancel() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setPersistenceContextScope(PersistenceContextScope scope) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setDocIndexName(String indexName) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public ExpressionFactory getExpressionFactory() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public boolean isAutoTuned() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setAutoTune(boolean autoTune) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setAllowLoadErrors() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setLazyLoadBatchSize(int lazyLoadBatchSize) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setIncludeSoftDeletes() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setDisableReadAuditing() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query apply(FetchPath fetchPath) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query usingTransaction(Transaction transaction) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query usingConnection(Connection connection) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public List findIds() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public QueryIterator findIterate() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public void findEach(Consumer consumer) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public void findEachWhile(Predicate consumer) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public List findList() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public Set findSet() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public Map findMap() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public List findSingleAttributeList() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public A findSingleAttribute() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public boolean isCountDistinct() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public boolean exists() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nullable @Override public T findOne() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public Optional findOneOrEmpty() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public List> findVersions() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public List> findVersionsBetween(Timestamp start, Timestamp end) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public int delete() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public int delete(Transaction transaction) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public int update() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public int update(Transaction transaction) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public int findCount() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public FutureRowCount findFutureCount() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public FutureIds findFutureIds() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public FutureList findFutureList() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Nonnull @Override public PagedList findPagedList() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setParameter(String name, Object value) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setParameter(int position, Object value) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setId(Object id) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Object getId() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query where(Expression expression) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public ExpressionList where() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public ExpressionList text() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public ExpressionList filterMany(String propertyName) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public ExpressionList having() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query having(Expression addExpressionToHaving) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query orderBy(String orderByClause) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query order(String orderByClause) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public OrderBy order() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public OrderBy orderBy() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setOrder(OrderBy orderBy) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setOrderBy(OrderBy orderBy) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setDistinct(boolean isDistinct) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setCountDistinct(CountDistinctOrder orderBy) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override @@ -462,7 +462,7 @@ class DefaultFetchGroupQuery implements SpiFetchGroupQuery { @Override public Query setFirstRow(int firstRow) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override @@ -472,67 +472,67 @@ class DefaultFetchGroupQuery implements SpiFetchGroupQuery { @Override public Query setMaxRows(int maxRows) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setMapKey(String mapKey) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setBeanCacheMode(CacheMode beanCacheMode) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setUseQueryCache(CacheMode queryCacheMode) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setUseDocStore(boolean useDocStore) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setReadOnly(boolean readOnly) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setLoadBeanCache(boolean loadBeanCache) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setTimeout(int secs) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setBufferFetchSizeHint(int fetchSize) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public String getGeneratedSql() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query forUpdate() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query forUpdateNoWait() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query forUpdateSkipLocked() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override @@ -542,51 +542,51 @@ class DefaultFetchGroupQuery implements SpiFetchGroupQuery { @Override public ForUpdate getForUpdateMode() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query alias(String alias) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setBaseTable(String baseTable) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Class getBeanType() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setInheritType(Class type) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Class getInheritType() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public QueryType getQueryType() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query setDisableLazyLoading(boolean disableLazyLoading) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Set validate() { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } @Override public Query orderById(boolean orderById) { - throw new RuntimeException("Not allowed on fetch group query "); + throw new RuntimeException("EB102: Only select() and fetch() clause is allowed on FetchGroup"); } }