SKU
A stock keeping unit: a retailer's own code that identifies one product variant it sells or stores.
In more detail
Unlike a global barcode number, an SKU is chosen by each business, so it is just a string with rules the business defines. The same product can have different SKUs at different companies.
Examples
WID-7 in the course's catalog examples@NotBlank String sku in the course's CreateOrder request.@NotBlank String skuRelated terms
- value equality — Treating two objects as equal when their members hold equal values, even if they are separate objects.
- Jakarta Validation — The Jakarta standard for declaring input rules as annotations on fields, such as @NotBlank and @Positive, and checking them automatically.
- entity — A thing in an application's domain with its own identity, such as a user, account or product, usually stored in a database.
- DTO — A plain object whose only job is to carry data across a boundary, such as the body of an API request or response.
Taught in
- The C# Language: Types, Variables, and Flow Control — Modern .NET Core, C# & Enterprise Microservices
- Classes, Interfaces, and Object-Oriented C# — Modern .NET Core, C# & Enterprise Microservices
- Validation — Modern Java: Virtual Threads & High-Throughput Services
- Core Utilities: Partial, Required, Readonly, Pick And Omit — Production TypeScript