Ah, like this?
@Table(name="municipality" uniqueConstraints = {_at_UniqueConstraint(columnNames = {"district_id", "name"})})
/Mattias
> Hi,
>
> Just add UNIQUE index on Municipality (district_id,
> name) in database.
>
> -
> Aleksandras Novikovas
>
[Message sent by forum member 'nightzero' (nightzero)]
http://forums.java.net/jive/thread.jspa?messageID=337794