JDeveloper Mapping Workbench - Create Table References?

How can I create a Table Reference in JDeveloper's Mapping Workbench?
For example, I have ITEM and ITEM_DETAILS tables. The DB does not have a FK defined from ITEM_DETAILS and ITEM. So I need to create the Toplink Table Reference myself.
In the standalone Toplink Workbench I see how to do this.
In JDeveloper 10.1.3.1 mapper UI I don't see how this is done.

You can edit the offline DB objects stored in your JDeveloper project to add the FK constraints not on the database.
If you also use these table definitions to re-generate the schema there is a check-box in the lower left of the FK panel that allows you to specify that a FK constraint is for offline purposes only. You can still select it in TopLink but it will not be re-generated onto the database.
Doug

Similar Messages

  • Problems setting "table reference" for TopLink relationships

    I'm trying to use TopLink to create Java objects over two tables that are linked in a many-to-many relationship. I followed the instructions on the 10g tutorial page (drag all three tables into a database diagram), then created a new field (of type Collection) in each of the tables that I'm joining. I then set them both to be many-to-many, and tried to configure the first one. On the general tab, I've set the 'Reference Descriptor' to point to the other table. I've set the 'Relation Table' to point to the associative entity, and disabled indirection.
    When I go to the 'Source Reference' tab, there's nothing in the 'Table Reference' dropdown, and there's no button to create anywhere I can find on that screen. From what I've found looking at old TopLink documentation online, there were new, add, and remove buttons off to the right on older versions of TopLink.
    What do I have to do in this version to create a table reference I can use for the join?
    If I run the 'mapping status report' for the object I'm working with (persons), I get the following:
    Mapping persons -> Table reference is invalid because of the target table chosen.
    Mapping persons -> No table reference is selected.
    Mapping persons -> No source reference is selected.
    Mapping persons -> No target reference is selected.
    I don't really know enough about TopLink to know if these error messages are pointing at something other than the fact that I can't get a table reference to show up or not.
    I'm using the JDeveloper 10g preview (build 1375).
    Thanks in advance for any ideas you might have,
    Jonathan

    I'm trying to use TopLink to create Java objects over two tables that are linked in a many-to-many relationship. I followed the instructions on the 10g tutorial page (drag all three tables into a database diagram), then created a new field (of type Collection) in each of the tables that I'm joining. I then set them both to be many-to-many, and tried to configure the first one. On the general tab, I've set the 'Reference Descriptor' to point to the other table. I've set the 'Relation Table' to point to the associative entity, and disabled indirection.
    When I go to the 'Source Reference' tab, there's nothing in the 'Table Reference' dropdown, and there's no button to create anywhere I can find on that screen. From what I've found looking at old TopLink documentation online, there were new, add, and remove buttons off to the right on older versions of TopLink.
    What do I have to do in this version to create a table reference I can use for the join?
    If I run the 'mapping status report' for the object I'm working with (persons), I get the following:
    Mapping persons -> Table reference is invalid because of the target table chosen.
    Mapping persons -> No table reference is selected.
    Mapping persons -> No source reference is selected.
    Mapping persons -> No target reference is selected.
    I don't really know enough about TopLink to know if these error messages are pointing at something other than the fact that I can't get a table reference to show up or not.
    I'm using the JDeveloper 10g preview (build 1375).
    Thanks in advance for any ideas you might have,
    Jonathan

  • Oracle TopLink 10g Introductory Tutorial: No Table Reference available

    Hi,
    I'm trying to work through the Oracle TopLink 10g Introductory Tutorial (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm).
    At the point 'Map the Java Classes: Create One-to-One Mappings' (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm) I'm not able to select a table reference because there is no one available.
    As result i get the following message after generating 'Mapping Status Report':
    TopLink Map 'tut01Map' -> One of the packages is incomplete.
    Package example.model -> One of the descriptors in this package is incomplete.
    Descriptor Employee -> Some mappings are incomplete.
    Mapping address -> No table reference is selected.
    Mapping address -> Table reference is invalid because of the target table chosen.
    Mapping version -> Mapping references write lock field stored in cache, but is not read-only.
    Mapping phoneNumbers -> No table reference is selected.
    Mapping phoneNumbers -> Table reference is invalid because of the target table chosen.
    Descriptor PhoneNumber -> Some mappings are incomplete.
    Descriptor PhoneNumber -> The following primary key fields are unmapped: EMP_ID
    Descriptor PhoneNumber -> The following primary key fields have no writable mappings: EMP_ID
    Mapping owner -> No table reference is selected.
    Mapping owner -> Table reference is invalid because of the target table chosen.
    End TopLink Map 'tut01Map'
    Did I make a mistake or is there a wrong configuration? Please help.
    I'm using:
    JDeveloper 10.1.3.2.0
    MySQL 5.0.33 with Connector/J 5.0.5
    Windows XP
    Thanks, TGau
    Message was edited by:
    TGau
    Update

    Yes I did. But my database storage engine is set to MyISAM which don't support foreign keys. So this 'error' results from database configuration (Info: InnoDB do support foreign keys).
    I'm wondering why the queries didn't throw any errors. So the foreign key/reference part was just skipped.
    Thank you very much, rsapir.
    PS:
    How can I configure configure 'application side' references/associations? It is described in the TopLink Developers Guide on site 34-10 ... but I have no Add/New Buttons?

  • Mapping Workbench & JDeveloper

    I am having significant problems working with both the Toplink Mapping Workbench 10g (9.0.4.2 build 040311) and JDeveloper 10g (Version 9.0.5.2 build 1618) on the same project.
    For instance, I created an empty Toplink-enabled Project in JDeveloper. Closed JD and opened the .mwp project from the Workbench. Created some CMP 2.0 Entity EJBs and exported the model java source. Closed WB in order to open JD and add the ejb-jar.xml file to the project, but JB now errored on the .mwp project file. This seems such a basic incompatibility that I’m wondering whether I’m not using the tools the way they are intended.
    What is the recommended way of working with Toplink and JDeveloper? I know that some of the workbench functionality is available within JD, but there seemed to be things that I couldn’t do without the workbench (e.g. export model java source)
    I’d appreciate any advice anyone can give me

    Matthew,
    Switching between the workbench and JDeveloper is not supported at this time. You can however, import a workbench project in JDeveloper by performing manual steps. Please look at the JDeveloper release notes for that information.
    Exporting model java source is not available in JDeveloper since you will always be working with your .java to begin with.
    To get yourself started quickly, you can use POJO from tables (TopLink) wizard in JDeveloper.

  • Error while creating Cross-reference table using Xreftool (PIP Ins)

    Error while running xref.sh script unable to create cross reference table.
    **Error: Exception in thread "main" java.lang.NoClassDefFoundError: oracle/tip/xref/tool/AdminTool**
    Could not find xref directory within tip folder (/OracleAS_1/bpel/docs/workflow/oracle/tip)
    searched for similar issue in OTN it says issue fixed by upgrading Oracle AS, we are using 10.1.3.4 MLR#8
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=835446
    steps followed.
    Creating Cross-Reference Tables
    Complete the following procedure to create cross-reference tables.
    To create cross-reference tables
    1 Navigate to the following directory:
    %SOAHOME%/SiebelODOPPIP/scripts/
    2 Open the following file for editing:
    xref.sh
    3 Set the userid and passwd for logging into BPEL console on the appropriate lines.
    4 Set the correct SOA_HOME location on the appropriate line.
    5 Save and close the file.
    6 Make the file executeable:
    chmod +x xref.sh
    dos2unix xref.sh
    7 Change directory (cd) to integration/esb/bin under %SOAHOME%.
    8 Execute ../../../SiebelODOPPIP/scripts/xref.sh.
    I am using SOA suite 10.1.3.3 and getting same error
    Error: Exception in thread "main" java.lang.NoClassDefFoundError: oracle/tip/xref/tool/AdminTool

    Hi Abhijeet,
    please check in transaction FI01, about your data consistencies. You can use this wiki help in terms of Address, it it found any useful facts for you
    Address Checks - Business Address Services (BC-SRV-ADR) - SAP Library

  • How to differentiate the Purch Orders created with reference to in table

    Hi all
      how to differentiate the Purch Orders which are created with reference to Purch requsitions, contract, manual by copying inforecord in the table EKKO/EKPO? Is there any Field Indicators?
    Rgds
    Ramesh

    Hi Ramesh,
    Go through  EKPO there is a Table BANFN it will update when you create a PO with reference to PR
    Do se11 > Table EKPO> CtrlShiftF10 > Assign any of PO no. in the EBELN > Execute > you will find BANFN table
    it indicates Purchase Requisition Number. it will update when you create PO with reference to PR.
    Regards,
    Vraj

  • How to create table view with reference table

    Hi experts,
    How to create table view with reference table in SE11, plz gve me stp by stp procedure.
    pints grnded for hlp.

    Hi
    Go to Tcode se11 choose view and enter the name and create a popup opens up choose database view option
    enter the description
    On the left hand side choose the table name.
    Click on view fields tab and choose your table fields.Here you can choose which fields you want in your view.
    Save and then activate.
    Hope this helps.
    Regards,
    Harish

  • How to reference already created tables?

    I just started with Oracle and I created 5 tables. On two of the tables i created the references but I never clicked ADD, so they were not added. How can I link the tables after they are already created?

    You want to add primary and foreign key. There is alot of articles with how to do this.
    The basic solution is:
    ALTER TABLE table_name
    add CONSTRAINT constraint_name
    FOREIGN KEY (column1, column2, ... column_n)
    REFERENCES parent_table (column1, column2, ... column_n);

  • Auto-creating tables with CMP Explicit Mapping

    Hello.
    I am trying to migrate a working CMP EJB Jar from Weblogic to OC4J, using the admin.jar deploy utility. I believe my orion-ejb-jar.xml deployment descriptor (shown at the bottom) is set up properly, but OC4J attempts to auto-create tables for my entity beans anyway. (see messages that follow).
    Can anybody tell me why it tries to create these tables? Is something missing from my deployment descriptor?
    Thanks,
    David
    Auto-creating table: create table User_passwords_Passwor__fqeml6 (User_SEC_USER.
    SEC_USER_ID NUMBER not null, Password_SEC_USER_PASSWORD_ID NUMBER null)
    Error creating table: ORA-01748: only simple column names allowed here
    Auto-creating table: create table User_userRoles_UserRol__guatbv (User_SEC_USER.
    SEC_USER_ID NUMBER not null, UserRole_SEC_USER_ROLE_ID NUMBER null)
    Error creating table: ORA-01748: only simple column names allowed here
    Auto-creating table: create table Permission_RolePermiss__768cc0 (Permission_SEC
    FUNCTIONID NUMBER not null, RolePermission_SEC_ROLE_FUNCTION_ID NUMBER null)
    Error creating table: ORA-00972: identifier is too long
    Auto-creating table: create table Role_UserRole_role_User_39lzhp (Role_SEC_ROLE.
    SEC_ROLE_ID NUMBER not null, UserRole_SEC_USER_ROLE_ID NUMBER null)
    Error creating table: ORA-01748: only simple column names allowed here
    Auto-creating table: create table Role_rolePermissions_Ro_4ocmz1 (Role_SEC_ROLE.
    SEC_ROLE_ID NUMBER not null, RolePermission_SEC_ROLE_FUNCTION_ID NUMBER null)
    Error creating table: ORA-01748: only simple column names allowed here
    orion-ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar deployment-version="9.0.3.0.0" deployment-time="e6e55808e4">
    <enterprise-beans>
    <session-deployment name="SecurityComponent" >
    </session-deployment>
    <session-deployment name="ServerSecurityContext" >
    </session-deployment>
    <session-deployment name="SecurityComponentSecurityFilter" >
    </session-deployment>
    <entity-deployment name="User" table="SEC_USER" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="userId" persistence-name="SEC_USER.SEC_USER_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="partyId" persistence-name="PARTY_ID" />
    <cmp-field-mapping name="officeLocation" persistence-name="OFFICE_LOCATION" />
    <cmp-field-mapping name="defaultLocation" persistence-name="DEFAULT_LOCATION" />
    <cmp-field-mapping name="districtVvid" persistence-name="DISTRICT_VVID" />
    <cmp-field-mapping name="userName" persistence-name="SEC_USER.USER_NAME" />
    <cmp-field-mapping name="accountActivationDate" persistence-name="SEC_USER.ACCOUNT_ACTIVATION_DATE" />
    <cmp-field-mapping name="defaultBranchVvid" persistence-name="SEC_USER.DEFAULT_BRANCH_VVID" />
    <cmp-field-mapping name="unitVvid" persistence-name="UNIT_VVID" />
    <cmp-field-mapping name="sectionVvid" persistence-name="SEC_USER.SECTION_VVID" />
    <cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
    <cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
    <cmp-field-mapping name="failedLoginAttempts" persistence-name="SEC_USER.LOGIN_ATTEMPTS_CNT" />
    </entity-deployment>
    <entity-deployment name="Permission" table="SEC_FUNCTION" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="permisssionId" persistence-name="SEC_FUNCTION_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="permission" persistence-name="FUNCTION_NAME" />
    </entity-deployment>
    <entity-deployment name="Role" table="SEC_ROLE" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="roleId" persistence-name="SEC_ROLE.SEC_ROLE_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
    <cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
    <cmp-field-mapping name="roleDescription" persistence-name="SEC_ROLE.ROLE_DESC" />
    <cmp-field-mapping name="roleName" persistence-name="SEC_ROLE.ROLE_NAME" />
    </entity-deployment>
    <entity-deployment name="Password" table="SEC_USER_PASSWORD" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="passwordId" persistence-name="SEC_USER_PASSWORD_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="password" persistence-name="PASSWORD" />
    <cmp-field-mapping name="activeInd" persistence-name="ACTIVE_IND" />
    <cmp-field-mapping name="expirationDate" persistence-name="EXPIRATION_DATE" />
    <cmp-field-mapping name="userId" persistence-name="SEC_USER_ID" />
    <cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
    <cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
    </entity-deployment>
    <entity-deployment name="UserRole" table="SEC_USER_ROLE" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="userRoleId" persistence-name="SEC_USER_ROLE_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="sequenceNum" persistence-name="SEQUENCE_NUM" />
    <cmp-field-mapping name="userId" persistence-name="SEC_USER_ID" />
    <cmp-field-mapping name="roleId" persistence-name="SEC_ROLE_ID" />
    </entity-deployment>
    <entity-deployment name="RolePermission" table="SEC_ROLE_FUNCTION" data-source="datasource-ecmsOraclePool">
    <primkey-mapping>
    <cmp-field-mapping name="roleFunctionId" persistence-name="SEC_ROLE_FUNCTION_ID" />
    </primkey-mapping>
    <cmp-field-mapping name="functionId" persistence-name="SEC_FUNCTION_ID" />
    <cmp-field-mapping name="roleId" persistence-name="SEC_ROLE_ID" />
    <cmp-field-mapping name="sequenceNum" persistence-name="SEQUENCE_NUM" />
    </entity-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    </assembly-descriptor>
    </orion-ejb-jar>

    Hi David,
    The "autocreate-tables" attribute is defined in the DTD for the "orion-application.xml" file. This file is usually generated automatically by OC4J, from your application's "application.xml" file when you deploy your application. (Note that subsequent [re-]deployments of your application will not change the "orion-application.xml" file.)
    The default value for this attribute is 'true', and the default is defined in the "application.xml" file that is located in the "j2ee/home/config" subdirectory of the OC4J installation.
    Hope this answers your question.
    Good Luck,
    Avi.

  • Creating tables through Jdeveloper

    Hi,
    I believe the following is the way to create a database table in Jdeveloper 10g and Oracle BPEL process Manager 10.1.3.1.0
    1.Created bpel project--> right click project ---> create schema---> right click schema---> create table(completed the wizard and created schema and table)
    2.Right click schema ---> new---> database tier---> offline database objects ----> SQL generated from offline database objects(and then complete the wizard)
    If the above is the correct approach to create the table, then I am facing two situations.
    a. In the project properties(offline database), if the 'database to emulate' is set to oracle lite 10g release 1, then "SQL generated from offline database objects" option is not enabled to choose in the step 2 above. So I cannot proceed further.
    b. If the 'database to emulate' is set to oracle database 10g release 2 (this is default), "SQL generated from offline database objects" in step 2 is enabled, but in the wizard that follows, when I tick 'perform operation against the database' it asks me for oracle database connection settings. But I only have the Oracle 10g Lite version and not Oracle database 10g. So I am not able proceed further.
    All I need is to create tables in the Oracle Lite database that I have.
    Any help on this issue will be greatly appreciated.
    -Sagar

    Generally, you create a sequence and a trigger for a particular table. The trigger is called on
    each insert which then calls on the sequence to get the next increment in the progression. You can create both of these entities in JDeveloper through our SQL interface. However, you will find more features in SQLDeveloper including the ability to generate triggers.
    http://www.oracle.com/technology/software/products/sql/index.html

  • Create table with references pointing to values in a different schema

    Experts,
    Is it possible to create table in one schema with references pointing to column values in a different schema?
    Say, I have 2 schemas A and B
    A has employee table and and B has dept table, I want to run the below alter statement, will this work?
    ALTER TABLE A.EMP ADD (
    FOREIGN KEY (DEPT_ID)
    REFERENCES B.DEPT (DEPT_ID));
    I know there is no sense in doing this, still would like to know for making some temporary workaround.
    Regards,
    Sarvan
    Edited by: sarvan on Oct 21, 2011 12:30 AM

    Yes this is possible with right privilege:
    SQL> grant connect, resource to a identified by a;
    Grant succeeded.
    SQL> grant connect, resource to b identified by b;
    Grant succeeded.
    SQL> connect b/b
    Connected.
    SQL> create table p (x int primary key);
    Table created.
    SQL> grant references on p to a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> create table c (y int);
    Table created.
    SQL> alter table c add foreign key (y) references b.p(x);
    Table altered.

  • What is the pin map for chip select on LM3S8962 for "ARM SPI Create Configuration Reference.vi" ? (0 through n)

    Hello All,
    When the LM3S8962 is the master, what pin is used when chip
    select is the default (0), or another value ?
    Despite this question being asked a few ways in the forums,
    NI's "ARM SPI Create Configuration Reference.vi" documentation
    for chip select is unclear.
    TI's manual is no help for NI's implementation of chip select.
    NI's help for the above subvi seems not only too generic (perhaps
    written for the SDK ?),  but erroneous in that it reads:
    "chip select specifies the chip select line to assert during the
    SPI transfer. The chip select line must connect to the EEPROM
    on the
    microcontroller. Refer to the documentation for the SPI
    device for information
    about chip select lines."
    This is useless as the ARM microcontroller has no EEPROM and 
    the SPI slave device documentation only covers its own pins.
    The hope is to have more than one slave on the LM3S8962's single SPI bus,
    without chewing up a additional pin using elemental I/O like the splendid forum
    examples for ADC's and DAC's.  This would save diagram real estate compared
    with two sequence frames that are typically shown toggling a elemental I/O digital
    output before and after writing and/or reading from the slave.   It also would clarify
    what on chip resource trade offs there are for each chip select number chosen.
    (as most pins have multiple possible functions)
    Thanks in advance for any light on this.   Please don't post info on other processors
    to this thread as this taints future searches on this issue with this tier 1 target.
    Best,
    Davy

    Hi Davy,
    While doing research on this question, I was informed that you have been working with a colleague of mine, Joel, via email for this same question. So that we do not have multiple engineers working on the same issue, Joel will be your point of contact for this issue. I ask that when you have come to a resolution, that you post that resolution here so that other customers can reference this information.
    Thanks!
    Aaron P
    National Instruments
    Applications Engineer
    http://www.ni.com/support

  • Can't create table - using JDeveloper 11g (11.1.1.3.0)

    I am running a DDL to create a table:
    CREATE TABLE HORSE
    HORSE_NAME VARCHAR2(30) NOT NULL
    , PLACE VARCHAR2(20)
    , RACE_NAME VARCHAR2(30)
    , RACE_DATE DATE
    , CONSTRAINT HORSE_PK PRIMARY KEY
    HORSE_NAME
    ENABLE
    The message I get is:
    Error at Command Line:48 Column:13
    Error report:
    SQL Error: ORA-02264: name already used by an existing constraint
    02264. 00000 - "name already used by an existing constraint"
    *Cause:    The specified constraint name has to be unique.
    *Action:   Specify a unique constraint name for the constraint.
    This suggests to me that I should change the name to something else, like HORSE_ID. Whilst I don't agree that HORSE_NAME is used in another constraint I have changed the name but it doesn't make a scrap of difference.
    There is another parallel table called HORSES (plural) but but other examples ( eg PUNTER/PUNTERS) have been happily created.
    I would be grateful for any suggestions.
    Thanks,
    Jim

    The message is not specifically about the HORSE_NAME - it is more likely about the table name.
    You probably already have another database object called Horse (maybe not a table but it could be a view or a procedure).
    Try a different name for the table.

  • Mapping Workbench - HOWTO

    I'm very new to Top Link and currently trying to implement Top Link in one use case of our application, instead of the existing DB persistence mechanism. I'm having some difficulties with some of the mappings in the workbench. I'd appreciate it if someone gets some time to answer any of my questions.
    1. Currently there are some database columns with CHAR type and contains "Y" or "N" values and in the Java code from the resultset we map them to some Boolean attribute. Do you have any examples of how to do that in the mapping workbench?
    2. And also some of the database column has integer values ("0", "1") and in the Java code from the resultset we build an enumerated type object based on the value which is an attribute to another class. How do I achieve this kind of behavior in mapping workbench?
    Or do you think rather than trying to somehow implement this, we should rather clean up the domain classes or table structure a little bit, so we have better mapping capabilities? For example make the column Boolean and read it in the Java Boolean attribute. And for the enumerated type, create a separate enumerated type table and have the main table reference that table for enumerated type and map it that way.
    Thanks in advance.

    I'm very new to Top Link and currently trying to implement Top Link in one use case of our application, instead of the existing DB persistence mechanism. I'm having some difficulties with some of the mappings in the workbench. I'd appreciate it if someone gets some time to answer any of my questions.
    1. Currently there are some database columns with CHAR type and contains "Y" or "N" values and in the Java code from the resultset we map them to some Boolean attribute. Do you have any examples of how to do that in the mapping workbench?
    2. And also some of the database column has integer values ("0", "1") and in the Java code from the resultset we build an enumerated type object based on the value which is an attribute to another class. How do I achieve this kind of behavior in mapping workbench?
    Or do you think rather than trying to somehow implement this, we should rather clean up the domain classes or table structure a little bit, so we have better mapping capabilities? For example make the column Boolean and read it in the Java Boolean attribute. And for the enumerated type, create a separate enumerated type table and have the main table reference that table for enumerated type and map it that way.
    Thanks in advance.

  • Mapping Suggestions 3 table join

    I have 3 existing tables which can't be changed:
    Table A
    A_ID
    B_FK
    A_DATE
    Table B
    B_ID
    C_FK
    Table C
    C_ID
    C_DATE
    C_VALUE
    MyClass needs:
    A_ID
    A_DATE
    C_VALUE
    where
    A_DATE = C_DATE
    C_ID = C_FK
    B_ID = B_FK
    The SQL is easy, but how do I map it in Toplink. If I use multi table info I can only define a single table reference for each table.
    Any suggestions?
    Simon

    Don
    Thanks for your reply.
    I already had two classes A/BClass with a one to one to CClass but I still couldn't create the FK relationships I wanted in the Mapping Workbench. In the end I took a simple view and just simply added the FK relationships directly as below:
    OneToOneMapping cMapping = new OneToOneMapping();
    cMapping.setAttributeName("c");
    cMapping.setReferenceClass(com.syncron.model.CStuff.class);
    I re-structured the foreign key set up as if it were SQL
    cMapping.addForeignKeyFieldName("TABLE_B.C_FK", "TABLE_C.C_ID");
    cMapping.addForeignKeyFieldName("TABLE_A.A_DATE", "TABLE_C.C_DATE");
    descriptor.addMapping(cMapping);
    This solution was fine, its just a shame the Workbench can't hold this relationship, as in the data model I'm looking at it seems to be a common problem. Maybe a suggestion for the future?
    Thanks again.
    Simon

Maybe you are looking for

  • Can't install Windows 8.1 on Macbook Pro (mid 2012) after installing/removing refit

    So I recently installed and removed rEFit on my macbook (I was trying to clone a windows install to the drive to keep it handy, and thought I'd need it to boot from the install), and haven't been able to get Windows 8.1 (x64) to install since -- I ke

  • Some bugs in Zen MX

    I bought the Zen Mx in January of this year. My player contains the last firmware version published: .02.04. The Zen Mx don?t play? music folders correctly. I maked some music? folder in the Music Imported folder. The playing mode is normal. I power/

  • Mapping Issue - Urgent

    Source <source> <Record> <Date>5/15/2008</Date> <DocType>ZL</DocType> <CompCode>1010</CompCode> <GL_Account>21300119</GL_Account> <Amount>14,357.83</Amount> </Record> <Date>5/5/2008</Date> <DocType>ZL</DocType> <CompCode>1020</CompCode> <GL_Account>2

  • Retriving the data from the database

    HI Hello Experts                        I have to retreve the data from atleast 10 different tables which are co-releated to each other by DocEntry field ,i have designed the query accordingly i need a single output but i am getting multiple rows in

  • Settings of audit_syslog_level

    Hello, I have a technical question concerning the setting of parameter audit_syslog_level: we are recommended to audit events err, crit, alert and emerg. But in parameter audit_syslog_level I can only define one combination, for example: audit_syslog