My current use case is as follows (simplified as in issue description):
public interface Update extends Default {}
public class MyBean { @NotNull(groups = {Update.class}) private Long id; // other fields with default validation }
Usage in service:
public interface MyBeanService { MyBean create(@NotNull @Valid MyBean circleAreaData); MyBean update(@NotNull @Valid @ConvertGroup(from = Default.class, to = Update.class) MyBean mybean); }
If it's not clear from the code, the idea is to ignore the id field in create method and require it in update method.