Created
May 29, 2015 07:36
-
-
Save ivanursul/20fb1feb423e5fd244a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Order { | |
| private Long id; | |
| private List<OrderProduct> products; | |
| } | |
| public class OrderProduct { | |
| private Long id; | |
| private Order order; | |
| } | |
| Order o = new Order(); | |
| o.setproducts(...); | |
| ObjectMapper om = new ObjectMapper(); | |
| om.writeFieldsAsString(o) : | |
| 1)Почне серіалізувати ордер сутність, дойде до продуктів | |
| 2)Почне серіалізувати Продукти, знайде там Ордер, почне серіалізувати ордер | |
| .... | |
| Цтикл |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment