Alternative video format (mpg)
It is good to have a natural business key, which is used for equals and hashCode. The name of the Planet is a candidate. Let us add some properties for the population and diameter of the Planet also. Hibernate validator is supported and validations can be defined directly in the model, e.g. min="0".
We add the Moon Entity and its association to Planet.
Build and start Jetty. The changes are immediately reflected in the generated CRUD GUI.
The DSL and the code generation drives the development and is not a one time shot. The application can be developed incrementally with an efficient round trip loop.