wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes UniqueConstraint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "UniqueConstraint" Watch "UniqueConstraint" New topic
Author

UniqueConstraint

Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
HeadFirst [surl='http://www.coderanch.com/forums/f-11/EJB-JEE' class='api' title='the JavaRanch JEE forum wrote:EJB[/surl] 3.0 Book]The @Table.UniqueConstraint attribute allows you to specify unique column constraint.


JPA Specs- (9.1.4) wrote:The UniqueConstraint annotation is used to specify that a unique constraint is to be included in the generated DDL for a primary or secondary table.


But I didn't understand what is this "unique column constraint"


Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

It allows to generate unique constraints in the DDL. Unique constraints are explained here. (I don't think this kind of annotation is at the exam, but who knows...)


[My Blog]
All roads lead to JavaRanch
Treimin Clark
Ranch Hand

Joined: Nov 12, 2008
Posts: 757
Christophe Verré wrote:It allows to generate unique constraints in the DDL. Unique constraints are explained here. (I don't think this kind of annotation is at the exam, but who knows...)


Thanks Christophe
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: UniqueConstraint
 
Similar Threads
trigger to check if a row can be inserted or not
@Table Annotation
Why is Hibernate creating a unique constraint when I don't want one?
Not-unique unique column
Tomcat Server StartUp Failed