Persistence layer test
✅ Production code @Repository public interface ProductRepository extends JpaRepository<Product, Long> { /** * select * * from product * where selling_status IN ('SELLING',...
✅ Production code @Repository public interface ProductRepository extends JpaRepository<Product, Long> { /** * select * * from product * where selling_status IN ('SELLING',...
✅ Diagram ✅ Product Entity @Entity @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) public class Product extends BaseEntity { @Id @GeneratedValue(strategy = GenerationType.IDENT...
✅ Bridge decouple abstract and implementation bridge can connect abstract and concrete ✅ Structure bridge Abstraction -----> Implementor | | Refine...
👍🏻 Reusability of existing code can reuse existing code without having to modify it, thanks to a new adapter 👉🏻 OC principle One class does one thing, adapter class does the adapter work ...
✅ C:/ProgramFiles, c:/ProgramFiles x86 for storing applications if lower than 4GB, x86 ⚠️ you cannot delete the files manually ❌ you need to use CCleaner tool : piriform.com/ccleaner ...
✅ In windows official webpage choose the version 11, 10, 8.1, 7… rename the iso with details 👀 Wwindows1164b22H2 ✅ Choose descargar do not click on update actualizar ahora you will ...
Loose coupling OC principle default in interface 🛠️ When to use factory When you want to create several types of smth with different values give the creation role to a factory 👀 Yo...
✅ Layered Architecutre in Spring ❓ why use layered architecture? separation of concerns to organize code by responsitbility Presentation Layer Controller: handles HTTP request &am...
✅ TDD red blue green 🔴 first create the test code //test code @DisplayName("Calculate the total price of beverages in order") @Test void getTotalPrice() { //give...
✅ / root directory: origin of the tree root user are not the same! ✅ Level 0 / means root, origin of the tree kernel root directory all mean the same ✅ Level 1 all have ...