EclipseLink Direct Map with Joining mapping issue

Hi EclipseLink Team,
We encountered an issue to map an attribute as Direct Map with Join Fetch enabled in EclipseLink Workbench 1.1.1 (Build v20090430-r4097).
Basically, we have the following data model:
SESSION
SESS_NO (PK),
PARAM_SESS
SESS_NO (FK) (PK),
PARAM_NAME (PK),
PARAM_VALUE
Then we have Session.java persistent entity associated with SESSION table. This class contains Map attribute sessionParameters which we map as Direct Map with PARAM_SESS.PARAM_NAME as key and PARAM_SESS.PARAM_VALUE as value (referenced by PARAM_SESS.SESS_NO = SESSION.SESS_NO).
The described mapping works fine without Joining enabled (both for Lazy and Eager Loading).
But we have cases when we want to get parameters for a number of sessions. And disabling of Joining leads to a number of performed SELECT SQL queries (both for Lazy and Eager Loading) those are bad for performance.
So we have chosen the Eager Loading and set the Join Fetch option to Outer. Then we have got the following:
I see in the log the only SQL query performed: SELECT DISTINCT t0.SESS_NO, …, t1.PARAM_VALUE, t1.PARAM_NAME FROM {oj SESSION t0 LEFT OUTER JOIN PARAM_SESS t1 ON (t1.SESS_NO = t0.SESS_NO)}. This is pretty good for us. This query returns exactly what we expect when executing on the database. But the Map attribute for every session is populated incorrectly: Maps are empty (not corresponding to available relational data).
Could you please let us know if this is a bug, or kind of known issue or we made something wrong? Some hints and proposals would be very helpful and appreciated.
I should mention that for now we want to map all of this for read only purpose.
Thanks.
Best Regards,
Alexey Elisawetski

James,
I've tried both 1.2 release and 2.0 (v20091121-r5847) but received the same result - empty Map.
Moreover, for both versions the following string was absent in deployed XML file:
+<direct-key-field table="PARAM_SESS" name="PARAM_NAME" xsi:type="column"/>+
Therefore, on application initialization I have got an exception: org.eclipse.persistence.exceptions.DescriptorException with message This descriptor contains a mapping with a DirectMapMapping and no key field set.
So I was forced to add the line manually.
This seems buggy to me...
Regards,
Alexey

Similar Messages

  • How to use Google Maps with dvt:map ?

    http://www.oracle.com/technology/software/products/mapviewer/text_files/mapviewer1112_readme.txt
    http://www.oracle.com/technology/software/products/mapviewer/index.html
    Native support of Google Maps and Bing Maps API. You can now display
    Google and Bing maps natively in your Oracle Maps (JavaScript)
    applications. Please check out the online Oracle Maps JSDoc API on
    how to use the new classes.Unfortunatly it looks like it's not possible with dvt:map
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12418/tagdoc/dvt_map.html
    It's an important requirement for our project and probably for many ADF customers.
    I would like to know if :
    Is there any way to use Google Maps with dvt:map ?
    Otherwise, is there any plan to support it ? Should we expect it within a year ?
    Else, I think we will use directly the Javascript Oracle Maps API but we will miss the built-in functionnalities of dvt:map
    Thanks in advance,
    JP

    Any news about this theme?

  • OBIEE 11g - Maps with Google Map as Source

    Hi Experts,
    Am trying to create some maps using information from Google Maps as source.
    In Map-viewer console, I have added Google Maps as the source in 'Manage Map Tile Layer' and was able to see the base map when I did a 'View Map/Manage Tiles'.
    However when I logged into analytics and tried to import layers, am not able to see anything.
    Is there anything that I am missing out. Thanks for any pointers.
    - Sujana

    Spatial data has to be setup in the database to get layers. I tried using some of the layers from the spatial data I had and then could get a map with google map as the background map.
    But couldn't find any easy alternate to fetch layer information.
    Edited by: user638087 on Apr 19, 2013 1:15 AM
    Edited by: user638087 on Apr 19, 2013 1:17 AM

  • ABAP Mapping with Value Mapping

    Hi folks,
    Anyone knows if it is possible to query a value mapping table inside an ABAP mapping?
    Thanks in advance,
    Ricardo.

    Hi Bhavesh,
    Thanks for your prompt answer.
    I’m already using the Value Mapping with Master data Replication on several graphical mappings. Unfortunately, some changes happened for one mapping program, the complexity increased and the graphical mapping doesn’t fulfill these new requirements. So, I thought to use ABAP mapping, because is a language that I know well.
    I understood your concern; we are talking about two levels, ABAP and Java stack. It will be needed a call from ABAP stack to Java Stack, but maybe there is an API for that? But, about system performance, I guess Value Mapping its better then RFC lookup, right?
    My mapping problem is: I need to generate two nodes (not a field) every time the code “MODI” (modification) comes in a source field. Inside these two nodes, I have to fill a field, into first node, with an old id and for the second node with the new id.
    I can’t found any standard function to fulfill this requirement. Maybe this is easy with UDF, but I’m not filling comfortable with Java and I don’t know how to do it. If you know, please let me know.
    Thanks in advance.
    Regards,
    Ricardo.

  • Mapping with joiner operator cannot be validated/deployed - why?

    hi guys,
    i want to join two oracle tables with a flatfile in a mapping and output it into a new table (staging_table).
    so i created a new mapping, imported the sources and drag-drop the joiner operator. i connected the the sources with the joiner and set the how to join in the operator properties. finally i connected the join-output with a new table.
    problem: validating this mapping did not work!! the validating report did not even put an error or warning, it just says "wasnt validated".
    anybody any idea ??
    greetings
    s8472

    Hello,
    I\m not sure you could combine within one mapping flat file and tables as a source. The thing is – if you are creating a flat file–to-table mapping OWB will generate control file for Oracle Loader as a result.
    I’d advice you to cover your flat file with an external table, and this external table could take place of the flat file in your mapping. Everything will work fine.
    Sergey

  • Print Map with Oracle Map

    I am using Oracle MapViewer 10.1.3.3. In Oracle Map demo, there is a sample for map printing by using style class (noscreen and noprint) for HTML div. However, my application is using Oracle ADF faces, which don't accept a "class" attribute in the tag. Does anyone know how I could print map image only with ADF faces?
    Thanks!

    FOP : [http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html]
    Cocoon: [http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html]
    Jasperreports: [http://blog.dunull.org/?page_id=70]
    Thank you,
    Tony Miller
    Webster, TX

  • Visualizing maps with the Map Definition Tool

    Right. I am totally confused with this. I am trying to get the map definition tool working so that I can visualise some map data stored in my database. I downloaded the mapdef.jar file from the otn site and first of all it returned a zip file containing a whole load of class files. When I downloaded it a second time it returned the jar file and when I click on that it opens up a blank grey screen. I am going through the mapviewer manual with a fine tooth comb but am still having problems visualizing even a basic map. Mapviewer is working fine but I need to visualise the data rather than just to construct a map conceptually. My host, port, sid etc. details are correct. Can anyone please tell me where do I go from here!

    You don't 'install' the Map Definition Tool as such. Its just a standalone jar file. You run it using the batch file - that'll look something like:
    java -classpath mapdef.jar;C:\j2ee\home\lib\classes12.jar -Dhost="127.0.0.1" -Dsid="orcl" -Dport="1521" -Duser="scott" -Dpassword="tiger" oracle.eLocation.console.GeneralManager

  • Can i use WebApps to build a Google map with polygon territories instead of points (pins)?

    I built a map with Google Maps Engine Pro - http://www.jmbcompanies.com/Services/Mitigation/map.
    It showcases territories using a Google map polygon shape.  I wrote custom KML to create it.  However, with Google Maps Engine pro you cannot create custom hyperlinks.  It will link a URL that you put in the data, but you cannot name it or target the parent window, so therefore it opens a new tab for each click to more details.  I really want it to open the WebApp detail page for that item within the same window.
    So, is there a way to use the BC integrated Google maps technology and show polygons instead of points on the map? I've used {module_webappsmap,20754,a} to place individual locations on a map, but what about territories or polygon areas?
    I'm sure that I can create a WebApp to generate the KML for each placeholder.  But how do I turn that into a map?
    THANKS!!

    You can not create a kml file in BC through webapps. Modules do not work in other file types and you do not have server code access to generate a file type of results.
    You need to use the google API and do this yourself or you can just use this:
    And embed it into a custom field. My Maps

  • How to pass input parameter (parameterized mapping) to java mapping program

    Hello
    I have a question about the parameterized mapping with Java (PI 7.1).
    In the operation mapping (using Java-class) I defined a inputer parameter (string). I think I am supposed to retrieved the value using:
                    arg0.getInputParameters().getString("myInputParameterName");
    where arg0 is the TransformationInput object.
    However I am not able to get the value, I got runtime exception saying the inputer parameter doesn't exit.
    Then I figured out maybe I need to bind the OM input parameter to Java mapping parameter, just like in case of message mapping, you need to bind OM parameter to MM parameter. However there is no way to define input parameter for the java mapping program.
    Anybody has done java mapping with parameterized mapping?
    Anybody can give any hint for this?
    Thanks
    Jayson

    InputParameters params = container.getInputParameters();
    DynamicConfiguration conf = (DynamicConfiguration) params.getValue(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Edited by: Anand on Dec 10, 2008 4:13 PM

  • URGENT:Problem in a mapping with 8 tables in JOIN and using the DEDUP op.

    I have an urgent problem with a mapping: I must load data from 8 source tables (joined togheter) in a target table.
    Some data from 1 of the 8 tables have to be deduplicated, so I created a sort of staging table where I inserted the "cleaned" data, I mean, the deduplicated ones.
    I made it to make all the process faster.
    Then, I joined the 8 tabled, writing the join conditions in the operator properties, and connected the outputs into the fields of the target table.
    But..it does not work because this kind of mapping create a cartesian product.
    Then, I tried again with another mapping builted up in this way: after the joiner operator, I used the Match-Merge Operator and I load all data into a staging table exactly alike the target one, except for the PK (because it is a sequence). Then, I load the data from this staging table into the target one, and, of course, I connect to the target table also the sequence (the primary key). The first loading works fine (and load all the data as I expected).
    For the next loadings,I scheduled a pre-mapping process that truncate the staging table and re-load the new data.
    But..it does not work. I mean, It doesn't update the data previously loaded (or inser the new ones), but only insert the data, not considering the PK.
    So, my questions are as follow:
    1) Why loading the data directly from the joiner operator into the fact table doesn't work? Why does it generate a cartesian product??
    2) The "escamotage" to use the Match-Merge operator is correct? I have to admit that I didn't understand very well the behaviour of this operator...
    3) And, most of all, HOW CAN I LOAD MY DATA? I cannot find a way out....

    First of all, thanks for the answer!
    Yes, I inserted the proper join condition and in fact I saw that when WB generates the script it considers my join but, instead of using the fields in a single select statement, it builts up many sub-selects. Furthermore, it seems as it doesn't evaluate properly the fields coming from the source tables where I inserted the deduplicated data...I mean, the problems seems not to be the join condition, but the data not correctly deduplicated..

  • Context with counter mapping issue

    I need help with a mapping issue.
    I have a source document that has multiple line items which in turn contains multiple item texts.  This structure has been simplified below.
    Source Sample
    <DOCUMENT>
    ---<LINEITEM>
    <ITEMFIELD>itemfield</ITEMFIELD>
    <ITEMTEXTS>
    <TEXT>text 1</TEXT>
    </ITEMTEXTS>
    <ITEMTEXTS>
    <TEXT>text 2</TEXT>
    </ITEMTEXTS>
    ---</LINEITEM>
    </DOCUMENT>
    Source Structure
    DOCUMENT 1..1
    LINEITEM 0..unbounded
    ITEMFIELD  0..1
    ITEMTEXTS 0..unbounded
    In the target structure, I need to output each line item with a counter to represent the line item number.  Also, I need to output each item text with the line item number it corresponds to:
    Target Sample
    <DOCUMENT>
    ---<LINEITEM>
    <ITEMNUMBER>1</ITEMNUMBER>
    <ITEMFIELD>itemfield</ITEMFIELD>
    ---</LINEITEM>
    ---<ITEMTEXTS>
    <ITEMNUMBER>1</ITEMNUMBER>
    <TEXT>text 1</TEXT>
    ---</ITEMTEXTS>
    ---<ITEMTEXTS>
    <ITEMNUMBER>1</ITEMNUMBER>
    <TEXT>text 2</TEXT>
    ---</ITEMTEXTS>
    </DOCUMENT>
    Target Structure
    DOCUMENT 1..1
    LINEITEM 0..unbounded
    ITEMNUMBER 1...1
    ITEMFIELD 0..1
    ITEMTEXTS 0..unbounded
    ITEMNUMBER 1..1
    TEXT 1..1
    I do not know how to match the ITEMNUMBER in the ITEMTEXTS target structure with the corresponding LINEITEM target structure.  Can anyone help me with this?
    Regards,
    JM

    James,
    I've tried both 1.2 release and 2.0 (v20091121-r5847) but received the same result - empty Map.
    Moreover, for both versions the following string was absent in deployed XML file:
    +<direct-key-field table="PARAM_SESS" name="PARAM_NAME" xsi:type="column"/>+
    Therefore, on application initialization I have got an exception: org.eclipse.persistence.exceptions.DescriptorException with message This descriptor contains a mapping with a DirectMapMapping and no key field set.
    So I was forced to add the line manually.
    This seems buggy to me...
    Regards,
    Alexey

  • Issue in Color Theme on the map with ADF geographic components

    I am facing an issue in bringing up a map using color theme .I can able to bring up a map with color themes using geographic components feature in ADF.
    The problem here is 'Edit Color Map Theme' dialog which lists Map Theme in five categories like continents,counties,countries,states_abbrev,states_names.
    we had implemented map using Color Theme based on the states_abbrev and found it was working properly.
    But after some days we found that the settings we made to work for the map no longer works and resulted in no color theme on the map being displayed on the page.
    It was found that the states_names works properly instead of states_abbrev by that time.
    But again after some days it didnt work with state_names and we revert back our code to follow state_abbrev so as to get the desired result.
    Does somebody know where is the problem and how to approach this issue?

    Quick Install is gone.
    Database repair doesn't work.
    Color coded categories is gone, and as you've discovered Theme colors are gone.
    Print to Excel is gone.
    Many desktop clients that worked with 4.2 do not work.
    It won't work with legacy devces.
    and others.... There are lots of complaints about 6.2 scattered around the forums.  Personally, the HotSync manager keeps forgetting the connections I've set, and goes to default views.
    You aren't missing much of anything, IMHO.
    WyreNut
    Post relates to: Centro (AT&T)
    Message Edited by WyreNut on 02-20-2009 12:18 PM
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Issue with heat maps refresh process in EID 3.1?

    Issue with Heat Maps in EID 3.1? Heats maps don't refresh unless you go back to home page and then again go back to the Endeca app.
    In Oracle Sample app if we open the Map tab we will see that Milwaukee is really hot in the heat map. now if we filter the data to just show data from 100 miles within Orlando, FL then the map will get refreshed to show that area but the colors on heat maps do not change.
    Now if we keep the refinements same and go back to home page and again go back to sample app and maps tabs then it will still show area of 100 miles within Orlando, FL which is good but now heat map would have updated and it would show us correct color.
    Now if we remove the refinement then it would show complete US map as hot which is again wrong.
    I have observed this issue in chrome browser as well as firefox.
    Is there anyway to overcome this issue?

    This issue was resolved after applying latest patch from Oracle.

  • HP Officejet 4500 Wireless Printing Issues with Online Maps & Financial Institutions

    I have an HP Officejet 4500 Wireless printer that I have wireless connection to my HP G72 Laptop running Windows 7 (64 bit) with Internet Explorer 9.  I am having trouble printing online maps from either Bing Maps or Google Maps.  It seems the print jobs get stuck in the print que and always show an indefinite status of “Printing” in the que but never get printed.
    I’ve tested my other applications including Office 2010 and all other jobs seem to print just fine.  I do use the “Print” button located in each of the online Map sites (Bing, Google).  This is when the jobs get stuck.
    I do also have the HP Bing Bar installed with Smart Print.  The Smart Print feature seems to work with the online maps just fine (seems I’ll just use it instead).
    Another separate printing issue is that I can never get any of my online financial transactions to print from any of my online financial institutions with either the Internet 9 print features or the HP Bing Smart Print feature.  I can never get those to print (have to wait for the PDF statements to be available).
    Any ideas as to why I can print the maps or online financial transaction?  I get no error messages either.

     Hi,
    Please use the following tips/instructions to fix:
        http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02221706&cc=us&lc=en&dlc=en
    Good luck.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Issue with user mapping and SAP reference system

    Hello Gurus,
    I have this strange system behaviour when preparing my system for single sign-on using user mapping.
    Case 1.
    In the user management property category, I have the following defined.
    Authentication Ticket Type - SAP Logon Ticket
    Logon Method - UIDPW
    User Mapping Fields  -
    User Mapping Type - admin, user
    In the alias editor, I defined the default alias as SAP_PRD
    Result= when I go to identity management to assign the reference system (the default alias - SAP_PRD)...I do not see the system alias there.
    Case 2:
    In the user management property category, I have the following defined
    Authentication Ticket Type - SAP Logon Ticket
    Logon Method - SAPLOGONTICKET
    User Mapping Fields  -
    User Mapping Type - admin, user 
    In the alias editor, I defined the default alias as SAP_DEV
    Result, when I go to the identity management to assign the refernce system (the default alias - SAP_DEV), I see it there.
    What might be my issue? Does it mean I can't assign SAP reference if I am using UIDPW as logon method?
    Please help me.

    Hi Mahesh,
    Thanks for the feedback. I am relatively new to EP...so please I won't mind if you can guide me on how to go about this.
    This is what I did...
    I chose System Administration > Permissions
    In the PCD, I located my system with the alias, SAP_PRD
    It opened up the permission assignment area.
    Now I have these permissions set
    Administrator - Full Control
    Administrators - Full control
    com.sap.caf.eu.gp.roles.superuser - Full control
    Everyone (built in group) - Full control
    Everyone (Everyone role)- Full control
    super_admin_role - Owner
    For all the above End User box is checked.
    I can't find anyone end user group .
    Once I pick UIDPW, the alias disapperars from the reference system list.
    Please help.

Maybe you are looking for