Can we achieve @NotNull constraint gets executed only if it is enabled to execute in DB
public class Vehicle { @NotNull //supposed to execute only if config