All Projects → lewis007 → hibernate-table-relationship

lewis007 / hibernate-table-relationship

Licence: Apache-2.0 license
在 Hibernate 中如何配置多表关系映射,包括:一对一、一对多和多对多。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to hibernate-table-relationship

VIAN
No description or website provided.
Stars: ✭ 18 (+20%)
Mutual labels:  annotation
SMMT
Social Media Mining Toolkit (SMMT) main repository
Stars: ✭ 116 (+673.33%)
Mutual labels:  annotation
TransPi
TransPi – a comprehensive TRanscriptome ANalysiS PIpeline for de novo transcriptome assembly
Stars: ✭ 18 (+20%)
Mutual labels:  annotation
greek scansion
Python library for automatic analysis of Ancient Greek hexameter. The algorithm uses linguistic rules and finite-state technology.
Stars: ✭ 16 (+6.67%)
Mutual labels:  annotation
evidenceontology
Evidence & Conclusion Ontology development site: Use ISSUES to request terms. See WIKI for how to request terms. See README for how to cite ECO. Visit our website for more project info.
Stars: ✭ 35 (+133.33%)
Mutual labels:  annotation
labelCloud
A lightweight tool for labeling 3D bounding boxes in point clouds.
Stars: ✭ 264 (+1660%)
Mutual labels:  annotation
dart sealed
Dart and Flutter sealed class generator and annotations, with match methods and other utilities. There is also super_enum compatible API.
Stars: ✭ 16 (+6.67%)
Mutual labels:  annotation
marginalia
javascript implementation of annotations using fragmention
Stars: ✭ 29 (+93.33%)
Mutual labels:  annotation
data-mediator
a data mediator framework bind callbacks for any property
Stars: ✭ 66 (+340%)
Mutual labels:  annotation
EveReader
Epub Reader, focused on annotation.
Stars: ✭ 68 (+353.33%)
Mutual labels:  annotation
KCommando
Annotation-based multifunctional command handler framework for JDA & Javacord.
Stars: ✭ 26 (+73.33%)
Mutual labels:  annotation
Sweet.apex
Next Generation of Apex Development
Stars: ✭ 43 (+186.67%)
Mutual labels:  annotation
shade
Automatic code generation for the SharedPreferences operation.
Stars: ✭ 26 (+73.33%)
Mutual labels:  annotation
bioportal web ui
A Rails application for biological ontologies
Stars: ✭ 20 (+33.33%)
Mutual labels:  annotation
asap
A scalable bacterial genome assembly, annotation and analysis pipeline
Stars: ✭ 47 (+213.33%)
Mutual labels:  annotation
aptk
A toolkit project to enable you to build annotation processors more easily
Stars: ✭ 28 (+86.67%)
Mutual labels:  annotation
image-sorter2
One-click image sorting/labelling script
Stars: ✭ 65 (+333.33%)
Mutual labels:  annotation
trunklucator
Python module for data scientists for quick creating annotation projects.
Stars: ✭ 80 (+433.33%)
Mutual labels:  annotation
immutables-vavr
Immutables encodings for Vavr
Stars: ✭ 32 (+113.33%)
Mutual labels:  annotation
kirby3-many-to-many-field
This plugin allows you to create many-to-many relationships between pages in Kirby and synchronizes them on both sides.
Stars: ✭ 38 (+153.33%)
Mutual labels:  many-to-many

多表关系映射

目录说明

  • simple: 单表操作,通过 Spring Data JPA 进行 CRUD 操作。
  • one-to-one: 一对一
  • one-to-one-shared-pk: 一对一,子表主外键共享
  • one-to-many: 一对多
  • many-to-many: 多对多
  • many-to-many-extra-columns: 多对多,关联表含扩展字段

以上目录,各自独立。

环境约定

  • JDK 1.8
  • Intellij IDEA (Community Edition)
  • Maven 3.6.0
  • Spring Boot 2.1.4.RELEASE
  • Spring Data JPA, H2, Lombok

数据库

当前使用 H2 内存数据库,配置方式如下:

## jpa settings
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.show-sql=true

如需使用实体数据库,可参考如下:

## datasource settings
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.password=demo
spring.datasource.url=jdbc:h2:tcp://127.0.0.1/~/jpa-h2
spring.datasource.username=demo
## jpa settings
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.show-sql=true

如需使用 H2 Web Console 访问数据库,配置如下:

## datasource settings
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.password=demo
spring.datasource.url=jdbc:h2:mem:jpa-h2
spring.datasource.username=demo
## h2 web console settings
spring.h2.console.enabled=true
## jpa settings
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.show-sql=true
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].