spring-devops / txn-spring-petclinic

0 stars 0 forks source link

Refactor Object Saves to external class #51

Closed spring-devops closed 4 years ago

spring-devops commented 4 years ago

The process of manually adding the pets in the Initializr points to an issue where coding or other errors can creep in and cause headaches when trying to enhance (or troubleshoot if something goes wrong). An example is the Pet to Owner relationship that should not have to be typed or iterated and then saved each time explicitly as it is being done in the Initializr. The owner save should automatically save the included pet and also create a new the pet type if it did not exist etc.