org.hibernate.cfg
Class UniqueConstraintHolder

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

public class UniqueConstraintHolder
extends java.lang.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
 java.lang.String[] getColumns()
           
 java.lang.String getName()
           
 UniqueConstraintHolder setColumns(java.lang.String[] columns)
           
 UniqueConstraintHolder setName(java.lang.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 java.lang.String getName()

setName

public UniqueConstraintHolder setName(java.lang.String name)

getColumns

public java.lang.String[] getColumns()

setColumns

public UniqueConstraintHolder setColumns(java.lang.String[] columns)


Copyright © 2013. All Rights Reserved.