org.hibernate.cfg
Class UniqueConstraintHolder

java.lang.Object
  extended by org.hibernate.cfg.UniqueConstraintHolder

public class UniqueConstraintHolder
extends Object

UniqueConstraint annotations are handled via second pass. I do not understand the reasons why at this time, so here I use a holder object to hold the information needed to create the unique constraint. The ability to name it is new, and so the code used to simply keep this as a String array (the column names).

Author:
Steve Ebersole

Constructor Summary
UniqueConstraintHolder()
           
 
Method Summary
 String[] getColumns()
           
 String getName()
           
 UniqueConstraintHolder setColumns(String[] columns)
           
 UniqueConstraintHolder setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueConstraintHolder

public UniqueConstraintHolder()
Method Detail

getName

public String getName()

setName

public UniqueConstraintHolder setName(String name)

getColumns

public String[] getColumns()

setColumns

public UniqueConstraintHolder setColumns(String[] columns)


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.