package ${package}.domain.model;

import org.seedstack.business.domain.BaseAggregateRoot;

{% if persistence.type == "jpaHibernate" %}
import javax.persistence.Entity;
import javax.persistence.Id;
{% endif %}

{% if persistence.type == "jpaHibernate" %}
@Entity
{% endif %}
public class Aggregate1 extends BaseAggregateRoot<String> {
    {% if persistence.type == "jpaHibernate" %}
    @Id
    {% endif %}
    private String id;

    public Aggregate1(String id) {
        this.id = id;
    }

    @Override
    public String getId() {
        return id;
    }
}

@@ -24,16 +24,27 @@
 in.model
+.aggregate1
 ;%0A%0Aimpor
@@ -338,20 +338,16 @@
 ring%3E %7B%0A
-    
 %7B%25 if pe
@@ -390,20 +390,16 @@
     @Id%0A
-    
 %7B%25 endif
@@ -426,16 +426,50 @@
 ng id;%0A%0A
+    private Aggregate1() %7B%0A    %7D%0A%0A
     publ

Fix aggregate1 sample