Hi,
I'm trying to create a unique constraint. Here is a simple example:
@Entity public class Account { @Id @GeneratedValue private long id; @Index(unique="true") private String name; }
The code runs and my Account objects are persisted. But no exception is thrown if name is the same.
What do I need to do to have a Unique constraint?
Thanks,
Carl