Hi,
In Spring Roo is there a way to add a unique key constraint on an entity for 2 fields?
My Inventory entity has the following fields:
How do I add a constraint that sku and warehouse make a unique constraint?Code:public class Inventory { private int quantityOnHand; @ManyToOne private Warehouse warehouse; @NotNull private String sku; }


Reply With Quote
