Toplink 10.1.3: Why need SessionFactory.detach()

Hi,
Could anybody tell me why there's a need for SessionFactory.detach() ?
I'm not really understand what 'detach()' means, why it should be used.
Is there any similar concept to this in Toplink 10.1.2?
Thanks in advance for helping me.

Doug,
In the mapping workbench, when you're creating mappings for one-to-one relationships, there's an option called "use joining" which uses an equi-join to also retrieve a related record. This works fine if the attribute (which is also the foreign key) has a value. If the attribute is null, an outer-join much be used if you want to get the main record regardless of the attribute being null or not. In my experience, this is an important performance optimization. It would be great to have an option of specifying "use joining with outer join".
Yes, with expressions we can specify outerjoins but it would be nice that you can set this at the descriptor level so you can change the XML without changing Java code. Writing Java code is not an option for us because we need such tuning and configurations done externally in a configuration file.
Regarding your comments on the prioritization of efforts in syncing API features with the workbench, I think it's awkward (because you're combining 2 different paradigms) that for the majority of the time you can use the workbench, but for more advanced features, you must use the API. Even if the workbench can't support it, I think the XML should so we can go in and edit it ourselves (just like the other ORM tool).
Thanks,
-Duc

Similar Messages

  • SelectOneChoice problem with SessionFactory.detach

    Hello,
    I have this problem , i have mapped two table (A, B) with one to one mapping eg.
    The descriptor A maps the fields like
    Table A,
    id_a ----- direct mapping
    name --- direct mapping
    tableB ...one to one mapping
    The descriptor B maps the fields like
    Table B
    id_b -- direct mapping
    name direct mapping
    tableACollection --- one to many mapping
    then I expose the metods in a SessionBean
    FindAllTableA
    FindAllTableB
    In the findAllTableA i use SessionFactory.detach becouse i have to bild a edit form for Table A
    The problem is, i have built a page form with ADF for Table A with input field for id_a and name, and select one choice for tableB mapping, when i run the page the selectonechoice field doesn't display the value (The list is ok .. it ' is based on FindAllTableB). If i dont use SessionFactory.detach the selectonechoice works fine...but i can't update the table.
    Anyone can Help me?
    Thank you.

    Hi,
    try without the leading slash
    skin/images/detach.png
    Frank

  • Why need to give Function group at time of  table maintence generation

    Dear All,
    why need to give Function group at time of  table maintence generation
    Regards,
    Laxman  Sankhla

    Hi Laxman,
    The F1 help of the field says:
    Name of the function group, to which the generated maintenance modules will belong.
    Means the PBO & PAI modules of the screen will be created under this Functio group.
    Regards
    DKS

  • Why need to connect iTunes to download iOS 7.1.2

    Why need to connect iTunes to download iOS 7.1.2

    It is no longer available. You will need to update to iOS8.0.2
    Cheers
    Pete

  • Why need message type when u create data type...

    why need message type when u create data type...

    Hi,
    A message type comprises a data type that describes the structure of a message. At the following points in SAP Exchange Infrastructure you can refer to the message to be exchanged at runtime by using the message type:
    ·        More than one message interface can use the same message type. For example, an asynchronous outbound message interface and an asynchronous inbound message interface can reference the same message type because the request message does not need to be mapped.
    ·        When defining a message mapping you can directly reference message types to map messages from an outbound interface to messages from a receiver interface.
    For technical reasons, a data type is not sufficient to describe the instance of a message. In XML schema, data types are defined as abstract types that are not yet fixed to an element. You can only describe an instance of a message when you have specified a data type as an element type. Therefore, a message type defines the root element of a message.
    A message type does not define the direction of the message exchange, in other words, whether it is a request or a response. In exceptional cases you can use the same message type for both the request and the response message.
    A message type has the following characteristics:
    ·        It comprises exactly one data type, which determines the content of the message to be transferred.
    ·        It is identified by a name and an XML namespace. The name (together with the namespace) of a message type is located in the uppermost tag of the message to be exchanged. This is an element tag.
    You have defined a message type GreetingRes that references a simple data type of type xsd:string. The XML namespace of the message type is http://sap.com/xi/myExample. The corresponding payload might look like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <ns1:GreetingRes xmlns:ns1="http://sap.com/xi/myExample"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       Hello Mrs. Miller
    </ns1:GreetingRes>
    You can specify how a message type is used in more detail in the description
    hope this will help you.
    regards
    Aashish Sinha
    PS : reward points if helpful

  • Why need to upgrade to 2007A PL42 before PL46?

    Dear Experts,
    I'm just curious, why need to upgrade to 2007A PL42 before PL46. Is there any affect if we skip PL42, example from 2005A SP01 PL41 direct upgrade to 2007A PL46?
    And if we need to upgrade to 2007A PL42 first, is it we need to upgrade the DB COMMON only, or the entire company database, example if got 10 company DB, is it we need to upgrade for 10 company DB to 2007A PL42 first before repeat the same process and upgrade 2007A PL46?
    Any help appreciate.

    Hi,
    This note I got from SAP 2007A PL46 installation folder named "Patchreadme.pdf", and the caution point no. 3 mention this one : "Before running 2007 A patch 46 upgrade, customers who are running versions previous to 2007 A should upgrade to version 2007 A patch 42." That's why i'm curious whether can or not if we upgrade direct from version 2005A to 2007A PL46 , and is there any affectted.
    In case have to upgrade 2007A PL42, what I mean is it can we just upgrade SBO-COMMON only to 2007APL42 and then continue upgrade to 2007APL46 again for SBO-COMMON and the entire 10's company db (10's company db did not upgrade to PL42, but direct to PL46 - save time).
    Or, we need to upgrade SBO-COMMON & 10's company db to PL42, and then one more time upgrade SBO-COMMON & 10's company db to PL46?
    Yes, there are only one sbo-common and 10 company db in sql.
    Thanks in advance for your reply.

  • Why need do close posting period

    Hi, All,
    Why we need to close posting period, then we can do goods receipt?
    What means MMPV?
    What's the different material posting period and financial posting period?
    Thanks,

    JC,
    You are asking the wrong people
    Closing a period is a business decision.  When you close a period, certain records are written that enable your FI and CO people to close their financial books and produce any required end-of-period reporting.  In most companies that make financial statements on a regular basis, such as value of various types of inventory, they need a clear delineation between one period and the next.
    Closing the period from a Material and inventory perspective (MMPV) creates that clear line.  Once the line is drawn, and the records are written, then everyone can continue making transactions.  The financial data can then more easily be extracted, and reports written, using data produced during the  period close procedure, instead of trying to create reports while transactions are continually updating the inventory and other accounting type information.
    So, ask your Accountants in your company why they want you to close your MM records each period.
    In addition to Inventory records, other types of transactional data relative to accounting must also have similar "clear lines" drawn between reporting periods.  These are the Financial closings you are talking about.
    Regards,
    DB49

  • Why need to link credit memo with invoice

    Hi, gurus,
    I received an AP invoice valued $2222 and then received a credit memo valued $222 about 1 week later.
    Now I need to make payment.
    I was told it's good to link credit memo with invoice by entering invoice number in the field "invoice reference" when creating credit memo. But I'm not sure why it's better because system will pick up both items anyway when i entered $ 2000 using f-53 to make outgoing payment.
    The only reason i can think of is this link will guarantee that credit memo has the same terms of payment with invoice.
    Is there any other good reasons? Any help will be appreciated.

    Dear,
    We need to link credit memo with invoice against for two obvious reasons
    1.. Future tracking of all credit memo i-e if we gave excess credits to vendor then it was against which invoice. This will create linkage and tracking of credit memo with invoice that will be shown in FBL1N .
    2..At the end of specific time period ,month or quarter ,its a normal practise to reconcile vendor balance as per SAP ledger to that of vendor's own book. At that time you will need credit memo track also that against which invoice was the credit given.
    This all can be achived after posting credit memo with refrence to invoice number. Audit perpective should also be kept in mind. Hope this will help you
    Regards

  • What is FI documents used for? Why needed in SD?

    Hi,
    Do you know what exactly the 'FI Document' means as mentioned in below:
    "In the Order to Cash Cycle, Invoicing is the last step. A Customer Order has to be Invoiced to receive money from the Customer. Therefore, it necessitates that a FI Document be created along with the Billing Document (Invoice) in SD."
    Why we need FI document since there has billing document already..??!! And what is FI documents..How to check in the system..
    Thank you very much!

    Dear Laa,
    When ever sales value will be posted to the accounting the FI document will generated for the respective transaction.
    In the fallowing areas FI documents will be generated in Sales and Distribution.
    -->When we do the PGI in the delivery document FI document will created for Cost of goods sold.
    --> When we generate invoice the invoice will be posted to accounting here also accounting document will get generated.
    How to see the FI document :-
    -->Go to VL02N transaction enter delivery document number then click on document flow Icon sytem will take you to the document flow screen here you dobule click on Post goods isuue now system will take you to next screen here you can find accounting document.
    -->Go to VF02 transaction enter in to your billing document after entering in to it there is Accouinting  push button click on it now system will take you to the accounting document screen.
    Or Click on Document flow Icon system will take you to document flow details screen here you can find acounting document.
    I hope it will help you,
    Regards,
    Murali.

  • Why need to sign the jar files ????

    Hi
    Why does i have to sign the jar files to run my app ??
    are not another away to run the app???

    U just have to sign your jar if your application needs full access to the client-resources.
    http://java.sun.com/products/javawebstart/docs/developersguide.html
    andreas

  • Why need to restart server while modifying the servlet class

    Hi,
    i have some doubt, i hope any one can clear my doubt about servlet
    why we need to restart the web container while every time we modify the servlet class code
    Thanks & Regards
    vijay

    When you deploy a web application to a web container, you are deploying the
    .class files of your servlet not your source code. There is no servlet source code on the container (shouldn't be).
    So if you change your source code, the container knows nothing about it until you compile the code
    to create new .class files and then replace the container's class files with the new ones.
    You can configure most servers for hot deployment and/or start them in debug mode to ease the cycle during development.

  • Why need a NLS for Hana?

    Just a thought to ponder on:
    Why do we need IQ or any other system as a NLS for Hana?
    Would it not be more efficient to increase disk capacity by adding a SAN to Hana and storing cold data as columnar tables with a never load into memory option?
    Does this not make for a simpler architecture and lower TCO?

    Hi John
    True, it would be nice if SAP could combine the in-memory capability of
    Hana with the disk based column store capability of IQ.
    Getting clients to commit to buying HANA is tough enough in South
    Africa, but to get them to commit to spending extra for IQ is almost impossible.

  • Why need the Lr and Ps serial numbers when the Br not needs?

    I bought today CC for photographers (LR, PS, Br). The Br runs fine. But the other two programs want serial numbers. Why?

    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Ask for serial number http://forums.adobe.com/thread/1234635 has a FAQ link
    or
    Online Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • Why need credit card to create apple id??

    I have try to create apple id for my aunt but why i need to have credit card to do it???
    Before i dont need credit card at all
    Please help

    Usually just confirms the country you live in - you might not be going to make any purchases from the store but Apple are going to assume you will, and you can only buy from the store for your own country for copyright reasons.  The credit card number verifies the country you are living in.

  • Why not attach/detach in place?

    Calls to makePersistent persist objects in place, but attach/detach calls make copies. Why is there no functionality to attach/detach in place?

    Hello,
    Try clear your recent history:
    *[https://support.mozilla.org/kb/remove-recent-browsing-search-and-download-history Clear recent history]
    Check if this happens in safe mode:
    *[https://support.mozilla.org/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in safe mode]
    Verify if your plugins are updated:
    *[https://www.mozilla.org/en-US/plugincheck/ Plugin check]
    Try go to '''about:config''' and check if this option '''plugin.state.java''' is seted to '''true'''
    *[http://kb.mozillazine.org/About:config about:config]

Maybe you are looking for