diff --git a/spring-jms/src/com/baeldung/spring/jms/Employee.java b/spring-jms/src/com/baeldung/spring/jms/Employee.java index 8b45607b38..a0346c4291 100644 --- a/spring-jms/src/com/baeldung/spring/jms/Employee.java +++ b/spring-jms/src/com/baeldung/spring/jms/Employee.java @@ -3,17 +3,21 @@ package com.baeldung.spring.jms; public class Employee { private String name; private Integer age; + public Employee(String name, Integer age) { - this.name = name; - this.age = age; + this.name = name; + this.age = age; } + public String getName() { - return name; + return name; } + public Integer getAge() { - return age; + return age; } + public String toString() { - return "Person: name(" + name + "), age(" + age + ")"; + return "Person: name(" + name + "), age(" + age + ")"; } }