项目作者: sanogotech

项目描述 :
JAVA, Spring MVC, Spring Boot, JPA
高级语言: HTML
项目地址: git://github.com/sanogotech/OLDarchijavajeespringboot.git
创建时间: 2019-08-22T11:49:47Z
项目社区:https://github.com/sanogotech/OLDarchijavajeespringboot

开源协议:

下载


Sample Code

Maven Cycle

when you run a Maven goal, it will run any previous goal. The order of basic phases is:

  1. - Validate
  2. - Compile
  3. - Test
  4. - Package
  5. - Verify
  6. - Install
  7. - Deploy

Based on official documentation:

TEST - test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed

VERIFY - run any checks on results of integration tests to ensure quality criteria are met

To run unit tests, the Surefire plugin is recommended. And Failsafe for integration tests.

Bootstrap Theme

JPA One to Many

https://www.baeldung.com/hibernate-one-to-many

  • Spring Data JPA find by embedded object property — Booking|User
    1. List<Booking> findByUser_username(String username);

https://www.logicbig.com/tutorials/spring-framework/spring-data/nested-properties-resolution.html

  1. List<Employee> findByDeptartementName(String deptName);
  2. List<Employee> findByDeptartement_name(String deptName);

JPA One Many + REST API

https://netsurfingzone.com/hibernate/one-to-many-mapping-annotation-example-in-hibernate-jpa-using-spring-boot-and-oracle/

Spring DATA JPA FindBy—-

C:\b2b\com\steve\util\
C:\b2b\com\steve\app\
C:\b2b\com\steve\gui\

  • javadoc -d “C:\docs” -sourcepath “C:\b2b” -subpackages com

  • javadoc -d “C:\projectjee\projetdegestionsdestocks\docs\MyJavaDocs” -sourcepath “C:\projectjee\projetdegestionsdestocks\src\main\java” -subpackages comjavadoc -d “C:\projectjee\projetdegestionsdestocks\docs\MyJavaDocs” -sourcepath “C:\projectjee\projetdegestionsdestocks\src\main\java” -subpackages com

* Test en Mode DEV

  1. mvn spring-boot:run

  2. http://localhost:8088

user/pwd : admin@test.com / admin2017

  1. http://localhost:8088/h2web

url : jdbc:h2:mem:contactmanager
user: sa
pwd:

Pour voir la base en mémoire.

** Spring DATA REST

—— HIBERNATE Performance Tips Sample:
*https://dzone.com/articles/50-best-performance-practices-for-hibernate-5-amp