2.1 RC1 - Export including dependent objects

Hi all.
Not sure if this is a bug or by design:
- start export and check the Automatically Include Dependent Objects option
- in the Types to Export dialog select Package Spec and Package Body only
- in the Specify Objects dialog select a single package (Spec and Body)
- start the export
In the results I see it correctly included the Spec of the related packages but their Body is missing: is that normal?
TIA.
Alessandro

thanks. we will wait for fix for delete-orphan ;)
The onlyopen issue for us is still
"cascade delete from parent to children" - see my posting with this issue. could you help us on this ?
Here is the problem once again:
2.1.1.     Cascade delete during parent-delete
Problem
We want to be sure that
childred are deleted when parent is deleted with pm.deletePersistent(parent).
This works perfectly if we map the parent-child relationship as bidirectional inverse-key
relationship (similar to ParentTyp-ChildTyp exmaple) :
In Parent Class FilterCriteriaImpl:
<field name="entries" mapped-by="criteria" dependent="true" default-fetch-group="true">
<collection element-type="AbstractSearchCriteriaEntry" dependent-element="true"/>
</field>
and in Child Class AbstractSearchCriteriaEntry:
<field name="criteria" column="SMSEARCHCRITERIAID" default-fetch-group="true">
     <extension vendor-name="kodo" key="type" value="FilterCriteriaImpl"/>
<foreign-key/>
</field>
But if we map the relationship as unidirectional:
<field name="entries" dependent="true" default-fetch-group="true">
<extension vendor-name="kodo" key="jdbc-element-delete-action" value="cascade"/>
<collection element-type="AbstractSearchCriteriaEntry" dependent-element="true"/>
<element>
<column name="SMSEARCHCRITERIAID" target="SMSEARCHCRITERIAID"/>
          <foreign-key/>
</element>
</field>
the children are not deleted during pm.deletePersistent(filterCriteria).
Instead this KODO makes
UPDATE PROD_B2BSM.DBSMSEARCHCRITERIALIST SET SMSEARCHCRITERIAID = ? WHERE SMSEARCHCRITERIAID = ? [params=(null) null, (long) 215625811] [reused=1]
trying to insert NULL as FK which violates our DB constraint.
Question
How to map unidirectional relationship which supports cascade delete for children ?
kind regards
Andre Teshler

Similar Messages

  • Include Deleted Objects while exporting Namespace in File Transport System

    Hi everyone,
    What is the use of the option Include Deleted Objects while exporting a namespace using file transport system?
    Thanks,
    Anu

    This is a basic question and should be searched on SDN before posting.
    Say, you create a DT in dev and transport it to Test system. In sometime, the requirement changes and now you are supposed to use a WSDL (external def) so no DT / MT will be required and should be deleted. You can delete them in Dev but what will happen to those objects in test - it is not a good practice to delete objects in non-Dev env.
    In such situation, you will make these deleted objects part of your transport to test / other env and it will get deleted over there as well.
    Hope this answers your query. Make search on SDN / SAP Help for further reading.

  • ORA-39112: Dependent object type OBJECT_GRANT - using Datapump

    Hi, all.
    I am importing full database from 10g to 11g, using datapump:
    impdp system/aroeira directory=DATA_PUMP_DIR full=y dumpfile=saodlx_full.dmp logfile=saodlx_full_imp.log PARALLEL=6
    I got error message below with partitioned table:
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"SHR04" skipped, base object type TABLE:"SHR04"."SHR04_ARMAZENAGEM_DTL" creation failed
    Please, anybody can help me?
    Thanks in advance.
    Leonardo.

    Which exact versions are you dealing with?
    There are a couple of MOS notes about this topic: *Compatibility Matrix for Export And Import Between Different Oracle Versions [ID 132904.1]* and *Export/Import DataPump Parameter VERSION - Compatibility of Data Pump Between Different Oracle Versions [ID 553337.1]*
    It is recommended that both databases have the latest patchset installed.
    Also, you can troubleshoot the issue generating an SQL file with tables creation for the original dump (SQLFILE parameter to impdp), and extract and create those tables alone to see if there is something wrong there.
    Regards.
    Nelson

  • Dependant objects in a transport request

    Hi Guys
    I have a transport request with 100 custom programs in it. I have to move the transport request to
    another system. Is there a way to know all the dependant objects for these custom programs?
    If the transport fails due to dependancies the client is not willing to create another transport request.
    Please let me know if there is a solution for this?
    Thanks
    Britto
    Edited by: Britto Manohar on Jul 16, 2009 5:31 PM

    Hi  Britto,
    all the Dependent Object for the Custom Program or Report..
    will be stored in Table D010tab or FM "GET_TABLES"
    ..Pass report name it will show all the tables View used..
    but the unclude of the dependent Objects in the sutom Program transport request is the issue ..
    for Custom Tbales you can create transport reuest at run time ..for standadrd Tables creating transport request and include
    in the cutom program transport request will create error.
    Prabhudas

  • Deemed export _number from object J_1IEXCEXP

    Dear SD Experts,
    We have two types of excise invoices. One is Local and another is Export.
    The local excise invoices take numbers from the local number range [object J_1IEXCLOC]; the export excise invoices take numbers from the export number range [object J_1IEXCEXP]. As per the present setting the deemed export takes the numbers from the local number range [object J_1IEXCLOC] as the customer is in India.
    Now the requirement is that the deemed export should take the number from the export number range [object J_1IEXCEXP].
    Pl help me in this regard.
    K.Bharthi

    Hi Bharathi,
    Create a customer group for Deemed exports and this customer group field is refered into program J1IIN.
    Use Function module: J_1I7_REDETERMINE_INVOICE_TYPE in program SAPMJ1IIN and include the below logic.
    if i_vbrk-kdgrp = Deemed Export,
      E_CUST_TYP = 'F'.
      E_T_LOCEXP = 'export'.
      E_EXP_TYPE = 'lout'.
    Then system will take foriegn number range object and picks the number which u maintain for series group of Exports.
    regards,
    PP

  • DBMS_METADATA Dependent Object name filters

    Hello "Every One",
    I'm having trouble using the BASE_OBJECT_NAME filter to extract metadata for dependent objects.
    Never mind, I was having trouble doing this. However, I still have a question. Why am can I extract metadata for dependent objects using a filter combination of SCHEMA and BASE_OBEJCT_NAME_EXPR, or BASE_OBJECT_SCHEMA and BASE_OBJECT_NAME, but not SCHEMA and BASE_OBJECT_NAME?
    I've included an example below which attempts to extract constraints on a specific table using the filters mentioned above.
    SQL> DECLARE
      2    h NUMBER;
      3    th NUMBER;
      4    ddl CLOB;
      5  BEGIN
      6    FOR i IN 1..105 LOOP
      7      DBMS_OUTPUT.PUT('-');
      8    END LOOP;
      9    DBMS_OUTPUT.PUT_LINE('-');
    10
    11    h := DBMS_METADATA.OPEN('CONSTRAINT');
    12    DBMS_METADATA.SET_FILTER(h, 'SCHEMA', 'LAB315JUNE06');
    13    DBMS_METADATA.SET_FILTER(h, 'BASE_OBJECT_NAME', 'XCASE');
    14    th := DBMS_METADATA.ADD_TRANSFORM(h, 'DDL');
    15    DBMS_METADATA.SET_TRANSFORM_PARAM(th, 'SEGMENT_ATTRIBUTES', false);
    16    LOOP
    17      ddl := DBMS_METADATA.FETCH_CLOB(h);
    18      EXIT WHEN ddl IS NULL;
    19      DBMS_OUTPUT.PUT_LINE(ddl);
    20    END LOOP;
    21    DBMS_METADATA.CLOSE(h);
    22
    23    FOR i IN 1..105 LOOP
    24      DBMS_OUTPUT.PUT('-');
    25    END LOOP;
    26    DBMS_OUTPUT.PUT_LINE('-');
    27
    28    h := DBMS_METADATA.OPEN('CONSTRAINT');
    29    DBMS_METADATA.SET_FILTER(h, 'SCHEMA', 'LAB315JUNE06');
    30    DBMS_METADATA.SET_FILTER(h, 'BASE_OBJECT_NAME_EXPR', 'IN (''XCASE'')');
    31    th := DBMS_METADATA.ADD_TRANSFORM(h, 'DDL');
    32    DBMS_METADATA.SET_TRANSFORM_PARAM(th, 'SEGMENT_ATTRIBUTES', false);
    33    LOOP
    34      ddl := DBMS_METADATA.FETCH_CLOB(h);
    35      EXIT WHEN ddl IS NULL;
    36      DBMS_OUTPUT.PUT_LINE(ddl);
    37    END LOOP;
    38    DBMS_METADATA.CLOSE(h);
    39
    40    FOR i IN 1..105 LOOP
    41      DBMS_OUTPUT.PUT('-');
    42    END LOOP;
    43    DBMS_OUTPUT.PUT_LINE('-');
    44
    45    h := DBMS_METADATA.OPEN('CONSTRAINT');
    46    DBMS_METADATA.SET_FILTER(h, 'BASE_OBJECT_SCHEMA', 'LAB315JUNE06');
    47    DBMS_METADATA.SET_FILTER(h, 'BASE_OBJECT_NAME', 'XCASE');
    48    th := DBMS_METADATA.ADD_TRANSFORM(h, 'DDL');
    49    DBMS_METADATA.SET_TRANSFORM_PARAM(th, 'SEGMENT_ATTRIBUTES', false);
    50    LOOP
    51      ddl := DBMS_METADATA.FETCH_CLOB(h);
    52      EXIT WHEN ddl IS NULL;
    53      DBMS_OUTPUT.PUT_LINE(ddl);
    54    END LOOP;
    55    DBMS_METADATA.CLOSE(h);
    56
    57    FOR i IN 1..105 LOOP
    58      DBMS_OUTPUT.PUT('-');
    59    END LOOP;
    60    DBMS_OUTPUT.PUT_LINE('-');
    61  END;
    62  /
      ALTER TABLE "LAB315JUNE06"."XCASE" ADD CONSTRAINT "XCASE_PK" PRIMARY KEY ("USPECID", "REL_INDEX") ENABLE
      ALTER TABLE "LAB315JUNE06"."XCASE" ADD CONSTRAINT "XCASE_PK" PRIMARY KEY ("USPECID", "REL_INDEX") ENABLE
    PL/SQL procedure successfully completed.
    SQL>Message was edited by:
    Will Krause

    If you ask questions related to dbms_metadata, it would add value if you provide your database version ( because there are a lot differences even between patchsets).
    If you put dbms_metadata.get_query() calls in your block, you would see, which calls are made to the database. I did it ( as user sys and on my development schema/tables, so in your case the names may vary, but the point remains) - this is what i got for 1st rsp. 2nd call:
    SELECT /*+rule*/ SYS_XMLGEN(VALUE(KU$), XMLFORMAT.createFormat2('CONSTRAINT_T', '7')), 0
    FROM SYS.KU$_CONSTRAINT_VIEW KU$ WHERE NOT BITAND(KU$.BASE_OBJ.FLAGS,128)!=0
    AND  KU$.OWNER_NAME=:SCHEMA1 AND   KU$.BASE_OBJ.NAME='CUSTOMER' AND   KU$.BASE_OBJ.OWNER_NAME='SYS';
    SELECT /*+rule*/ SYS_XMLGEN(VALUE(KU$), XMLFORMAT.createFormat2('CONSTRAINT_T', '7')), 0
    FROM SYS.KU$_CONSTRAINT_VIEW KU$ WHERE NOT BITAND(KU$.BASE_OBJ.FLAGS,128)!=0
    AND  KU$.OWNER_NAME=:SCHEMA1 AND   KU$.BASE_OBJ.NAME IN ('CUSTOMER');
    ----------------------------------------------------------------------------------------------------------You see, in the first call a condition is added ( ku$.base_obj.owner_name='SYS' - block was executed under sys) , which is most likely wrong, that's why nothing is returned - so, probably this is a bug (at least, this condition don't make sense for me) and you may wish to fill an SR by Oracle Support.
    Best regards
    Maxim

  • ORA-39112: Dependent object type

    hi,
    i had exported in one database.Based on the export file i have imported another dataabse.i got the below error,
    ORA-39112: Dependent object type
    how to solve this issues?.
    By
    siva

    Hello kn,
    Please refer to the following link [ORA-39112: Dependent object type |http://ora-39112.ora-code.com/|Click]
    *009*
    Edited by: 009 on Dec 16, 2009 10:22 PM

  • Finding dependant objects

    Hi Experts,
         I have a transport request having many custom programs in it. I need to transport it to another system. Is there any way to know all the dependant objects for the programs. Are there any tables which store the dependant objects like tables, views, includes, message class, domains, functions etc.
        Thank you
    Lijo P Raj

    Hi,
    Otherwise try this .Goto se38 custom program.Click on Display object list -->CtrlShiftF5.It will take you to se80(ABAP Workbench).You will get the used objec list in that custom program in a tree format .You will be able to see the includes,Dictionary structures used,Function modules ,transactions ,and so on used in this program.
    There you will get some idea on what are all  the dependent objects used in the program
    Regards,
    Lakshman.
    Edited by: Lakshman N on Dec 31, 2009 7:04 AM

  • Exporting two remote objects on the same port

    Hi,
    I would like to export two remote objects on the same host, same port and bind them with different service names.
    There is no problem when I do that from the same Java program.
    But when I export and bind an object from a Java program 1, I cannot do the same with the second (and similar) Java program 2. This is the stack trace of my Exception:
    java.rmi.server.ExportException: Port already in use: 50040; nested exception is:
         java.net.BindException: Address already in use: JVM_Bind
         at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:243)
         at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:178)
         at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:382)
         at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
         at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:145)
         at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:129)
         at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:275)
         at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:178)
         at java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:75)Can some one help please

    It should work in any version of Java as long as the server socket factories are null or equal according to Object.equals() or its override in the SSF.equals() method if any. Which needs to be present and needs to take the form:
    public boolean equals(Object object)
      return object != null && object.getClass() == this.getClass();
    }with further tests if the server socket factories have additional state.

  • Help needed in Identifying dependent objects

    Hi all,
    Basically I need to identify the object related to Integration which is not there in one of our software product under development as compare to other(existing) already developed so that we can apply them in the product being developed.
    I need to find these below from few of the packages given to me
    &#61550;     dependent packages/functions to read and update data
    1)     Tables
    2)     Packages
    3)     Triggers
    4)     Views
    5) Jobs
    I would request you to help me in carrying out this faster, I have plsql Developer tool, how to start with so that i m not mess up with and complete it faster.
    Regards,
    Asif.

    Thankx Pierre Forstmann.
    Dear All,
    Can any one help me in identifying all dependent objects for one object.
    Will this works for me I found from the above link provided,
    as for the time being I do not have the dba priviliges...
    If I am able to get the dba prviliges will this code works for me to get the
    required information....
    Regards,
    AAK.
    SQL>
    create or replace type myScalarType as object
    ( lvl number,
    rname varchar2(30),
    rowner varchar2(30),
    rtype varchar2(30)
    Type created.
    SQL> create or replace type myTableType as table of
    myScalarType
    Type created.
    SQL>
    SQL> create or replace
    function depends( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2 default USER,
    p_lvl in number default 1 ) return myTableType
    AUTHID CURRENT_USER
    as
    l_data myTableType := myTableType();
    procedure recurse( p_name in varchar2,
    p_type in varchar2,
    p_owner in varchar2,
    p_lvl in number )
    is
    begin
    if ( l_data.count > 1000 )
    then
    raise_application_error( -20001, 'probable connect by loop,
    aborting' );
    end if;
    for x in ( select /*+ first_rows */ referenced_name,
    referenced_owner,
    referenced_type
    from dba_dependencies
    where owner = p_owner
    and type = p_type
    and name = p_name )
    loop
    l_data.extend;
    l_data(l_data.count) :=
    myScalarType( p_lvl, x.referenced_name,
    x.referenced_owner, x.referenced_type );
    recurse( x.referenced_name, x.referenced_type,
    x.referenced_owner, p_lvl+1);
    end loop;
    end;
    begin
    l_data.extend;
    l_data(l_data.count) := myScalarType( 1, p_name, p_owner, p_type );
    recurse( p_name, p_type, p_owner, 2 );
    return l_data;
    end;
    Function created.
    SQL>
    SQL> set timing on
    SQL>
    SQL> select * from table(
    cast(depends('DBA_VIEWS','VIEW','SYS') as myTableType ) );
    ---select * from table(cast('USER_VIEWS') as myTableType ) );
    LVL     RNAME          ROWNER          RTYPE
    1     DBA_VIEWS     SYS               VIEW
    2     TYPED_VIEW$ SYS               TABLE
    2     USER$          SYS               TABLE
    2     VIEW$          SYS               TABLE
    2     OBJ$          SYS               TABLE
    2     SUPEROBJ$ SYS               TABLE
    2     STANDARD SYS               PACKAGE
    7 rows selected.
    Elapsed: 00:00:00.42
    SQL>
    SQL>
    SQL> drop table t;
    Table dropped.
    Elapsed: 00:00:00.13
    SQL> create table t ( x int );
    Table created.
    Elapsed: 00:00:00.03
    SQL> create or replace view v1 as select * from t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v2 as select t.x xx, v1.x yy from
    v1, t;
    View created.
    Elapsed: 00:00:00.06
    SQL> create or replace view v3 as select v2.*, t.x xxx, v1.x
    yyy from v2, v1, t;
    View created.
    Elapsed: 00:00:00.07
    SQL>
    SQL>
    SQL> select lpad(' ',lvl*2,' ') || rowner || '.' || rname ||
    '(' || rtype || ')' hierarchy
    2 from table( cast(depends('V3','VIEW') as myTableType ) );
    HIERARCHY
    OPS$TKYTE.V3(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V2(VIEW)
    OPS$TKYTE.T(TABLE)
    OPS$TKYTE.V1(VIEW)
    OPS$TKYTE.T(TABLE)
    8 rows selected.
    Message was edited by:
    460425

  • Error Exporting the ID Objects in SAP PI 7.11 was working fine in PI 7.1

    Hi,
    Recently we have upgraded to PI 7.1 Eph1. We have CTS+ for the transportation. The issue here is that i am able to export IR objects from ESR with CTS. But when i try to export the ID objects i am not able to see either CTS export oprion or the file export option from the dropdown. Before that upgrade (SAP PI 7.1) i was able to export both IR and ID objects with CTS+.
    So i managed to get some error messeage from trace. Here is waht is says...
    javax.ejb.EJBAccessException: Principal: EABCDEF (authentication method: password), policyContextID: sap.com/com.sap.xi.directorycom.sap.xpi.ib.server.jar, permission.name: TransportServiceBean, permission.actions: existsCtsWorkspace,Remote,com.sap.guid.IGUID*
    Do you know what could be the reason? I was wondering why i wasnt able to export.
    Many thanks in advance.
    Best Regards,
    Prasad.

    Hi,
    There seems to be a lot of confusion between what is documented and what is available in actual. I did a search in help.sap.com for JMS Topic and got some information under PI7.11
    http://help.sap.com/saphelp_nwpi711/helpdata/en/46/31558a9f1214dfe10000000a155369/frameset.htm
    I hope that someone from SAP confirms the actual working. I dont want to raise an OSS for this
    Thanks,
    Pankaj.

  • Dependent Object persistence in EJB 1.1

    Please take a look at the following container-managed entity EJB
    code:
    //REMOTE INTERFACE //----------------------
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    public interface Product extends EJBObject {
    public void setPrice(double price) throws RemoteException;
    public double getPrice() throws RemoteException;
    public String getDescription() throws RemoteException;
    public void setDescription(String desc) throws RemoteException;
    public ItemView getItemView() throws RemoteException;
    public void setItemView(ItemView i) throws RemoteException;
    //HOME INTERFACE //------------------------------
    import java.util.Collection;
    import java.rmi.RemoteException;
    import javax.ejb.*;
    public interface ProductHome extends EJBHome {
    public Product create(String productId, String description,
    double balance, ItemView itemView) throws RemoteException,
    CreateException;
    public Product findByPrimaryKey(String productId)
    throws FinderException, RemoteException;
    public Collection findByDescription(String description)
    throws FinderException, RemoteException;
    public Collection findInRange(double low, double high)
    throws FinderException, RemoteException;
    //EJBean //----------------------------------------------
    import java.util.*;
    import javax.ejb.*;
    public class ProductBean implements EntityBean {
    public String productId;
    public String description;
    public double price;
    //custom java class: Item
    public Item item;
    private EntityContext context;
    public void setPrice(double price) {
    this.price = price;
    public double getPrice() {
    return price;
    //instead of returning field Item, an object of ItemView with Item
    data is returned.
    public ItemView getItemView()
    return new ItemView(item.getDesc(), item.getCodeNum());
    public void setItemView(ItemView itemView)
    this.item = new Item(itemView.getDView(), itemView.getCView
    public String getDescription() { return description; }
    public void setDescription(String descri) {description = descri;}
    public String ejbCreate(String productId, String description,
    double price, ItemView itemView) throws CreateException {
    if (productId == null) {
    throw new CreateException("The productId is required.");
    this.productId = productId;
    this.description = description;
    this.price = price;
    item = new Item(itemView.getDView(), itemView.getCView());
    return null;
    public void setEntityContext(EntityContext context) {
    this.context = context;
    public void ejbActivate() {
    productId = (String)context.getPrimaryKey();
    public void ejbPassivate() {
    productId = null;
    description = null;
    public void ejbRemove() { }
    public void ejbLoad() { }
    public void ejbStore() { }
    public void unsetEntityContext() { }
    public void ejbPostCreate(String productId, String description,
    double balance, ItemView itemView) { System.out.println
    ("ProductBean ejbPostCreate"); }
    } // End of ProductBean
    //Item //-------------
    public class Item implements java.io.Serializable {
    public String desc;
    public int codeNum;
    public Item(String desc, int CodeNum) {
    desc = desc;
    codeNum = codeNum;
    public void setDesc(String decs) {desc = desc;}
    public void setCodeNum(int i) {codeNum = codeNum;}
    public String getDesc() {return desc;}
    public int getCodeNum(){return codeNum;}
    } //End of Item
    //ItemView //-------------------------------------
    public class ItemView implements java.io.Serializable {
    public String dView;
    public int cView;
    public ItemView(String s, int i) {
    dView = s;
    cView = i;
    public void setDView(String s) {dView = s;}
    public String getDView() {return dView; }
    public void setCView(int i) {cView = i;}
    public int getCView() {return cView;}
    Upon running the following client:
    //ProductClient //-------------------------------------
    import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class ProductClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    Object objref = initial.lookup("MyProduct123");
    ProductHome home =
    (ProductHome)PortableRemoteObject.narrow(objref,
    ProductHome.class);
    Product duke = home.create("1006", "Siamese atty", 23.13,
    new ItemView("Hot",12));
    System.out.println("Description: " + duke.getDescription());
    System.out.println("Price: "+ duke.getPrice());
    System.out.println("Item desc: " + duke.getItemView
    ().getDView());
    System.out.println("Item CodeNum: " + duke.getItemView
    ().getCView());
    } catch (Exception ex) {
    System.err.println("Caught an exception." );
    ex.printStackTrace();
    This is expected to create a ProductBean whose Item field variable
    object will have "Hot" and 12 as its values. However, the program
    output is:
    Description: Ceramic Catty
    Price: 19.23
    Item desc: null
    Item CodeNum: 0
    1. I am unable to understand why the Item object contained in the
    ProductBean remains null.
    2. I read in a sdmagazine article, that helper objects (dependent
    objects) should not be exposed directly to the client. I have used
    the ItemView in line with this argument although I am not clear if
    this is a requirement , if so, what is the rationale behind it.
    Please see
    http://www.sdmagazine.com/documents/s=739/sdm0010j/0010j.htm.
    3. If I do not use ItemView and expose the Item field directly to the
    client, there is a runtime error NullPointerExc eption...
    4. Does EJB 2.0 adopts the same approach i.e. can depenmdent objects
    be directly exposed to the client or not. Or this is just a
    recommendation not a requirement?
    In the above mentioned article :
    (http://www.sdmagazine.com/documents/s=739/sdm0010j/0010j.htm)
    "EJB enables me to improve the design I presented in Figure 1. The
    problem is the address attribute; it's an object and not a primitive
    value. Because I need to persist addresses, I have two options: I can
    implement it as a dependent value object or as a dependent object. A
    dependent value object is one that is serializable, the properties of
    which are saved as a single value; it's the relational database
    equivalent of a binary large object (blob). On the other hand, the
    properties of dependent objects are saved as individual values, one
    for each property. This appears to be a significant advantage, but it
    comes at a price: A dependent object must never be directly exposed
    to the clients of entity beans via its remote interface because the
    persistence container is free to optimize the delivery of dependent
    objects and may never fully materialize them as full-fledged classes.
    What you should do, as Figure 2 indicates, is expose a representation
    of the dependent object if required. I have done this with the new
    versions of the getAddress() and setAddress() operations in the
    Customer class that now work with instances of XmlDocument instead of
    Address. A little clunky, but reasonably easy to live with in
    practice. Note that I didn't have to introduce any code to maintain
    the relationship between the two classes to my model."
    5. This is totally new to me. I don't know what the author means when
    he says 'the properties of
    which (dependent object) are saved as individual values, one for each
    property.' Does this mean,
    the dependent object can be persisted in a separate table. How is it
    possible while using CMP? 6.
    And 'all this comes at a price...' I can't see what's the price.
    Any help is highly appreciated.
    Regards,
    Hasan

    Did you forget adding "this." in the item.java.

  • Need to find the dependent object details for an object.

    Hi,
    Is there any query to find the dependent object details for any object. Like if mview is built on a table, then i should be able to find the table name with out checking code of the mview. Thanks in-advance for your support. similar way for view and functions or procedures etc...
    Regards
    DBA.

    Hi all,
    Thanks a lot for your inputs. seems i have not given full details in my post. I need to have a SQL Query to find the dependent object details not DDL.
    if i give a metriealized view name, i should get the base table names directly not DDLs...
    if i give index name i should get its corresponding table name(off course i got this already)...
    if i give a function name, i should get all the tables which are being in the function...etc...
    i am looking for a script which will cover all the aspects.....i hope i have given now enough information for this....
    Regards
    DBA.

  • In dreamweaver mx 2004 and dreamweaver cs4, how I configure, when download/upload do not ask me to include DEPENDED FILES but act without including ?

    in dreamweaver mx 2004 and dreamweaver cs4, how I configure, when download/upload do not ask me to include DEPENDED FILES but act without including ?

    Open the Preferences panel (Edit menu on Windows, Dreamweaver menu on a Mac), and select the Site category. There are two checkboxes there for dependent files. Make sure both are selected. The Dreamweaver default is NOT to upload/download dependent files. You need to click Yes, if you want the dependent files to be included.

  • How to create the change document functionality for a dependent objects?

    May I please know how to create the change document functionality for a dependent objects?
    I have done it follow the same process as for business process objects. But when i try to test it in BOBT, there is no records under "FIELD_CHANGE_WITH_FILTER". It seems the change hasn't been recorded.
    If the way I did to create change document for dependent object is correct, please also kindly advise the possibilities for why there is no record during testing.
    thanks in advance.

    I also have some doubts about the business object.In this case,one abstract BO hase a subnode wihich is root extended.I added the change document for this node under the category "root_extended" and then tested the function in BOBT.I got some error message "can't find the root key".Shall i redefine the method /BOFU/IF_CDO_CREATION~IS_CDO_CREATION_ACTIVE so as to solve the problem?
    Thx.

Maybe you are looking for

  • How do i restore the information in my iphone back to how it was before I changed it?

    I accidentally didn't know what I was doing and ended up changing all my settings. It deleted all my contacts now I searching a way to get all my previous data back, any ideas? Please I am in desperate need of help. I was trying to put music in my ph

  • How to restrict multiple executions of a report by same user

    During month end closing user execute multiple sessions of the same report. In order to improve system performance want to put restriction on such executions espcially for system exhaustive reports. So user can execute report second time once first j

  • How do I open a mac .fla file in a pc version of Flash?

    I have files from a class that I took in 2D animation. There are things that I wanted to fix and finish, but the computers that we did the assignments on were macs. I no longer have access to a mac and my computer at home is a pc but whenever I go to

  • Maintaining different values for Accounting Type (KOART)

    Hi experts, I have several accounting tcodes such as FBV0, FB03, FB08, FV65,FV60 in one parent role. FV60, FV65 are added to this role as FBV0 is checking internally for this authorization object.  All these tcodes share a same object  F_BKPF_KOA whi

  • Best way to export photo titles/descriptions to Facebook?

    I'm a new Aperture user with only a few weeks of usage so far. I used it on a recent trip and made a nice set of photos with lots of metadata in the "caption" and "title" metadata fields. However, Aperture's Facebook export seems to be dumb beyond be