60532004d698df67f7867d030868da78439241d1
[JavaForFun] /
1 package de.example.spring.kafka;
2
3 public class Product {
4         private String name;
5         private String description;
6         
7         /**
8          * Required for deserialization from Jackson.
9          */
10         protected Product() {
11
12         }
13
14         public Product(String name, String description) {
15                 this.name = name;
16                 this.description = description;
17         }
18
19         public String getName() {
20                 return this.name;
21         }
22         
23         public String getDescription() {
24                 return this.description;
25         }
26 }