[EN] Default values, references & collections 💻💡

Опубликовано: 26 Апрель 2026
на канале: OpenXava
2,761
26

In this third OpenXava lesson we will finish to create all the entities required for our project, including Invoice, we will learn how to calculate default values, how to make regular references and how to create collections of dependent objects.

We will use:
📌 @DefaultValueCalculator
📌 @PropertyValue
📌 @ManyToOne
📌 @ElementCollection
📌 @ListProperties

🔎 Explore the openxava.calculators package to see other useful built-in calculators: https://www.openxava.org/OpenXavaDoc/...

🔎 Dig deeper into JPA: https://www.openxava.org/OpenXavaDoc/...

👩‍💻 Shortcut for autocomplete recommendation: Ctrl + Space.