diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 99794fc9..056c2345 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -28,7 +28,7 @@ jobs:
- name: set name
run: |
git config --global user.name "release-bot";
- git config --global user.email "release-bot@fleetpin.co.nz";
+ git config --global user.email "release-bot@phocas.co.nz";
- name: add key
run: |
diff --git a/graphql-builder/pom.xml b/graphql-builder/pom.xml
index 79cbf343..0d64ccce 100644
--- a/graphql-builder/pom.xml
+++ b/graphql-builder/pom.xml
@@ -18,7 +18,7 @@
https://github.com/ashley-taylor/graphql-builder
- com.fleetpin
+ com.phocas
graphql-database-manager
3.0.4-SNAPSHOT
@@ -62,15 +62,6 @@
-
-
- Ashley Taylor
- ashley.taylor@fleetpin.co.nz
- Fleetpin
- http://www.fleetpin.co.nz
-
-
-
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/Authorizer.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/Authorizer.java
similarity index 92%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/Authorizer.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/Authorizer.java
index f6480f4f..1a44d2ad 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/Authorizer.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/Authorizer.java
@@ -9,6 +9,6 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
public interface Authorizer {}
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/AuthorizerSchema.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/AuthorizerSchema.java
similarity index 98%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/AuthorizerSchema.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/AuthorizerSchema.java
index 2eff1236..a18269c5 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/AuthorizerSchema.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/AuthorizerSchema.java
@@ -9,9 +9,9 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import static com.fleetpin.graphql.builder.EntityUtil.isContext;
+import static com.phocassoftware.graphql.builder.EntityUtil.isContext;
import graphql.GraphQLContext;
import graphql.GraphqlErrorException;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DataFetcherRunner.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DataFetcherRunner.java
similarity index 80%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/DataFetcherRunner.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DataFetcherRunner.java
index 1b134792..4851ce8d 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DataFetcherRunner.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DataFetcherRunner.java
@@ -1,4 +1,4 @@
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import graphql.schema.DataFetcher;
import java.lang.reflect.Method;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveCaller.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveCaller.java
similarity index 95%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveCaller.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveCaller.java
index 73b3bd9d..b945d767 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveCaller.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveCaller.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import graphql.schema.DataFetcher;
import graphql.schema.DataFetchingEnvironment;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveOperation.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveOperation.java
similarity index 95%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveOperation.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveOperation.java
index e278c2c7..2f69b969 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveOperation.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveOperation.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import java.lang.annotation.Annotation;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveProcessor.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveProcessor.java
similarity index 96%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveProcessor.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveProcessor.java
index 18d429d8..3e54c6e9 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectiveProcessor.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectiveProcessor.java
@@ -1,6 +1,6 @@
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.Directive;
+import com.phocassoftware.graphql.builder.annotations.Directive;
import graphql.introspection.Introspection;
import graphql.schema.*;
import java.lang.annotation.Annotation;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectivesSchema.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectivesSchema.java
similarity index 97%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectivesSchema.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectivesSchema.java
index ce6e59e7..1ce5af9c 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/DirectivesSchema.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectivesSchema.java
@@ -9,10 +9,10 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.DataFetcherWrapper;
-import com.fleetpin.graphql.builder.annotations.Directive;
+import com.phocassoftware.graphql.builder.annotations.DataFetcherWrapper;
+import com.phocassoftware.graphql.builder.annotations.Directive;
import graphql.schema.DataFetcher;
import graphql.schema.DataFetchingEnvironment;
import graphql.schema.GraphQLAppliedDirective;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityHolder.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityHolder.java
similarity index 97%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityHolder.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityHolder.java
index d585319f..03efa5b2 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityHolder.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityHolder.java
@@ -9,11 +9,11 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.TypeMeta.Flag;
-import com.fleetpin.graphql.builder.annotations.Id;
-import com.fleetpin.graphql.builder.mapper.InputTypeBuilder;
+import com.phocassoftware.graphql.builder.TypeMeta.Flag;
+import com.phocassoftware.graphql.builder.annotations.Id;
+import com.phocassoftware.graphql.builder.mapper.InputTypeBuilder;
import graphql.Scalars;
import graphql.schema.GraphQLInputType;
import graphql.schema.GraphQLList;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityProcessor.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityProcessor.java
similarity index 95%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityProcessor.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityProcessor.java
index 0deb63cb..abecf176 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityProcessor.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityProcessor.java
@@ -9,11 +9,11 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.Scalar;
-import com.fleetpin.graphql.builder.annotations.Union;
-import com.fleetpin.graphql.builder.mapper.InputTypeBuilder;
+import com.phocassoftware.graphql.builder.annotations.Scalar;
+import com.phocassoftware.graphql.builder.annotations.Union;
+import com.phocassoftware.graphql.builder.mapper.InputTypeBuilder;
import graphql.Scalars;
import graphql.schema.GraphQLAppliedDirective;
import graphql.schema.GraphQLCodeRegistry;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityUtil.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityUtil.java
similarity index 94%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityUtil.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityUtil.java
index f63efdf1..fdc17d18 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/EntityUtil.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EntityUtil.java
@@ -9,12 +9,12 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.Context;
-import com.fleetpin.graphql.builder.annotations.GraphQLIgnore;
-import com.fleetpin.graphql.builder.annotations.GraphQLName;
-import com.fleetpin.graphql.builder.annotations.InputIgnore;
+import com.phocassoftware.graphql.builder.annotations.Context;
+import com.phocassoftware.graphql.builder.annotations.GraphQLIgnore;
+import com.phocassoftware.graphql.builder.annotations.GraphQLName;
+import com.phocassoftware.graphql.builder.annotations.InputIgnore;
import graphql.GraphQLContext;
import graphql.schema.DataFetchingEnvironment;
import java.lang.annotation.Annotation;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/EnumEntity.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EnumEntity.java
similarity index 89%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/EnumEntity.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EnumEntity.java
index b05bc208..da72e5e4 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/EnumEntity.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/EnumEntity.java
@@ -9,13 +9,13 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static graphql.schema.GraphQLEnumValueDefinition.newEnumValueDefinition;
-import com.fleetpin.graphql.builder.annotations.GraphQLDescription;
-import com.fleetpin.graphql.builder.annotations.GraphQLIgnore;
-import com.fleetpin.graphql.builder.mapper.InputTypeBuilder;
+import com.phocassoftware.graphql.builder.annotations.GraphQLDescription;
+import com.phocassoftware.graphql.builder.annotations.GraphQLIgnore;
+import com.phocassoftware.graphql.builder.mapper.InputTypeBuilder;
import graphql.schema.GraphQLEnumType;
import graphql.schema.GraphQLNamedInputType;
import graphql.schema.GraphQLNamedOutputType;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/ErrorType.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ErrorType.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/ErrorType.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ErrorType.java
index 16e7e679..4485457e 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/ErrorType.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ErrorType.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import graphql.ErrorClassification;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/FilteredPublisher.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/FilteredPublisher.java
similarity index 98%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/FilteredPublisher.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/FilteredPublisher.java
index afe8cc91..30aa5c2a 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/FilteredPublisher.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/FilteredPublisher.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import java.util.concurrent.CompletableFuture;
import java.util.function.BiConsumer;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/InputBuilder.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/InputBuilder.java
similarity index 91%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/InputBuilder.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/InputBuilder.java
index ff00057f..eff66d11 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/InputBuilder.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/InputBuilder.java
@@ -9,20 +9,20 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
-
-import com.fleetpin.graphql.builder.annotations.Entity;
-import com.fleetpin.graphql.builder.annotations.GraphQLDescription;
-import com.fleetpin.graphql.builder.annotations.GraphQLIgnore;
-import com.fleetpin.graphql.builder.annotations.InputIgnore;
-import com.fleetpin.graphql.builder.annotations.OneOf;
-import com.fleetpin.graphql.builder.annotations.SchemaOption;
-import com.fleetpin.graphql.builder.mapper.ConstructorFieldBuilder;
-import com.fleetpin.graphql.builder.mapper.ConstructorFieldBuilder.RecordMapper;
-import com.fleetpin.graphql.builder.mapper.InputTypeBuilder;
-import com.fleetpin.graphql.builder.mapper.ObjectFieldBuilder;
-import com.fleetpin.graphql.builder.mapper.ObjectFieldBuilder.FieldMapper;
-import com.fleetpin.graphql.builder.mapper.OneOfBuilder;
+package com.phocassoftware.graphql.builder;
+
+import com.phocassoftware.graphql.builder.annotations.Entity;
+import com.phocassoftware.graphql.builder.annotations.GraphQLDescription;
+import com.phocassoftware.graphql.builder.annotations.GraphQLIgnore;
+import com.phocassoftware.graphql.builder.annotations.InputIgnore;
+import com.phocassoftware.graphql.builder.annotations.OneOf;
+import com.phocassoftware.graphql.builder.annotations.SchemaOption;
+import com.phocassoftware.graphql.builder.mapper.ConstructorFieldBuilder;
+import com.phocassoftware.graphql.builder.mapper.ConstructorFieldBuilder.RecordMapper;
+import com.phocassoftware.graphql.builder.mapper.InputTypeBuilder;
+import com.phocassoftware.graphql.builder.mapper.ObjectFieldBuilder;
+import com.phocassoftware.graphql.builder.mapper.ObjectFieldBuilder.FieldMapper;
+import com.phocassoftware.graphql.builder.mapper.OneOfBuilder;
import graphql.schema.GraphQLInputObjectField;
import graphql.schema.GraphQLInputObjectType;
import graphql.schema.GraphQLInputObjectType.Builder;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/MethodProcessor.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/MethodProcessor.java
similarity index 94%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/MethodProcessor.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/MethodProcessor.java
index 8bef984f..c40a546d 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/MethodProcessor.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/MethodProcessor.java
@@ -1,13 +1,13 @@
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import static com.fleetpin.graphql.builder.EntityUtil.isContext;
+import static com.phocassoftware.graphql.builder.EntityUtil.isContext;
-import com.fleetpin.graphql.builder.annotations.Directive;
-import com.fleetpin.graphql.builder.annotations.GraphQLDeprecated;
-import com.fleetpin.graphql.builder.annotations.GraphQLDescription;
-import com.fleetpin.graphql.builder.annotations.Mutation;
-import com.fleetpin.graphql.builder.annotations.Query;
-import com.fleetpin.graphql.builder.annotations.Subscription;
+import com.phocassoftware.graphql.builder.annotations.Directive;
+import com.phocassoftware.graphql.builder.annotations.GraphQLDeprecated;
+import com.phocassoftware.graphql.builder.annotations.GraphQLDescription;
+import com.phocassoftware.graphql.builder.annotations.Mutation;
+import com.phocassoftware.graphql.builder.annotations.Query;
+import com.phocassoftware.graphql.builder.annotations.Subscription;
import graphql.GraphQLContext;
import graphql.schema.DataFetcher;
import graphql.schema.DataFetchingEnvironment;
@@ -91,6 +91,7 @@ Builder process(AuthorizerSchema authorizer, FieldCoordinates coordinates, TypeM
field.name(coordinates.getFieldName());
+
TypeMeta meta = new TypeMeta(parentMeta, method.getReturnType(), method.getGenericReturnType(), method);
var type = entityProcessor.getType(meta, method.getAnnotations());
field.type(type);
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/ObjectEntity.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ObjectEntity.java
similarity index 90%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/ObjectEntity.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ObjectEntity.java
index cffab6b5..bf0fbdeb 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/ObjectEntity.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ObjectEntity.java
@@ -9,11 +9,11 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.GraphQLCreator;
-import com.fleetpin.graphql.builder.annotations.OneOf;
-import com.fleetpin.graphql.builder.mapper.InputTypeBuilder;
+import com.phocassoftware.graphql.builder.annotations.GraphQLCreator;
+import com.phocassoftware.graphql.builder.annotations.OneOf;
+import com.phocassoftware.graphql.builder.mapper.InputTypeBuilder;
import graphql.schema.GraphQLNamedInputType;
import graphql.schema.GraphQLNamedOutputType;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/RestrictType.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/RestrictType.java
similarity index 96%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/RestrictType.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/RestrictType.java
index b234d5ac..6716135d 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/RestrictType.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/RestrictType.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import java.util.ArrayList;
import java.util.List;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/RestrictTypeFactory.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/RestrictTypeFactory.java
similarity index 96%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/RestrictTypeFactory.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/RestrictTypeFactory.java
index 05e4be2e..c26a53fa 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/RestrictTypeFactory.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/RestrictTypeFactory.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import graphql.schema.DataFetchingEnvironment;
import java.lang.reflect.ParameterizedType;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/ScalarEntity.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ScalarEntity.java
similarity index 88%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/ScalarEntity.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ScalarEntity.java
index d1c0422b..a86e1e47 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/ScalarEntity.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/ScalarEntity.java
@@ -9,11 +9,11 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.GraphQLDescription;
-import com.fleetpin.graphql.builder.annotations.Scalar;
-import com.fleetpin.graphql.builder.mapper.InputTypeBuilder;
+import com.phocassoftware.graphql.builder.annotations.GraphQLDescription;
+import com.phocassoftware.graphql.builder.annotations.Scalar;
+import com.phocassoftware.graphql.builder.mapper.InputTypeBuilder;
import graphql.schema.Coercing;
import graphql.schema.GraphQLNamedInputType;
import graphql.schema.GraphQLNamedOutputType;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/SchemaBuilder.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/SchemaBuilder.java
similarity index 98%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/SchemaBuilder.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/SchemaBuilder.java
index 24bf2fcb..6078dc8a 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/SchemaBuilder.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/SchemaBuilder.java
@@ -9,9 +9,9 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.*;
+import com.phocassoftware.graphql.builder.annotations.*;
import graphql.schema.GraphQLScalarType;
import graphql.schema.GraphQLSchema;
import java.lang.reflect.Method;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/SchemaConfiguration.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/SchemaConfiguration.java
similarity index 94%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/SchemaConfiguration.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/SchemaConfiguration.java
index 4eb2412b..0da03eb6 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/SchemaConfiguration.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/SchemaConfiguration.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
/**
* Used to add extra information to the schema. Currently only supports directives. That are inferred using the annotation
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/TypeBuilder.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeBuilder.java
similarity index 96%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/TypeBuilder.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeBuilder.java
index 7d35b9c1..95eb05bc 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/TypeBuilder.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeBuilder.java
@@ -9,11 +9,11 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.Entity;
-import com.fleetpin.graphql.builder.annotations.GraphQLDescription;
-import com.fleetpin.graphql.builder.annotations.GraphQLIgnore;
+import com.phocassoftware.graphql.builder.annotations.Entity;
+import com.phocassoftware.graphql.builder.annotations.GraphQLDescription;
+import com.phocassoftware.graphql.builder.annotations.GraphQLIgnore;
import graphql.schema.FieldCoordinates;
import graphql.schema.GraphQLInterfaceType;
import graphql.schema.GraphQLNamedOutputType;
@@ -22,6 +22,7 @@
import graphql.schema.GraphQLTypeReference;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
+import java.util.Objects;
public abstract class TypeBuilder {
@@ -167,6 +168,7 @@ public ObjectType(EntityProcessor entityProcessor, TypeMeta meta) {
protected void processFields(String typeName, Builder graphType, graphql.schema.GraphQLInterfaceType.Builder interfaceBuilder)
throws ReflectiveOperationException {
var type = meta.getType();
+
for (Method method : type.getMethods()) {
try {
var name = EntityUtil.getter(method);
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/TypeMeta.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeMeta.java
similarity index 96%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/TypeMeta.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeMeta.java
index 37cf193f..a42c71d2 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/TypeMeta.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeMeta.java
@@ -9,14 +9,11 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
-
-import com.fleetpin.graphql.builder.annotations.InnerNullable;
-import java.lang.reflect.AnnotatedElement;
-import java.lang.reflect.ParameterizedType;
-import java.lang.reflect.Type;
-import java.lang.reflect.TypeVariable;
-import java.lang.reflect.WildcardType;
+package com.phocassoftware.graphql.builder;
+
+import com.phocassoftware.graphql.builder.annotations.InnerNullable;
+
+import java.lang.reflect.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -70,6 +67,13 @@ private void processGeneric(TypeMeta target, TypeVariable type, AnnotatedElement
if (owningClass instanceof Class) {
findType(target, type, (Class) owningClass, element);
} else if (owningClass instanceof ParameterizedType) {
+ if (element instanceof Member member) {
+ var declaringClass = member.getDeclaringClass();
+ if (declaringClass.equals(target.type)) {
+ findType(target, type, target.type, element);
+ return;
+ }
+ }
var pt = (ParameterizedType) owningClass;
if (!matchType(target, type.getTypeName(), pt, true, element)) {
throw new UnsupportedOperationException("Does not handle type " + owningClass);
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/UnionType.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/UnionType.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/UnionType.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/UnionType.java
index c25ccc66..39118bd4 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/UnionType.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/UnionType.java
@@ -9,10 +9,10 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
-import com.fleetpin.graphql.builder.annotations.Union;
-import com.fleetpin.graphql.builder.mapper.InputTypeBuilder;
+import com.phocassoftware.graphql.builder.annotations.Union;
+import com.phocassoftware.graphql.builder.mapper.InputTypeBuilder;
import graphql.schema.GraphQLNamedInputType;
import graphql.schema.GraphQLNamedOutputType;
import graphql.schema.GraphQLObjectType;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Context.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Context.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Context.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Context.java
index 0ebe5d75..42e968f4 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Context.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Context.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/DataFetcherWrapper.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/DataFetcherWrapper.java
similarity index 73%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/DataFetcherWrapper.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/DataFetcherWrapper.java
index 1f11f01e..f3d13670 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/DataFetcherWrapper.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/DataFetcherWrapper.java
@@ -1,8 +1,8 @@
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
-import com.fleetpin.graphql.builder.DirectiveOperation;
+import com.phocassoftware.graphql.builder.DirectiveOperation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Directive.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Directive.java
similarity index 85%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Directive.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Directive.java
index 7dbd6895..7d07acdd 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Directive.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Directive.java
@@ -9,12 +9,12 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
-import com.fleetpin.graphql.builder.DirectiveCaller;
-import com.fleetpin.graphql.builder.DirectiveOperation;
+import com.phocassoftware.graphql.builder.DirectiveCaller;
+import com.phocassoftware.graphql.builder.DirectiveOperation;
import graphql.introspection.Introspection;
import graphql.schema.DataFetcher;
import graphql.schema.DataFetchingEnvironment;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Entity.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Entity.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Entity.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Entity.java
index 32184cfb..1863829b 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Entity.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Entity.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLCreator.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLCreator.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLCreator.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLCreator.java
index e70af410..84b41ca9 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLCreator.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLCreator.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLDeprecated.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLDeprecated.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLDeprecated.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLDeprecated.java
index 49666f72..e53ad7a1 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLDeprecated.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLDeprecated.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLDescription.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLDescription.java
similarity index 94%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLDescription.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLDescription.java
index ce6c6d7f..7f03f6e1 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLDescription.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLDescription.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLIgnore.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLIgnore.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLIgnore.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLIgnore.java
index e51c4ae5..712ec867 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLIgnore.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLIgnore.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLName.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLName.java
similarity index 94%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLName.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLName.java
index 726f7ee9..ea5a69d5 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/GraphQLName.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/GraphQLName.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Id.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Id.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Id.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Id.java
index c1fe3766..b31e5038 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Id.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Id.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/InnerNullable.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/InnerNullable.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/InnerNullable.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/InnerNullable.java
index 2802df1c..4107cc58 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/InnerNullable.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/InnerNullable.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/InputIgnore.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/InputIgnore.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/InputIgnore.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/InputIgnore.java
index 23362b38..159fc24c 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/InputIgnore.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/InputIgnore.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Mutation.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Mutation.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Mutation.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Mutation.java
index 411e98c7..46b12e0a 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Mutation.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Mutation.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/OneOf.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/OneOf.java
similarity index 94%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/OneOf.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/OneOf.java
index b05736e2..03b97a85 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/OneOf.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/OneOf.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Query.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Query.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Query.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Query.java
index bc5a73bd..0642fa9e 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Query.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Query.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Restrict.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Restrict.java
similarity index 88%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Restrict.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Restrict.java
index b577f50f..3c18c0be 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Restrict.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Restrict.java
@@ -9,11 +9,11 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
-import com.fleetpin.graphql.builder.RestrictTypeFactory;
+import com.phocassoftware.graphql.builder.RestrictTypeFactory;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Restricts.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Restricts.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Restricts.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Restricts.java
index dff1c64e..c09720d2 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Restricts.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Restricts.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Scalar.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Scalar.java
similarity index 94%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Scalar.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Scalar.java
index 39024222..c2ce9718 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Scalar.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Scalar.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/SchemaOption.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/SchemaOption.java
similarity index 91%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/SchemaOption.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/SchemaOption.java
index 391851b2..5c605a34 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/SchemaOption.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/SchemaOption.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
public enum SchemaOption {
INPUT,
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Subscription.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Subscription.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Subscription.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Subscription.java
index f6617054..c51a69ff 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Subscription.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Subscription.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Union.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Union.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Union.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Union.java
index d373c92f..ae525ff2 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/annotations/Union.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/annotations/Union.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.annotations;
+package com.phocassoftware.graphql.builder.annotations;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/exceptions/InvalidOneOfException.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/exceptions/InvalidOneOfException.java
similarity index 71%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/exceptions/InvalidOneOfException.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/exceptions/InvalidOneOfException.java
index e5cbf0e8..d63a64aa 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/exceptions/InvalidOneOfException.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/exceptions/InvalidOneOfException.java
@@ -1,4 +1,4 @@
-package com.fleetpin.graphql.builder.exceptions;
+package com.phocassoftware.graphql.builder.exceptions;
public class InvalidOneOfException extends RuntimeException {
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/ConstructorFieldBuilder.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/ConstructorFieldBuilder.java
similarity index 97%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/ConstructorFieldBuilder.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/ConstructorFieldBuilder.java
index 35670637..40e47652 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/ConstructorFieldBuilder.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/ConstructorFieldBuilder.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.mapper;
+package com.phocassoftware.graphql.builder.mapper;
import graphql.GraphQLContext;
import java.util.ArrayList;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/InputTypeBuilder.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/InputTypeBuilder.java
similarity index 93%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/InputTypeBuilder.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/InputTypeBuilder.java
index 0554a41e..5fe8b12d 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/InputTypeBuilder.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/InputTypeBuilder.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.mapper;
+package com.phocassoftware.graphql.builder.mapper;
import graphql.GraphQLContext;
import java.util.Locale;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/ObjectFieldBuilder.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/ObjectFieldBuilder.java
similarity index 94%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/ObjectFieldBuilder.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/ObjectFieldBuilder.java
index 9fb20d83..1af88f26 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/ObjectFieldBuilder.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/ObjectFieldBuilder.java
@@ -9,10 +9,10 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.mapper;
+package com.phocassoftware.graphql.builder.mapper;
-import com.fleetpin.graphql.builder.EntityProcessor;
-import com.fleetpin.graphql.builder.TypeMeta;
+import com.phocassoftware.graphql.builder.EntityProcessor;
+import com.phocassoftware.graphql.builder.TypeMeta;
import graphql.GraphQLContext;
import graphql.com.google.common.base.Preconditions;
import java.lang.reflect.InvocationTargetException;
diff --git a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/OneOfBuilder.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/OneOfBuilder.java
similarity index 88%
rename from graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/OneOfBuilder.java
rename to graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/OneOfBuilder.java
index 0484dcbb..8192b84f 100644
--- a/graphql-builder/src/main/java/com/fleetpin/graphql/builder/mapper/OneOfBuilder.java
+++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/mapper/OneOfBuilder.java
@@ -9,11 +9,11 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder.mapper;
+package com.phocassoftware.graphql.builder.mapper;
-import com.fleetpin.graphql.builder.EntityProcessor;
-import com.fleetpin.graphql.builder.annotations.OneOf;
-import com.fleetpin.graphql.builder.exceptions.InvalidOneOfException;
+import com.phocassoftware.graphql.builder.EntityProcessor;
+import com.phocassoftware.graphql.builder.annotations.OneOf;
+import com.phocassoftware.graphql.builder.exceptions.InvalidOneOfException;
import graphql.GraphQLContext;
import java.util.HashMap;
import java.util.Locale;
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/AuthorizerTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/AuthorizerTest.java
similarity index 92%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/AuthorizerTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/AuthorizerTest.java
index 11663049..d7461839 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/AuthorizerTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/AuthorizerTest.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
@@ -53,7 +53,7 @@ private ExecutionResult execute(String query) {
}
private ExecutionResult execute(String query, Map variables) {
- GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.fleetpin.graphql.builder.authorizer")).build();
+ GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.phocassoftware.graphql.builder.authorizer")).build();
var input = ExecutionInput.newExecutionInput();
input.query(query);
if (variables != null) {
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/ContextTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ContextTest.java
similarity index 90%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/ContextTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ContextTest.java
index e6e56e65..b14588ba 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/ContextTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ContextTest.java
@@ -9,14 +9,14 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
-import com.fleetpin.graphql.builder.annotations.Context;
-import com.fleetpin.graphql.builder.annotations.Query;
-import com.fleetpin.graphql.builder.context.GraphContext;
+import com.phocassoftware.graphql.builder.annotations.Context;
+import com.phocassoftware.graphql.builder.annotations.Query;
+import com.phocassoftware.graphql.builder.context.GraphContext;
import graphql.ExecutionInput;
import graphql.ExecutionResult;
import graphql.GraphQL;
@@ -68,7 +68,7 @@ public void testMissing() throws ReflectiveOperationException {
private ExecutionResult execute(String query, Consumer modify) {
GraphQL schema = GraphQL
- .newGraphQL(new IntrospectionWithDirectivesSupport().apply(SchemaBuilder.build("com.fleetpin.graphql.builder.context")))
+ .newGraphQL(new IntrospectionWithDirectivesSupport().apply(SchemaBuilder.build("com.phocassoftware.graphql.builder.context")))
.build();
var input = ExecutionInput.newExecutionInput();
input.query(query);
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/DirectiveTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/DirectiveTest.java
similarity index 87%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/DirectiveTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/DirectiveTest.java
index a374f6a2..b888c31e 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/DirectiveTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/DirectiveTest.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.*;
@@ -29,7 +29,7 @@ public class DirectiveTest {
@Test
public void testDirectiveAppliedToQuery() throws ReflectiveOperationException {
- GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.fleetpin.graphql.builder.type.directive")).build();
+ GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.phocassoftware.graphql.builder.type.directive")).build();
var cat = schema.getGraphQLSchema().getFieldDefinition(FieldCoordinates.coordinates(schema.getGraphQLSchema().getQueryType(), "getCat"));
var capture = cat.getAppliedDirective("Capture");
var argument = capture.getArgument("color");
@@ -39,7 +39,7 @@ public void testDirectiveAppliedToQuery() throws ReflectiveOperationException {
@Test
public void testNoArgumentDirective() throws ReflectiveOperationException {
- GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.fleetpin.graphql.builder.type.directive")).build();
+ GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.phocassoftware.graphql.builder.type.directive")).build();
var cat = schema.getGraphQLSchema().getFieldDefinition(FieldCoordinates.coordinates(schema.getGraphQLSchema().getQueryType(), "getUpper"));
var uppercase = cat.getAppliedDirective("Uppercase");
assertNotNull(uppercase);
@@ -48,7 +48,7 @@ public void testNoArgumentDirective() throws ReflectiveOperationException {
@Test
public void testPresentOnSchema() throws ReflectiveOperationException {
- GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.fleetpin.graphql.builder.type.directive")).build();
+ GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.phocassoftware.graphql.builder.type.directive")).build();
var capture = schema.getGraphQLSchema().getSchemaAppliedDirective("Capture");
var argument = capture.getArgument("color");
var color = argument.getValue();
@@ -72,7 +72,7 @@ public void testDirectiveFail() throws ReflectiveOperationException {
@Test
public void testDirectiveArgument() {
- GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.fleetpin.graphql.builder.type.directive")).build();
+ GraphQL schema = GraphQL.newGraphQL(SchemaBuilder.build("com.phocassoftware.graphql.builder.type.directive")).build();
var cat = schema.getGraphQLSchema().getFieldDefinition(FieldCoordinates.coordinates(schema.getGraphQLSchema().getQueryType(), "getNickname"));
var argument = cat.getArgument("nickName");
var directive = argument.getAppliedDirective("Input");
@@ -95,7 +95,7 @@ public void testDirectiveArgumentDefinition() {
}
private ExecutionResult execute(String query, Map variables) {
- GraphQLSchema preSchema = SchemaBuilder.builder().classpath("com.fleetpin.graphql.builder.type.directive").build().build();
+ GraphQLSchema preSchema = SchemaBuilder.builder().classpath("com.phocassoftware.graphql.builder.type.directive").build().build();
GraphQL schema = GraphQL.newGraphQL(new IntrospectionWithDirectivesSupport().apply(preSchema)).build();
var input = ExecutionInput.newExecutionInput();
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/MetaTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/MetaTest.java
similarity index 89%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/MetaTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/MetaTest.java
index 5e939ff4..f9134b01 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/MetaTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/MetaTest.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -21,7 +21,7 @@ public class MetaTest {
@Test
public void testDeprecated() throws ReflectiveOperationException {
- var schema = SchemaBuilder.build("com.fleetpin.graphql.builder.type");
+ var schema = SchemaBuilder.build("com.phocassoftware.graphql.builder.type");
var query = schema.getQueryType().getField("deprecatedTest");
assertTrue(query.isDeprecated());
@@ -35,7 +35,7 @@ public void testDeprecated() throws ReflectiveOperationException {
@Test
public void testDescription() throws ReflectiveOperationException {
- var schema = SchemaBuilder.build("com.fleetpin.graphql.builder.type");
+ var schema = SchemaBuilder.build("com.phocassoftware.graphql.builder.type");
var query = schema.getQueryType().getField("descriptionTest");
assertEquals("returns something", query.getDescription());
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/ParameterParsingTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ParameterParsingTest.java
similarity index 98%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/ParameterParsingTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ParameterParsingTest.java
index a5be89fb..ee413cd1 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/ParameterParsingTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ParameterParsingTest.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -226,7 +226,7 @@ public void testMultipleArgumentsMix3() throws ReflectiveOperationException {
}
private ExecutionResult execute(String query) throws ReflectiveOperationException {
- var schema = GraphQL.newGraphQL(SchemaBuilder.build("com.fleetpin.graphql.builder.parameter")).build();
+ var schema = GraphQL.newGraphQL(SchemaBuilder.build("com.phocassoftware.graphql.builder.parameter")).build();
ExecutionResult result = schema.execute(query);
if (!result.getErrors().isEmpty()) {
throw new RuntimeException(result.getErrors().toString()); //TODO:cleanup
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/ParameterTypeParsingTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ParameterTypeParsingTest.java
similarity index 98%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/ParameterTypeParsingTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ParameterTypeParsingTest.java
index 27e53b91..dedd6796 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/ParameterTypeParsingTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ParameterTypeParsingTest.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -174,7 +174,7 @@ private ExecutionResult execute(String query, String type) throws ReflectiveOper
Map variables = new HashMap<>();
variables.put("type", obj);
- var schema = GraphQL.newGraphQL(SchemaBuilder.build("com.fleetpin.graphql.builder.parameter")).build();
+ var schema = GraphQL.newGraphQL(SchemaBuilder.build("com.phocassoftware.graphql.builder.parameter")).build();
var input = ExecutionInput.newExecutionInput().query(query).variables(variables).build();
ExecutionResult result = schema.execute(input);
if (!result.getErrors().isEmpty()) {
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/PublishRestrictions.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/PublishRestrictions.java
similarity index 87%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/PublishRestrictions.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/PublishRestrictions.java
index 9d137f9d..45c43c08 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/PublishRestrictions.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/PublishRestrictions.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -25,7 +25,7 @@ public class PublishRestrictions {
@Test
public void testOptionalArray() throws ReflectiveOperationException {
- var schema = GraphQL.newGraphQL(SchemaBuilder.build("com.fleetpin.graphql.builder.publishRestrictions")).build();
+ var schema = GraphQL.newGraphQL(SchemaBuilder.build("com.phocassoftware.graphql.builder.publishRestrictions")).build();
var res = schema.execute("subscription {test {value}} ");
Publisher response = res.getData();
assertEquals(0, Flowable.fromPublisher(response).count().blockingGet());
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/RecordTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/RecordTest.java
similarity index 97%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/RecordTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/RecordTest.java
index f077c4d3..4027c940 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/RecordTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/RecordTest.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
@@ -162,7 +162,7 @@ public void testInnerNullableArrayFails() {
}
private ExecutionResult execute(String query, Map variables) {
- GraphQL schema = GraphQL.newGraphQL(new IntrospectionWithDirectivesSupport().apply(SchemaBuilder.build("com.fleetpin.graphql.builder.record"))).build();
+ GraphQL schema = GraphQL.newGraphQL(new IntrospectionWithDirectivesSupport().apply(SchemaBuilder.build("com.phocassoftware.graphql.builder.record"))).build();
var input = ExecutionInput.newExecutionInput();
input.query(query);
if (variables != null) {
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/RenameTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/RenameTest.java
similarity index 94%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/RenameTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/RenameTest.java
index 5133f278..90235d93 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/RenameTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/RenameTest.java
@@ -9,7 +9,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -71,7 +71,7 @@ query passthroughRecord($type: RecordTypeInput!) {
}
private ExecutionResult execute(String query, Map variables) {
- GraphQL schema = GraphQL.newGraphQL(new IntrospectionWithDirectivesSupport().apply(SchemaBuilder.build("com.fleetpin.graphql.builder.rename"))).build();
+ GraphQL schema = GraphQL.newGraphQL(new IntrospectionWithDirectivesSupport().apply(SchemaBuilder.build("com.phocassoftware.graphql.builder.rename"))).build();
var input = ExecutionInput.newExecutionInput();
input.query(query);
if (variables != null) {
diff --git a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/ScalarTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ScalarTest.java
similarity index 91%
rename from graphql-builder/src/test/java/com/fleetpin/graphql/builder/ScalarTest.java
rename to graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ScalarTest.java
index 76bd04eb..f3b1e80a 100644
--- a/graphql-builder/src/test/java/com/fleetpin/graphql/builder/ScalarTest.java
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/ScalarTest.java
@@ -9,12 +9,12 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
-package com.fleetpin.graphql.builder;
+package com.phocassoftware.graphql.builder;
import static org.junit.jupiter.api.Assertions.assertEquals;
-import com.fleetpin.graphql.builder.scalar.Fur;
-import com.fleetpin.graphql.builder.scalar.Shape;
+import com.phocassoftware.graphql.builder.scalar.Fur;
+import com.phocassoftware.graphql.builder.scalar.Shape;
import graphql.ExecutionInput;
import graphql.ExecutionResult;
import graphql.GraphQL;
@@ -98,7 +98,7 @@ private ExecutionResult execute(String query, Map variables) {
GraphQL schema = GraphQL
.newGraphQL(
new IntrospectionWithDirectivesSupport()
- .apply(SchemaBuilder.builder().classpath("com.fleetpin.graphql.builder.scalar").scalar(ExtendedScalars.GraphQLLong).build().build())
+ .apply(SchemaBuilder.builder().classpath("com.phocassoftware.graphql.builder.scalar").scalar(ExtendedScalars.GraphQLLong).build().build())
)
.build();
var input = ExecutionInput.newExecutionInput();
diff --git a/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/TypeGenericEncapsulationParsingTest.java b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/TypeGenericEncapsulationParsingTest.java
new file mode 100644
index 00000000..d3f97a37
--- /dev/null
+++ b/graphql-builder/src/test/java/com/phocassoftware/graphql/builder/TypeGenericEncapsulationParsingTest.java
@@ -0,0 +1,184 @@
+/*
+ * 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
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.phocassoftware.graphql.builder;
+
+import graphql.ExecutionResult;
+import graphql.GraphQL;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+import java.util.List;
+import java.util.Map;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+public class TypeGenericEncapsulationParsingTest {
+ @Test
+ public void testCatName() throws ReflectiveOperationException {
+ var name = getField("Cat", "OBJECT", "name");
+ var nonNull = confirmNonNull(name);
+ confirmString(nonNull);
+ }
+
+ @Test
+ public void testCatFur() throws ReflectiveOperationException {
+ var name = getField("Cat", "OBJECT", "fur");
+ var nonNull = confirmNonNull(name);
+ confirmObject(nonNull, "CatFur");
+ }
+
+ @Test
+ public void testCatFurs() throws ReflectiveOperationException {
+ var name = getField("Cat", "OBJECT", "furs");
+ var type = confirmNonNull(name);
+ type = confirmArray(type);
+ type = confirmNonNull(type);
+ confirmObject(type, "CatFur");
+ }
+
+ @Test
+ public void testDogName() throws ReflectiveOperationException {
+ var name = getField("Dog", "OBJECT", "name");
+ var nonNull = confirmNonNull(name);
+ confirmString(nonNull);
+ }
+
+ @Test
+ public void testDogFur() throws ReflectiveOperationException {
+ var name = getField("Dog", "OBJECT", "fur");
+ var nonNull = confirmNonNull(name);
+ confirmObject(nonNull, "DogFur");
+ }
+
+ @Test
+ public void testDogFurs() throws ReflectiveOperationException {
+ var name = getField("Dog", "OBJECT", "furs");
+ var type = confirmNonNull(name);
+ type = confirmArray(type);
+ type = confirmNonNull(type);
+ confirmObject(type, "DogFur");
+ }
+
+ private void confirmString(Map type) {
+ Assertions.assertEquals("SCALAR", type.get("kind"));
+ Assertions.assertEquals("String", type.get("name"));
+ }
+
+ private void confirmInterface(Map type, String name) {
+ Assertions.assertEquals("INTERFACE", type.get("kind"));
+ Assertions.assertEquals(name, type.get("name"));
+ }
+
+ private void confirmObject(Map type, String name) {
+ Assertions.assertEquals("OBJECT", type.get("kind"));
+ Assertions.assertEquals(name, type.get("name"));
+ }
+
+ private void confirmBoolean(Map type) {
+ Assertions.assertEquals("SCALAR", type.get("kind"));
+ Assertions.assertEquals("Boolean", type.get("name"));
+ }
+
+ private void confirmNumber(Map type) {
+ Assertions.assertEquals("SCALAR", type.get("kind"));
+ Assertions.assertEquals("Int", type.get("name"));
+ }
+
+ private Map confirmNonNull(Map type) {
+ Assertions.assertEquals("NON_NULL", type.get("kind"));
+ var toReturn = (Map) type.get("ofType");
+ Assertions.assertNotNull(toReturn);
+ return toReturn;
+ }
+
+ private Map confirmArray(Map type) {
+ Assertions.assertEquals("LIST", type.get("kind"));
+ var toReturn = (Map) type.get("ofType");
+ Assertions.assertNotNull(toReturn);
+ return toReturn;
+ }
+
+ public Map getField(String typeName, String kind, String name) throws ReflectiveOperationException {
+ Map> response = execute(
+ "{" +
+ " __type(name: \"" +
+ typeName +
+ "\") {" +
+ " name" +
+ " kind" +
+ " fields {" +
+ " name" +
+ " type {" +
+ " name" +
+ " kind" +
+ " ofType {" +
+ " name" +
+ " kind" +
+ " ofType {" +
+ " name" +
+ " kind" +
+ " ofType {" +
+ " name" +
+ " kind" +
+ " }" +
+ " }" +
+ " }" +
+ " }" +
+ " }" +
+ " }" +
+ "} "
+ )
+ .getData();
+ var type = response.get("__type");
+ Assertions.assertEquals(typeName, type.get("name"));
+ Assertions.assertEquals(kind, type.get("kind"));
+
+ List