Examples of NaturalId


Examples of org.hibernate.annotations.NaturalId

    // Natural ID columns must reside in one single UniqueKey within the Table.
    // For now, simply ensure consistent naming.
    // TODO: AFAIK, there really isn't a reason for these UKs to be created
    // on the secondPass.  This whole area should go away...
    NaturalId naturalIdAnn = property.getAnnotation( NaturalId.class );
    if ( naturalIdAnn != null ) {
      if ( joinColumns != null ) {
        for ( Ejb3Column column : joinColumns ) {
          String keyName = "UK_" + Constraint.hashedName( column.getTable().getName() + "_NaturalID" );
          column.addUniqueKey( keyName, inSecondPass );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.