Giter Site home page Giter Site logo

springboot-data-jdbc_demo's Introduction

目的

  • 示例分层结构
  • 示例如何使用 data-jdbc 实现 repository

核心要点

  • 持久层使用 data-jdbc

导读

  • account
    • 一个简单实体,来表现 CrudRepository 的简便之处
    • @Query 自定义查询
    • @Modifying + @Query 更新语句
  • product, 使用底层接口
    • 在主键有值时如何 insert
  • legoset
    1. 关联关系, one2one 和 one2many
    2. 怎么处理非持久化字段
    3. 决定持久化访问 属性 还是 字段
    4. 通过提供响应的构造方法或 with 方法让持久化设置应用不能设置的字段
    5. 自定义转化器
    6. 实体事件
    7. 查询结果转化成自定义类型
  • common 公共包
    • 公共的保存实体的方法 insert
    • 统一的应答类型
    • 统一的 Controller 异常处理

springboot-data-jdbc_demo's People

Contributors

yoogodong avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

hlstar

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.