Code Monkey home page Code Monkey logo

kotlin-spring-jpa-examples's Introduction

kotlin-spring-jpa-examples

  • playground for kotlin + spring-boot + bean-validation + jpa + hibernate + querydsl
  • realworld examples (just a little simplified): check api.realestate

status:

  • its an active playground ,therefore in progress ...

requirements

  • postgres

create an example db

$ make db.local.create 

additional resources

bean validation

findings

hibernate:

  • if you have to use if for whatever reason, check the logs ;) ...

hibernate: immutable data class as @Entity

  • in jpa/hibernate context it gets proxied by cglib & bean validation works
  • entity.copy() -> triggers init() method, if there is one

hibernate: auditing

  • Auditing classes (Listeners) are no spring beans
  • @inject will not work out-of-the-box
  • thefore its pretty useless

jetbrains gradle plugin:

querydsl: is awesome :)

elasticsearch

  • https://www.mkyong.com/spring-boot/spring-boot-spring-data-elasticsearch-example/
  • spring-data-elasticsearch: dependency hell:
    • boot 1.5.* with spring-data-elasticsearch does not work with es 5.5
    • es 5.5 requires spring-data-elasticsearch 2.* (boot 2.*)
    • using es transportclient (native protocol) is not recommended by es
    • es recommends using rest-api - which is aware of future versions of es
    • es is currently working on a high level restapi client that should make things easy
    • most cloud providers (hosted-es-as-a-service) just allow using rest api
    • several issues related to jackson-json serialization (e.g.: supports JodaTime but not Java 8 Time Api out-of-the-box)

kotlin-spring-jpa-examples's People

Contributors

bastman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.