0
votes

Is there any way to init a empty object, even if all values are null?

@Embeddable
public class Address {
    private String street;
    private String postalCode;
    private String city;
}

@Entity
public class Person {
  @Embedded
  private final Address home = new Address();
}