Giter VIP home page Giter VIP logo

spring-boot-eclipselink's Introduction

Spring Data JPA + EclipseLink: Configuring Spring-Boot to use EclipseLink as the JPA provider

Source code for tutorial published on https://blog.marcnuri.com/spring-data-jpa-eclipselink-configuring-spring-boot-to-use-eclipselink-as-the-jpa-provider/

Simple Spring Boot application that uses EclipseLink as the JPA provider (see CustomJpaConfiguraton).

To run the application:

$ ./gradlew bootRun

Once the application is running you can test the provided endpoints:

$ curl -s localhost:8080/mounts | jq
[
  {
    "id": "E08A6EFD-E208-42BC-83CC-0AFE5408783F",
    "alias": "everest",
    "name": "Mount Everest"
  },
  {
    "id": "30CAB297-B27A-4D79-BF04-EEF9ACA09EB8",
    "alias": "k2",
    "name": "K2"
  },
  {
    "id": "DADB5D54-54E3-4AFD-A1CC-E563FCE34678",
    "alias": "aitana",
    "name": "Aitana"
  }
]
$ curl -s localhost:8080/climbers | jq
[
  {
    "id": "12EED719-7A08-4620-9ADF-7A1FD233FFD1",
    "name": "Alex",
    "climbedMounts": [
      {
        "id": "E08A6EFD-E208-42BC-83CC-0AFE5408783F",
        "alias": "everest",
        "name": "Mount Everest"
      },
      {
        "id": "DADB5D54-54E3-4AFD-A1CC-E563FCE34678",
        "alias": "aitana",
        "name": "Aitana"
      }
    ],
    "phoneNumbers": [
      {
        "id": "043772AA-495C-412B-AFC4-6BF3F918C756",
        "number": "+00 123 45 78"
      }
    ]
  },
  {
    "id": "114970D3-67F0-41EF-B328-CAA7B5EEA5C9",
    "name": "Charles",
    "climbedMounts": [
      {
        "id": "30CAB297-B27A-4D79-BF04-EEF9ACA09EB8",
        "alias": "k2",
        "name": "K2"
      },
      {
        "id": "E08A6EFD-E208-42BC-83CC-0AFE5408783F",
        "alias": "everest",
        "name": "Mount Everest"
      }
    ],
    "phoneNumbers": [
      {
        "id": "3E90D601-F2FE-4B6D-883C-A53DB6005AC6",
        "number": "+11 555 13 37"
      }
    ]
  },
  {
    "id": "E37222EF-6FF9-452D-AACF-E8C8E306C8B1",
    "name": "Julia",
    "climbedMounts": [
      {
        "id": "30CAB297-B27A-4D79-BF04-EEF9ACA09EB8",
        "alias": "k2",
        "name": "K2"
      },
      {
        "id": "E08A6EFD-E208-42BC-83CC-0AFE5408783F",
        "alias": "everest",
        "name": "Mount Everest"
      }
    ],
    "phoneNumbers": []
  }
]

spring-boot-eclipselink's People

Contributors

manusa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.