Package org.hibernate.mapping

Examples of org.hibernate.mapping.ForeignKey.addColumn()


      dropSQL.add(table.sqlDropString(dia, null, null) );
     
      if(lastTable!=null) {
        ForeignKey fk = new ForeignKey();
        fk.setName(col.getName() + lastTable.getName() + table.getName() );
        fk.addColumn(col);
        fk.setTable(table);
        fk.setReferencedTable(lastTable);
        createSQL.add(fk.sqlCreateString( dia, map, null,null) );             
        dropSQL.add(0,fk.sqlDropString( dia, null,null) );
      }
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.