How gavinklfong/stream-api-exercises works
Main Components
a) Application Layer:
• Inside this container, create three main sections:
• Models (Customer, Order, Product)
• Repositories (CustomerRepo, OrderRepo, ProductRepo)
• Stream API Test Components
b) Database Layer:
• H2 In-Memory Database
• Table relationships matching the data model
• Auto-initialization process (data.sql, table_script.ddl)
Specific Elements
a) Models Section:
• Models |
• Customer |
• Order |
• Product |
b) Repository Layer:
• Repositories |
• CustomerRepo |
• OrderRepo |
• ProductRepo |
c) Test Component:
• Stream API Tests |
• 15 Exercises |
Additional Details
• A note about Lombok integration
• Data initialization flow during startup
• Relationship cardinality between models (1-to-many relationships)