DSL notation for unique constraint

14 views
Skip to first unread message

henh...@gmail.com

unread,
Nov 16, 2014, 11:48:57 AM11/16/14
to sculptor...@googlegroups.com
Hello,


I want to have a unique constraint on a domain attribute.
   The generated Java code should look like this:
   ...
   @Column(name="USERNAME", unique="true")
   String username;
   ...
  
   How should the appropriate DSL notation looks like?

Regards,
Henry


Reply all
Reply to author
Forward
0 new messages