Jersey, JAXB and Jackson ignore XmlTransient in 1.4 but honour it in 1.3.5
I simplified this a bit too much to get the stack trace, but if you look at the JSON output from calling localhost:8080/organizations first with the 1.3.5 then with the 1.4.0 you can see that @XmlTransient is not being honored. Just switch the comments on the spring-boot-version property and parent version in the top-level maven pom.xml.
Here’s some SQL to create sample data:
INSERT INTO `sample`.`organizations` (`id`, `name`) VALUES ('a', 'a');
INSERT INTO `sample`.`organizations` (`id`, `name`, `parent_id`) VALUES ('b', 'b', 'a');
INSERT INTO `sample`.`organizations` (`id`, `name`, `parent_id`) VALUES ('c', 'c', 'a');
INSERT INTO `sample`.`organizations` (`id`, `name`, `parent_id`) VALUES ('d', 'd', 'b');
INSERT INTO `sample`.`organizations` (`id`, `name`, `parent_id`) VALUES ('e', 'e', 'c');
Read more here: Source link