Skip to content

One to Many and Many to One JPA Mapping sample with Spring Boot and H2 DB

License

Notifications You must be signed in to change notification settings

sairaghavak/otm-and-mto-jpa-mapping-with-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1-Many and Many-1 JPA Mapping With Spring Boot

  • Here is the list of important components in this SpringBoot Application.

    • Entities

      • Invoice
      • InvoiceLine
    • Repository Interfaces

      • InvoiceRepository
      • InvoiceLineRepository
    • Tables

      • invoice
      • invoice_line
  • This sample application demonstrates the bi-directional assocaition between Invoice and InvoiceLine entities using JPA annitations @OneToMany and @ManyToOne.

  • Also it throws some light on usage of CascadeType.ALL, orhpanRemoval=true, and FetchType.EAGER

About

One to Many and Many to One JPA Mapping sample with Spring Boot and H2 DB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages