GithubHelp home page GithubHelp logo

timtebeek / graphql-jpa-spring-boot-starter Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 12.0 34 KB

Spring Boot starter for GraphQL JPA; Expose JPA entities with GraphQL.

License: MIT License

Java 80.30% HTML 19.70%

graphql-jpa-spring-boot-starter's Introduction

Staff software engineer who enjoys working with and contributing to Open Source such as OpenRewrite, Maven, Spring and ArchUnit. When not at work you'll find me traveling, bouldering, snowboarding, mountainbiking or at one of many cultural events around my home town or abroad.

Employee Spotlight | Meet Tim te Beek

Talks & workshops

Occasionally I get to present at conferences & meetups. Here's an overview of recent talks and workshops.

Featured

Live streams

Podcasts

Blog posts

Mentions

graphql-jpa-spring-boot-starter's People

Contributors

timtebeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

graphql-jpa-spring-boot-starter's Issues

Multiple exceptions when requesting int type

When I try to use this schema:

{
  User(id:3){
    name,
   	email
  }
}

and this entity:

@Entity
public class User {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    int id;

    String name;
    String email;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public User(String name, String email,int followers) {
        this.name = name;
        this.email = email;
        this.followers=followers;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                '}';

    }

    public User() {
    }
}

I receive multiple exceptions, but when id is String everything works fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.