Where to set Mapped Primary Table

I am using sunOne studio 4 update 1, EE.
I have created a schema by doing New->Database->Database Schema, all OK.
I have then created related ejbs by doing New->J2EE->Related CMP Entity EJBs, all OK.
Now I want to view the mapping information so
I look at the CMP bean entry properties under the EJB module but I see no mapping information in Sun ONE AS Mappings tab. !!!
When I try to edit the protected field I get warning indicating that bean must have a valid Mapped primary table. It tells me to set a Mapped Primary Table in the main properties sheet for this bean.
My problem is I can not find this sheet
Please help before I go crazy
Thanks in advance
Tex...

OK I know where to set these fields now.
It is set in the Sun ONE AS tab pane.
However, here comes the next problem.
The Wizard generated schema does not recognise the primary key fields so I can not map CMP to any table :-)
I think this is a bug because I have generated schemas from 3 different databases (IBM, MySWL, SAP) and the tables have primary key fields.
When I get a connection in Runtime Pane under Database node, I can see the primary fields are highlighted with red color.
However, when I obtain the schema using, New->Database->Database Schema, there are no key fields generated.
Anyone have any ideas, work around?
Thanks
Tex...

Similar Messages

  • How to map primary table for CMP?

    I am using the SunONE studio EE and trying to deploy a CMP Entity bean and get the following error:
    Validation failed for board.ejb.user.UserBean. Verify that all fields are mapped.
    CMP Mapping Error in bean User:: Warning: The bean pcImpl0.moduleComp0.board.ejb.user.User is not mapped.
    Set the primary table for the bean.
    I have the CMP resou4rce set to the JNDI name of my database connection but I can't figure out hpw to set the primary table for the bean. Any help would be apprecieated.

    You will need to do the mapping via the UI available on the bean (in the context of the module).
    If you expand the ejb-module, you can select a bean that is in that module.
    There are two SunONE App Server specific tabs added to the property sheet for a vselected CMP bean.
    Entering data for these properties will do the mapping and resolve the error you are encountering.
    Note: The current implementation does not conjure up tables for the entity beans (unlike the RI).

  • Multi-table mapping is not inserting into the primary table first.

    I have an inheritance mapping where the children are mapped to the parent table oids with the "Multi-Table Info" tab.
    One of children is not inserting properly. Its insert is attempting to insert into one of the tables from the "Additional Tables" of "Multi-Table Info" instead of the primary table that it is mapped to.
    The other children insert correctly. This child is not much different from those.
    I looked through the forums, but found nothing similiar.

    I would expect the Children to be inserted into both the primary table and the Additional Table? Is the object in question inserted into the primary table at all? Is the problem that it is being inserted into the Additional Table first? If it is, are the primary key names different? Is it a foreign key relationship?
    If the object in question has no fields in the additional table is it mapped to the additional table? (it should not be)
    Perhaps providing the deployment XML will help determine the problem,
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to copy FDM setting (import format, dimension mapping, control table)

    Dear All,
    How to copy FDM setting (import format, dimension mapping, control table) from application to another application.
    I found that only dimension mapping can be imported. Is there any way to copy FDM application quickly?
    Thanks your help

    If you get a chance try the following script, it's so simple and easy to extract all the map data to XML and will help in to import back through Import script.
    Sub MapExtractor()
    'UpStream WebLink Custom Script:
    'Created By:      SatyaK
    'Date Created:      12/08/09
    'Purpose: This Script will produce a Account Map File for
    '                         the current location.
    'Execute the export
    strFilePath = API.IntBlockMgr.InterfaceMgr.fExportMapToXML("File Path", PPOVPeriod)
    End Sub
    -------------

  • In table TCURC set the primary flag

    Hello,
    I am trying to do a RSCRM_BAPI download and am getting an error in the job log "For the ISO code there is no unique SAP currency code for ALE".  The procedure says to set the primary flag for ISO codes used multiple times in the TCURC table.  I have looked at the table and indeed there are two entries for the ISO code USD.  One is a currency USD and the other is USDN for Internal United States Dollar.  Has anyone seen this before or adjusted this table for this problem.   Seems to me that USD should be the the primary ISO code but i am reluctant to make the change without knowing the implication.
    TMS

    Hi Ted,
    Please check OSS note 605208 - RSCRM - Restrictions.
    "The OLAP processor delivers the RSCRM the SAP currency code. The RSCRM has to convert this code to the ISO code. Therefore the table TCURC has to be maintained correctly. If an ISO code appears several time in the ISOCD column, exactly one line should have set the XPRIMARY flag to 'X' for this ISO code. Otherwise a warning is thrown. But it should work also with this warning. The warning is just annoying."
    Hope this helps...

  • How to do hibernate mapping for table or view without a primary key

    Hi,
    Anyone knows how to do hibernate mapping for table or view without a primary key?
    thanks.
    cc

    or you can make all column primary key .Anybody seriously considering that as a good idea should understand the implications:
    1. this requires that each row be unique - that's a minor issue normally, but can be a significant problem in some cases
    2. in practically all databases, a primary key constraint creates a unique index - this has many implications:
    a) in most databases, the index stores a copy of the column data that is indexed - this suggestion therefore more than doubles the data storage required for the data
    b) whenever an indexed column is changed, the index has to be maintained - this suggestion then more than doubles the work that each UPDATE statement has to do, since both the table and the index have to be maintained for any UPDATE at all
    This might work OK for toy projects, but it doesn't scale well at all...

  • Embedded mapping (one table - two classes)

    I any using ebedded fileds (one table but two related classes like company-adress example in Developer Guide):
    <class name="StyleCoreImpl" detachable="true">
                   <field name="createdBy">
                        <embedded null-indicator-column="CREATEDBY_USER">
    <field name="date" column="CREATEDBY_DATE"/>
                        </embedded>
                   </field>
         </class>
    <class name="MadeByStatusImpl" detachable="true">
         <field name="date"/>
         <field name="user"/>
    </class>
    but get at runtime an error "No table was given for persistent type":
    <4|true|4.0.0> kodo.util.MetaDataException: No table was given for persistent type "com.ottogroup.buying.b2b.assortmentprep.domain.object.style.impl.MadeByStatusImpl".
         at kodo.jdbc.meta.MappingInfo.createTable(MappingInfo.java:479)
         at kodo.jdbc.meta.ClassMappingInfo.getTable(ClassMappingInfo.java:215)
         at kodo.jdbc.meta.strats.FullClassStrategy.map(FullClassStrategy.java:52)
         at kodo.jdbc.meta.ClassMapping.setStrategy(ClassMapping.java:349)
    Question:
    How should we map an embedded class which does not have any table in DB ?
    thanks
    Andre Teshler

    Hi Abe, we have following problem with proposed solution:
    Two embedded instances of the same type pointing to the sametarget
    · Problem
    We have an entity that holds date and user of creation and date and user of last change. The
    information is encapsulated in a state object which is mapped as an embedded object. The table
    holds both dates and the ids of the user. The user information is held in a separate user table. If
    we load the entity, the entity table is only joined once against the user table, even if the user ids for
    create and lastchange are different. In consequence, the user objects of the created and
    lastchange state are always the same.
    Question:
    Why is the fact that t0.createdby_user may differ from t0.lasteditedby_user ignored
    and t0 not joined twice against dbldapusermapping?
    Entities:
    public class MadeByStatusImpl {
    private UserImpl user = null;
    private Date date;
    /* getter and setter */
    public final class UserImpl {
    private long id;
    private String givenName = null;
    private String surname = null;
    /* getter and setter */
    public class StyleApprovalCheckImpl {
    private long id;
    private MadeByStatusImpl created = null;
    private MadeByStatusImpl lastChanged = null;
    private String comment = null;
    /* getter and setter */
    Mapping:
    <class name="MadeByStatusImpl" embedded-only="true">
    <field name="date"/>
    <field name="user"/>
    </class>
    <class name="UserImpl" table="DBLDAPUSERMAPPING" identitytype="
    application" detachable="true">
    <field name="id" primary-key="true" column="LDAPUSERMAPPINGID"/>
    <field name="givenName" column="GIVENNAME"/>
    <field name="surname" column="SURNAME"/>
    </class>
    <class name="StyleApprovalCheckImpl" table="DBSMAPPROVALCHECKENTRY"
    identity-type="application" detachable="true">
    <inheritance>
    <discriminator strategy="final"/>
    </inheritance>
    <field name="id" primary-key="true" sequence="Seq" column="ID"/>
    <field name="comment" column="APPROVALCOMMENT"/>
    <field name="created" default-fetch-group="true">
    <embedded>
    <field name="date" column="CREATEDBY_DATE"/>
    <field name="user" default-fetch-group="true"
    column="CREATEDBY_USER">
    <foreign-key/>
    </field>
    </embedded>
    </field>
    <field name="lastChanged" default-fetch-group="true">
    <embedded>
    <field name="date" column="LASTEDITEDBY_DATE"/>
    <field name="user" default-fetch-group="true"
    column="LASTEDITEDBY_USER">
    <foreign-key/>
    </field>
    </embedded>
    </field>
    </class>
    SQL:
    SELECT t0.smapprovalcheckentryid, t0.approvalcomment,
    t0.createdby_date, t1.ldapusermappingid, t1.givenname,
    t1.surname, t1.ldapuid, t0.lasteditedby_date
    FROM dbsmapprovalcheckentry t0,
    dbldapusermapping t1
    WHERE (t0.smstylesupplierid = 1)
    AND t0.createdby_user = t1.ldapusermappingid(+)
    thanks
    Andre Teshler

  • 1-1 mapping Primary Key association problem

    Hi, I have two tables Indiv (Id, col1, col2 ) and IndivExt(Id, col3)....where "Id" is the PKey in both the tables.
    In TopLink, I have mapped
    Indiv table --> IndivClass
    IndivExt table --> IndivExtClass
    class IndivClass{
    Integer Id;
    Integer col1;
    Integer col2;
    class IndivExtClass{
    IndivClass oIndiv; // relation - one-to-one
    Integer col3;
    While running the app, there is an Integrity TopLink exception that says that IndivClass descriptor doesnt have IndivExt table in it.
    So, I used advanced feature of multi-table info and created the Primary Key association between these two descriptors.
    If I am right, This association assumes that there is a row in IndivExt for every row in Indiv...correct me if im wrong. I assume this coz of the kinda sql query it creates when im trying to read a IndivClass object. The sql query uses a join on both the tables.
    But...For every row in Indiv table there MIGHT or MIGHT NOT be a row in IndivExt table.
    So the sql that is formed will not return the required Indiv rows (in case there are no corresponding IndivExt rows).
    How do I resolve this.
    Thanks,
    Krishna

    Hi James,
    Thanx for that update.
    So just for clarification...
    Im going to remove the multi-table info.
    And use normal foreign key reference,
    and apply the patch...then the Integrity error
    should not occur.
    Right ?
    One more question... If I also want to refer IndivExt from the Indiv object...then I would change my classes
    to be like...
    class IndivClass{
    Integer Id;
    Integer col1;
    Integer col2;
    IndivExt oIndivExt; //relation - one-to-one (rel2)
    class IndivExtClass{
    IndivClass oIndiv; // relation - one-to-one (rel1)
    Integer col3;
    and the mapping (for rel2) in IndivClass descriptor will use the same reference that was used by rel1...ie., a normal foreign key ref. Is that right ?
    And also...Is there a bug number related to this issue and how do I get the patch ? Where can I download it from?
    Thanks,
    Krishna

  • Set (and keep) Table Margins

    I have TCS4.
    I am linking a Framemaker book into Robohelp so everything keeps up-to-date. Mostly, it works fine.
    But..
    How do I apply a margin to a table in the CSS so that it stays? I want to put some space between all tables and what is around them (text, other tables, etc.) just to clean things up and make it easier to read. Padding moves the text within a cell. I need to shift the table itself as a unit.
    I can make the change manually in RH by adjusting the table properties of each table, but with hundreds of tables to setup each time there is an update, it gets terribly time consuming. Table margins seems to be entirely missing from the CSS or Master Page config.
    Where is it hiding? Can I set a margin for all tables of a type collectively? And have it survive Forced Updates? 
    I even tried modifying the CSS file directly with mixed results.    margin-top: 10.000px;     and such.
    Thanks.

    Are you mapping the table to a CSS style in the conversion options?
    If not, modify your conversion to do so, then you can control the properties from the CSS table definition.
    WARNING: You may find that formatting applied to the table in Fm still sneaks through as inline formatting in the Rh table. Remove formatting from the tables with the Custom Ruling and Shading dialog in Fm.
    As always, endeavor to eliminate the class="FM_ string from your HTML by explicit mapping of the styles. If not, you'll never gain control over the formatting in Rh.
    -Matt
    Matt R. Sullivan
    co-author Publishing Fundamentals: Unstructured FrameMaker 11

  • HOW TO SELECT ONLY THOSE RECORDS WHERE NOT AVAILABLE ON SECOND TABLE

    hi
    i have two tables one name is menus and second name is UGroupDetail. Actually i have created it for user role privileges for my application
    USE [LedgerDB]
    GO
    /****** Object: Table [dbo].[Menus] Script Date: 03/28/2015 13:45:27 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Menus](
    [RightID] [int] NOT NULL,
    [RightName] [nvarchar](200) NULL,
    [GroupID] [int] NULL,
    CONSTRAINT [PK_Menus] PRIMARY KEY CLUSTERED
    [RightID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    second table is
    USE [LedgerDB]
    GO
    /****** Object: Table [dbo].[UGroupDetail] Script Date: 03/28/2015 13:46:12 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[UGroupDetail](
    [RightID] [int] NOT NULL,
    [RightName] [nvarchar](200) NULL,
    [GroupID] [int] NULL
    ) ON [PRIMARY]
    GO
    ALTER TABLE [dbo].[UGroupDetail] WITH CHECK ADD CONSTRAINT [FK_UGroupDetail_Menus] FOREIGN KEY([RightID])
    REFERENCES [dbo].[Menus] ([RightID])
    ON UPDATE CASCADE
    ON DELETE CASCADE
    GO
    ALTER TABLE [dbo].[UGroupDetail] CHECK CONSTRAINT [FK_UGroupDetail_Menus]
    GO
    ALTER TABLE [dbo].[UGroupDetail] WITH CHECK ADD CONSTRAINT [FK_UGroupDetail_UserGroup] FOREIGN KEY([GroupID])
    REFERENCES [dbo].[UserGroup] ([GroupID])
    ON UPDATE CASCADE
    ON DELETE CASCADE
    GO
    ALTER TABLE [dbo].[UGroupDetail] CHECK CONSTRAINT [FK_UGroupDetail_UserGroup]
    UGroupDetail have many groups as assigned to a new user but Menus table has only default groups which is 90 records
    Menus table is a primary table and UGroupDetail is a Foreign key table
    now i want to combined these tables and want to get only remaining records for each group
    for example i have assigned 5 roles to GroupID 2 and now when i apply select commands the result should be 85 out 90 for GroupID 2
    but i have not idea how to modify select query for get desired result

    I don't really understand the tables. What is GroupID doing in the Menues table? And what does an entry without a RightName mean? Shouldn't that column be NOT NULL?
    The UGroupDetail does not have any primary key. From your description, I would expect the PK to be (RightID, GroupID). But strangely enough, GroupID is nullable. So is RightName, but I think this column is redundant and should be removed.
    Anyway, if I understand your question correctly, you need something like:
    SELECT UG.Name, M.RightName
    FROM   UserGroups UG
    CROSS  JOIN Menus M
    WHERE  NOT EXISTS (SELECT *
                       FROM   UGroupDetail UGD
                       WHERE  UG.GroupID = UGD.GroupID
                         AND  UG.RightID = M.RightID)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to map 2 tables together into a new one, like an Union?

    Hi.
    I am new in Oracle Data Warehouse Builder and what I'm wanting to do could be simple.
    My question is: How to map 2 tables into a new one? That is, what I need is to do a Union.
    See the following tables:
    What I have is:
    ---------------+ ---------------+
    | A | B | | A | B |
    |--------------- |---------------
    | 10 | 34 | | 13 | 39 |
    ---------------+ ---------------+
    Table 1 Table 2
    What I wish is:
    ---------------+ ----------------------+
    | A | B | Original table |
    |--------------- ----------------------+
    | 10 | 34 | 1 |
    |--------------- ----------------------+
    | 13 | 39 | 2 |
    |--------------- ----------------------+
    Then, I need put all data together into a new table and this new table should has a new column showing the original source of data to each record.
    Can I do such thing?
    I'm using the Oracle Warehouse Builder and trying to do a map in this way.
    Any hint will be very helpful. I also will appreciate an indication of some document which can show how to do it.
    Thanks .
    Rodrigo Pimenta.
    Brazil.

    Use the SET OPERATOR. That should help i guess.

  • Setting CMP Primary Key equal to DB primary key

    Is their a mechanism in Oracle JDeveloper(or other tools) for setting the primary key of auto-generated CMP beans to equal the database primary key?
    If so, could someone kindly share their views on the benefits/drawbacks of this approach to CMP?
    -Teodoro Sorgo

    Brice,
    It sounds like you have a page process on every page. Why not just wait to process all of the data on the last page, using your own pl/sql process? Say you have pages 1-3 with items
    P1_ID
    P1_NAME
    P2_DEPT
    P2_LOCATION
    P3_OTHER
    Only have a process on Page 3 have that does
    insert into table (id, name, dept, location, other) values
    (:P1_ID, :P1_NAME, :P2_DEPT ...
    Anton

  • How to set optional for table structure in functiona module

    hi experts,
    as i have small doubt regarding
    while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure ....
    reagrds prabhanjan

    Ignoring the TABLES/CHANGING/EXPORTING argument...
    while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure
    Why not?  There's no issue with marking a TABLES interface parameter with 'Optional' and publishing the function module or function group as a web service...

  • unmapped is Always shown in Primary Table Field

    Hello Everyone....
    I'm working on a project using j2ee 1.4 platform edition (The Latest Release),
    my project uses CMP,I capture the database schema using cpture-schema tool but when using the .dbschema I always get an <unmapped> instead of a table name in the Primary Table field in the sun-specific settings dialog.I went throug the operation many times but it doesn't work please help.

    hi
    i also have the same problem... i have already set the primary key field for the table but it still doesn't show up. strange, i had this problem before. i started with one table, and everything was ok. then i added a second one and couldn't see it in the mappings. i managed to fix it but the only problem is that it was some time ago and i can't remember what i did... so now when i added the third table to my database i have the same problem.
    suggestions ?

  • How can I see in what maps some table is used?

    Hi,
    Anyone can tell me how can I see in what maps some table is used, without open all of then?
    Thanks,
    Gustavo.

    Good morning Gustavo,
    OWB has some public views defined which can provide you with this information. Check Appendix D (Warehouse Builder Public Views) of the OWB User Guide for all info.
    Log in as the owner of the design time repository, if you run the following query you'll have a basic overview of whic table is used in which mapping:SELECT MAP_NAME         MAPPING_NAME
    ,      DATA_ENTITY_NAME TABLE_NAME
    ,      BUSINESS_NAME    TABLE_OPERATOR_ALIAS
    ,      DESCRIPTION      TABLE_OPERATOR_DESCRIPTION
    FROM   ALL_IV_XFORM_MAP_COMPONENTS
    WHERE  DATA_ENTITY_TYPE = 'TABLE'Good luck, Patrick

Maybe you are looking for