How to find form descriptor, that attribute is a collection

Hi, simple question. How to find form descriptor, that attribute is a collection?
I got a class name and attribute name (java attribute name not the name of a column in db). I need to decide if attribute is a collection = many_to_many/one_to_many mapping. I can use a reflection but I find using Toplink metadata better, because I need this information for qenerating Toplink query.
This is how I can get mapping for attribute. How to continue? Is it a flag or what?
Descriptor d = serverSession.getDescriptor(MyClazz.class);
DatabaseMapping m = d.getMappingForAttributeName("attributeName");
Thanks
Fero

I found this solution:
Descriptor d = serverSession.getDescriptor(MyClazz.class);
DatabaseMapping m = d.getMappingForAttributeName("attributeName");
boolean isCollection = m instanceof OneToManyMapping || m instanceof ManyToManyMapping;
Is it OK? Or is there something better?

Similar Messages

  • HT4995 How to find iphone 4s, that was stolen?

    How to find iphone 4s, that was stolen? Is it real to see location of it?

    You can see its location if all of the following are true:
    - You enabled Find my iPhone on the phone before it disappeared
    - You set up an iCloud account
    - The thief did not turn the phone off, remove the SIM, restore the phone or wrap it in aluminum foil
    - The phone has cellular data coverage
    If you enabled Find my iPhone just log in to iCloud and click the Find my iPhone icon.

  • How to find forms dead sessions in 11i

    Hi,
    can any one tell me how to find forms dead sessions in 11i from Unix
    Thanks

    Please refer to:
    Note: 457381.1 - Troubleshooting Tips For Spinning/Hanging F60WEBMX Processes
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=457381.1
    The note refers to another note with a script which should be helpful in finding spinning f60webmx processes and tie it back to the application users (Note: 185762.1).
    In addition refer to Note: 177610.1 - Oracle Forms in Applications FAQ (What is FORMS60_CATCHTERM?)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=177610.1

  • How to find the TCODE that is created for the table maintanance generator

    Hi ,
    How to find the TCODE that is created for the table maintanance generator of particular table,if we only know the table name.
    Regards
    Ramakrishna L

    Hello,
    I try it this way
    1. Goto SE16 --> enter table TSTCP.
    2. In the selection-screen displayed, enter
    PARAM = *<ZTABNAME>*
    You will get the t-code for the TMG.
    BR,
    Suhas
    PS: Are you sure a t-code has been created for this TMG ?

  • How to find the file that delete from time capsule?

    How to find the file that delete from time capsule?

    I mean I saved JPEG file in Time capsule and unfortunately delete the file. Can I get it back
    IF.... .no other backups have occured since you deleted the file, you might be able to retrieve it using an application like Disk Warrior. It's about $100 as I recall, and there are no guarantees that it will work.
    DiskWarrior 4 - The Disk Utility for Mac  Disk Repair, Mac Directory ...
    Any of the free or low priced utilities that you might see or try will not be able to retrieve a deleted file from a Time Capsule.
    If any backups have occured since you deleted the file, the deleted file has almost certainly been overwritten. No way to retrieve it in that case.

  • Could you please tell me how to find the cause that made I/O high

    Could you please tell me how to find the cause that made I/O high
    please let me know

    hi ,
    Without any backgound inforamation it is very difficilate to help u out .
    Please Provide the statpack/Awr report durring that priode. oherwise top 5 wait event. so we can give some suggestion on this.

  • Newbie Question: How to find Forms/Reports Server Version

    Hello,
    Is there a way to easily find out what is the patchset installed for the Forms and Reports Server. I know that presently using AS 9i rel1 and Forms 6i, but how do you find out more information on the installed patches on Windows? thanks

    Please see these threads.
    how to find the developer version
    Re: how to find the developer version
    Report Builder version
    Re: Report Builder version
    Form patch set level
    Re: Form patch set level.
    Always search the forum before posting similar questions.
    Thanks,
    Hussein

  • How to find the value that is in structure???

    hi experts,
                 i am changing standard form QM_INSP_RESULT I have an field MITTELWERT in QGRES
    ie QGRES-MITTELWERT where QGRES is a structure .i need the value that is present in the field.How to find it.

    Hi Manikandan Muruganandham ,  
    To find fields the refined search is through Transaction SE84.
    Go there and find the fields of your choice.
    1> <b>ABAP DICTIONARY</b>
    2> <b>FIELDS</b>
    3> Select <b>Table fields</b> to know where you can find the field of your choice.
    Reward Points if useful.
    Thanks,
    Tej..

  • How to find all photos that have NO faces, as opposed to UNNAMED faces?

    I find that iPhoto often misses faces entirely, especially if the face is wearing sunglasses or a hat or both.  Sometimes it is rather inexplicable that it has missed a face, as the face seems obvious.
    If you use the smart album method to find all "unnamed" faces, the photos have at least one unnamed face identified.  You can then add any missed faces to those photos.
    But what about photos in which iPhoto has failed to identify the existence of even one face?  Or for that matter, if I want to see only pictures of landscapes or objects that have no people?  Does anyone have a method for finding all photos that have no faces in them at all?
    For me, the idea is to find all unidentified faces and add them.  But as I pointed out above, there may be other uses for this.
    Any ideas, anyone?
    Thanks

    Awesome !!! Thank you very much. I did not realize you could use JavaScript to code against iTunes ...
    I don't know if you have written any of these yourself, but do you know how to maybe create a smart playlist with this information via script? If not, no big deal. At least I know have something which I can use, I will just have to run it every so often.
    Thanks again for pointing me to that site!

  • How to find the query that generates print preview?

    Hello,
    How can I find the query that gets executed to generate  print preview? On SAP Business One client if I open a Sales Quotation and click on print preview a report is generated. What queries are run in the background to generate this report?
    Thanks for your help.
    Regards,
    Sheetal

    Hi Sheetal,
    In such cases i am using a Profiler which is connected to my company's database. If you are using SQL-Server, the start the "Profiler", connect it to your database server and start the trace. When the trace is running, execute the SBO action. After you executed this action you will see in the profiler the excuted SQL-Statements.
    Regards,
    Christian

  • How to find the message that processed a file

    Dear guys,
    I need to find the message that have processed a text file. Using sxmb_moni  I can see this information on DynamicConfiguration log but I don't know how to search this string text in all messages that were processed.
    Thanks,
    Helio Paixao

    Hi Paixao,
    As michal you need to have the EhP1 (enhancement package 1 for PI)  or if you have installed trex then you can see this blog on how to find:
    /people/prasad.illapani/blog/2005/11/14/payload-based-message-search-in-xi30-using-trex-engine
    Else some other nonstandard ways through which you can get are shown in this blogs:
    /people/sravya.talanki2/blog/2006/02/21/abap-based-trex-in-xi-proto
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Regards.
    ---Satish

  • Urg : how to find form for standard transactions

    Hi
    How to find smart forms for standard transaction and how to call or change the existing form to another zform .how to implement the  forms ..
    give helpful hints.
    thanks
    suresh

    Hi,
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    regards
    Sudheer

  • How to find form names in Gems

    Hi Friends,
    We are using the SAP Portal,through portal we are changing the bank information.Here my question was
    how to find which form is used for bankinformation change?
    How to find the form name?
    Thanks in advance.
    regards,
    Venkat

    Hi Venkat,
                    "TNAPR" is the table were you will get all the information.
    Regards,
    Sathish

  • How to find apple id that i was entered on icloud iphone 5s

    I don't remember my icloud account that i was entered on my iphone, but i have password. How to find your apple id that i entered to phone to unlock ?
    Now i am stay at activate screen, my imei is: 358825057543363.
    plz help me

    See this
    Apple ID: How to find your Apple ID

  • How to find forms/reports version 11i EBS

    Hi Gurus.
    one of my colleague asked me to find out forms/reports version in 11i system on Linux OS.
    Thanks

    Please see these threads.
    how to find the developer version
    Re: how to find the developer version
    Report Builder version
    Re: Report Builder version
    Form patch set level
    Re: Form patch set level.
    Always search the forum before posting similar questions.
    Thanks,
    Hussein

Maybe you are looking for