Package org.apache.torque.map

Examples of org.apache.torque.map.TableMap.addForeignKey()


                                                        tMap.addColumn("DINBOX_EVENT.RECEIVED_TIME", new Date());
                                                        tMap.addColumn("DINBOX_EVENT.SENT_TIME", new Date());
                                                        tMap.addColumn("DINBOX_EVENT.EVENT_CHANNEL", new Integer(0));
                                                        tMap.addColumn("DINBOX_EVENT.EVENT_TYPE", new Integer(0));
                                                        tMap.addColumn("DINBOX_EVENT.EMAIL_FORMAT", new Integer(0));
                                                        tMap.addForeignKey(
                "DINBOX_EVENT.DISTRIBUTOR_ID", new Integer(0) , "DISTRIBUTOR" ,
                    "DISTRIBUTOR_ID");
                                                        tMap.addForeignKey(
                "DINBOX_EVENT.PROJECT_ID", new Integer(0) , "PROJECT" ,
                    "PROJECT_ID");
View Full Code Here


                                                        tMap.addColumn("DINBOX_EVENT.EVENT_TYPE", new Integer(0));
                                                        tMap.addColumn("DINBOX_EVENT.EMAIL_FORMAT", new Integer(0));
                                                        tMap.addForeignKey(
                "DINBOX_EVENT.DISTRIBUTOR_ID", new Integer(0) , "DISTRIBUTOR" ,
                    "DISTRIBUTOR_ID");
                                                        tMap.addForeignKey(
                "DINBOX_EVENT.PROJECT_ID", new Integer(0) , "PROJECT" ,
                    "PROJECT_ID");
                                                        tMap.addForeignKey(
                "DINBOX_EVENT.PRODUCT_ID", new Integer(0) , "PRODUCT" ,
                    "PRODUCT_ID");
View Full Code Here

                "DINBOX_EVENT.DISTRIBUTOR_ID", new Integer(0) , "DISTRIBUTOR" ,
                    "DISTRIBUTOR_ID");
                                                        tMap.addForeignKey(
                "DINBOX_EVENT.PROJECT_ID", new Integer(0) , "PROJECT" ,
                    "PROJECT_ID");
                                                        tMap.addForeignKey(
                "DINBOX_EVENT.PRODUCT_ID", new Integer(0) , "PRODUCT" ,
                    "PRODUCT_ID");
                                                        tMap.addColumn("DINBOX_EVENT.SENDER", new String());
                                                        tMap.addColumn("DINBOX_EVENT.SUBJECT", new String());
                                                        tMap.addColumn("DINBOX_EVENT.BODY", new String());
View Full Code Here

                                                        tMap.addColumn("DORDER.STATUS", new Integer(0));
                                                        tMap.addColumn("DORDER.ISSUED_DATE", new Date());
                                                        tMap.addColumn("DORDER.SALES_DATE", new Date());
                                                        tMap.addColumn("DORDER.EXPECTED_TIME", new Date());
                                                        tMap.addColumn("DORDER.CLOSED_DATE", new Date());
                                                        tMap.addForeignKey(
                "DORDER.DISTRIBUTOR_ID", new Integer(0) , "DISTRIBUTOR" ,
                    "DISTRIBUTOR_ID");
                                                        tMap.addForeignKey(
                "DORDER.DCONTRACT_ID", new Integer(0) , "DCONTRACT" ,
                    "DCONTRACT_ID");
View Full Code Here

                                                        tMap.addColumn("DORDER.EXPECTED_TIME", new Date());
                                                        tMap.addColumn("DORDER.CLOSED_DATE", new Date());
                                                        tMap.addForeignKey(
                "DORDER.DISTRIBUTOR_ID", new Integer(0) , "DISTRIBUTOR" ,
                    "DISTRIBUTOR_ID");
                                                        tMap.addForeignKey(
                "DORDER.DCONTRACT_ID", new Integer(0) , "DCONTRACT" ,
                    "DCONTRACT_ID");
                                                        tMap.addForeignKey(
                "DORDER.PROJECT_ID", new Integer(0) , "PROJECT" ,
                    "PROJECT_ID");
View Full Code Here

                "DORDER.DISTRIBUTOR_ID", new Integer(0) , "DISTRIBUTOR" ,
                    "DISTRIBUTOR_ID");
                                                        tMap.addForeignKey(
                "DORDER.DCONTRACT_ID", new Integer(0) , "DCONTRACT" ,
                    "DCONTRACT_ID");
                                                        tMap.addForeignKey(
                "DORDER.PROJECT_ID", new Integer(0) , "PROJECT" ,
                    "PROJECT_ID");
                                                        tMap.addForeignKey(
                "DORDER.PRODUCT_ID", new Integer(0) , "PRODUCT" ,
                    "PRODUCT_ID");
View Full Code Here

                "DORDER.DCONTRACT_ID", new Integer(0) , "DCONTRACT" ,
                    "DCONTRACT_ID");
                                                        tMap.addForeignKey(
                "DORDER.PROJECT_ID", new Integer(0) , "PROJECT" ,
                    "PROJECT_ID");
                                                        tMap.addForeignKey(
                "DORDER.PRODUCT_ID", new Integer(0) , "PRODUCT" ,
                    "PRODUCT_ID");
                                                        tMap.addColumn("DORDER.DESCRIPTION", new String());
                                                        tMap.addColumn("DORDER.UNIT_PRICE", new Double(0));
                                                        tMap.addColumn("DORDER.UNIT_WEIGHT", new Double(0));
View Full Code Here

                tMap.setPrimaryKeyMethod(TableMap.NATIVE);
       
                tMap.setPrimaryKeyMethodInfo("DCONTRACT_ITEM_SEQ");
       
                                      tMap.addPrimaryKey("DCONTRACT_ITEM.DCONTRACT_ITEM_ID", new Integer(0));
                                                        tMap.addForeignKey(
                "DCONTRACT_ITEM.DCONTRACT_ID", new Integer(0) , "DCONTRACT" ,
                    "DCONTRACT_ID");
                                                        tMap.addForeignKey(
                "DCONTRACT_ITEM.COST_TYPE_ID", new Integer(0) , "COST_TYPE" ,
                    "COST_TYPE_ID");
View Full Code Here

       
                                      tMap.addPrimaryKey("DCONTRACT_ITEM.DCONTRACT_ITEM_ID", new Integer(0));
                                                        tMap.addForeignKey(
                "DCONTRACT_ITEM.DCONTRACT_ID", new Integer(0) , "DCONTRACT" ,
                    "DCONTRACT_ID");
                                                        tMap.addForeignKey(
                "DCONTRACT_ITEM.COST_TYPE_ID", new Integer(0) , "COST_TYPE" ,
                    "COST_TYPE_ID");
                                                        tMap.addColumn("DCONTRACT_ITEM.COST_FUNCTION", new Integer(0));
                                                        tMap.addColumn("DCONTRACT_ITEM.COST_AMOUNT", new BigDecimal(0));
                              }
View Full Code Here

                tMap.setPrimaryKeyMethod(TableMap.NATIVE);
       
                tMap.setPrimaryKeyMethodInfo("SALES_DISTRICT_SEQ");
       
                                      tMap.addPrimaryKey("SALES_DISTRICT.SALES_DISTRICT_ID", new Integer(0));
                                                        tMap.addForeignKey(
                "SALES_DISTRICT.SALES_AREA_ID", new Integer(0) , "SALES_AREA" ,
                    "SALES_AREA_ID");
                                                        tMap.addColumn("SALES_DISTRICT.SALES_DISTRICT_NAME", new String());
                              }
}
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.