I just tried to generate PetClinic project again with latest xoom 1.5.3-SNAPSHOT version and I found this. In this example, PetEntity::register method constructing new PetState object and passing it to PetRegistered event and PetRegistered event object deconstructing it. Instead, PetEntity can just pass values directly to PetRegistered event.

I just tried to generate

PetClinicproject again with latestxoom1.5.3-SNAPSHOTversion and I found this. In this example,PetEntity::registermethod constructing newPetStateobject and passing it toPetRegisteredevent andPetRegisteredevent object deconstructing it. Instead,PetEntitycan just pass values directly toPetRegisteredevent.