To initialize or not initialize JPA relationship mappings?
JPA itself doesn’t care whether the collection is initialized or not. When retrieving an Order from the database with JPA, JPA will always return an Order with a non-null list of OrderLines. Why: because an Order can have 0, 1 or N lines, and that is best modeled with an empty, one-sized or N-sized collection. … Read more