Package org.apache.torque.map

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


              tMap.addPrimaryKey("security_allow.ID", new Long(0));
                    tMap.addColumn("security_allow.ALLOW_TYPE", new String());
                    tMap.addColumn("security_allow.ALLOW_VALUE", new String());
                    tMap.addColumn("security_allow.ALLOW_GROUP", new String());
                    tMap.addForeignKey(
                "security_allow.ACCESS_ID", new Long(0) , "security_access" ,
                "ID");
          }
}
View Full Code Here


                    tMap.addColumn("portlet_parameter.CACHED_ON_VALUE", new Integer(0));
                    tMap.addColumn("portlet_parameter.CACHED_ON_NAME", new Integer(0));
                    tMap.addColumn("portlet_parameter.TITLE", new String());
                    tMap.addColumn("portlet_parameter.DESCRIPTION", new String());
                    tMap.addColumn("portlet_parameter.IMAGE", new String());
                    tMap.addForeignKey(
                "portlet_parameter.PORTLET_ID", new Long(0) , "portlet" ,
                "ID");
                    tMap.addColumn("portlet_parameter.SECURITY", new String());
          }
}
View Full Code Here

        tMap.setPrimaryKeyMethodInfo("security_access_SEQ");

              tMap.addPrimaryKey("security_access.ID", new Long(0));
                    tMap.addColumn("security_access.ACTION", new String());
                    tMap.addForeignKey(
                "security_access.ENTRY_ID", new Long(0) , "security_entry" ,
                "ID");
          }
}
View Full Code Here

        tMap.setPrimaryKeyMethodInfo("portlet_mediatype_SEQ");

              tMap.addPrimaryKey("portlet_mediatype.ID", new Long(0));
                    tMap.addColumn("portlet_mediatype.NAME", new String());
                    tMap.addForeignKey(
                "portlet_mediatype.PORTLET_ID", new Long(0) , "portlet" ,
                "ID");
          }
}
View Full Code Here

        tMap.setPrimaryKeyMethodInfo("portlet_category_SEQ");

              tMap.addPrimaryKey("portlet_category.ID", new Long(0));
                    tMap.addColumn("portlet_category.NAME", new String());
                    tMap.addColumn("portlet_category.GROUPE", new String());
                    tMap.addForeignKey(
                "portlet_category.PORTLET_ID", new Long(0) , "portlet" ,
                "ID");
          }
}
View Full Code Here

        tMap.setPrimaryKeyMethod(TableMap.NATIVE);

        tMap.setPrimaryKeyMethodInfo("PORTLET_MEDIATYPE");

              tMap.addForeignKey(
                "PORTLET_MEDIATYPE.ID", new Long(0) , "PORTLET" ,
                "ID");
                    tMap.addForeignKey(
                "PORTLET_MEDIATYPE.MEDIA_ID", new Long(0) , "MEDIATYPE" ,
                "ID");
View Full Code Here

        tMap.setPrimaryKeyMethodInfo("PORTLET_MEDIATYPE");

              tMap.addForeignKey(
                "PORTLET_MEDIATYPE.ID", new Long(0) , "PORTLET" ,
                "ID");
                    tMap.addForeignKey(
                "PORTLET_MEDIATYPE.MEDIA_ID", new Long(0) , "MEDIATYPE" ,
                "ID");
          }
}
View Full Code Here

        tMap.setPrimaryKeyMethodInfo("CATEGORY");

              tMap.addPrimaryKey("CATEGORY.ID", new Long(0));
                    tMap.addColumn("CATEGORY.NAME", new String());
                    tMap.addColumn("CATEGORY.GROUPE", new String());
                    tMap.addForeignKey(
                "CATEGORY.OWNER", new Long(0) , "PORTLET" ,
                "ID");
          }
}
View Full Code Here

                    tMap.addColumn("PORTLET_PARAMETER.CACHEDONVALUE", new Integer(0));
                    tMap.addColumn("PORTLET_PARAMETER.CACHEDONNAME", new Integer(0));
                    tMap.addColumn("PORTLET_PARAMETER.TITLE", new String());
                    tMap.addColumn("PORTLET_PARAMETER.DESCRIPTION", new String());
                    tMap.addColumn("PORTLET_PARAMETER.IMAGE", new String());
                    tMap.addForeignKey(
                "PORTLET_PARAMETER.PORTLET_ID", new Long(0) , "PORTLET" ,
                "ID");
                    tMap.addColumn("PORTLET_PARAMETER.SECURITY", new String());
          }
}
View Full Code Here

                                                        tMap.addColumn("DOUTBOX_EVENT.CLOSED_DATE", new Date());
                                                        tMap.addColumn("DOUTBOX_EVENT.SENT_TIME", new Date());
                                                        tMap.addColumn("DOUTBOX_EVENT.EVENT_CHANNEL", new Integer(0));
                                                        tMap.addColumn("DOUTBOX_EVENT.EVENT_TYPE", new Integer(0));
                                                        tMap.addColumn("DOUTBOX_EVENT.EMAIL_FORMAT", new Integer(0));
                                                        tMap.addForeignKey(
                "DOUTBOX_EVENT.DISTRIBUTOR_ID", new Integer(0) , "DISTRIBUTOR" ,
                    "DISTRIBUTOR_ID");
                                                        tMap.addForeignKey(
                "DOUTBOX_EVENT.PROJECT_ID", new Integer(0) , "PROJECT" ,
                    "PROJECT_ID");
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.