One BMP for several postgresql tables

Hi all,
I want to solve a problem with a BMP which represent many tables in a Postgres database. Each tables have 3 columns : id, name and image.
My problem is when I want to get the lines from a table, the ejbLoad() method is not done by the bean when the id have ever been known before for an other table :
example :
Table1
id=1 ; name=toto ; image=toto.jpg
id=2 ; name=tata ; image=tata.jpg
id=3 ; name=titi ; image=titi.jpg
Table2
id=2 ; name=tutu ; image=tutu.jpg
When I get all lines from Table1, it works fine but when I ask for Table2, it returns : id=2 ; name=tata ; image=tata.jpg instead of id=2 ; name=tutu ; image=tutu.jpg.
Is somebody knows how to force the ejbLoad() to look in the database or knows another solution to solve this problem ???
Thanks a lot for response.
Nicolas

Hello Nicolas,
I'm not an expert in this field by any means so please feel free to question anything I say :)
Please correct me if I'm wrong, but I don't think you can manage (without terrible pain and suffering, if even then :)) a BMP Entity Bean representing more then one table unless the relationship between the represented tables is one-to-one (even then I see a lot of problems with primary keys).
I understand that this might be a software design requirement, but I think you'll have a lot of problems with it. Also, if you consider Table 2 to be an 'extension' to Table 1 (which I don't suggest doing) then you have a referential integrity problem.
In my opinion (and this I interpreted from people that are experts and authority in the field) an Entity Bean is really meant to be mapped to only one table in a (relational) database.
Please consider this if it's an option.
Nikola

Similar Messages

  • One check for several vendors

    Hi Gurus: I am trying to create one payment for several vendors. I tried F-58 and it works fine. I also created a unique payment method to map to a specific account. The business requirement is "How can we pay one check to American Express" for several invoices from several vendors". So I added American Express as an alternative payee to each of the vendors. All works fine except that the client wants the record on the FCHX file that is sent to the bank as well as one check for that vendor. FCHX means that we would need to use F110 & not F-58. However in F110 I cannot group several vendors to be paid by one payee...correct?
    Any help with be GREATLY Appreciated!
    thanks
    Brian

    Hi,
    I'm afraid I don't have an answer but I'd like to highlight the question/thread since we have the same issue.
    We have several cases of invoice documents that needs to be posted to different vendors, because we need to report the Accounts Payable on the different vendors' VAT numbers for legal purposes. The payments for several documents might, however, be going to the same payee. I.e. we might have ten invoices booked on ten different vendors but with only one payee.
    We are using the alternative payee/permitted payee functionality but the problem is that F110 generates one payment document per vendor. We would like to have one document per payee. This is possible in F-53 or F-58 (where I can manually select several vendors in the same clearing) but we need to use F110 since we are generating both check printouts and DMEE files for these payments. The bank charges us a fee for each payment, so in the example mentioned they would charge us ten fees instead of one. So it is very costly if this cannot be solved.
    Any suggestions? The setting mentioned previously in this thread does not help.
    Many thanks in advance for your input!
    /Michael

  • One application for Several Organizations

    Hi experts,
    Can we use one Application for Several Organizations? I studied in HFM Admin Document. We use only one organization in our project.
    Can we use this application for another Organization?
    by
    kumari

    Hi,
    I can say that you can use as many.organisation as you want but there are same parameters to take into consideration.
    First,what do you mean by organisation. Group or number of groups?
    Second, how many entities has each organisation. Have you the necessary infrastructure (server, cpu power, RAM)to support these calculations.
    Hope that I help,
    Thanos

  • One MDIS for several MDS

    Hello,
    Is it possible to use one MDIS for several MDSs?
    For example, configure mdis.ini in the following way:
    [GLOBAL]
    String Resource Dir=E:\PROGRA2\SAPMDM1.5\IMPORT~1\LangStrings\
    Log Dir=E:\PROGRA2\SAPMDM1.5\IMPORT~1\Logs\
    Server=MDS1,MDS2,MDS3
    Best regards,
    Dale

    Hi Dale,
    This is indeed a good question and i tried this as well but it is not possible to use more then one MDM Server with one Import Server. When you make the entry in MDIS.ini against the server attribute, it treats that as a single string hence if you specify more than one server name it will not recognize even the single.
    Hope it helps.
    Regards,
    Jitesh Talreja

  • Dimension which belongs to only one of the several fact tables

    Hi,
    I'm newbie in BI. I have good knowledge of DW and Administration (OCP).
    Firstly could you give me, please some link expalining aspects of creating "Business Model And Mapping" better than SE Tutoarial.
    Now how my problems looks like :
    I have several fact tables and dimensions.
    But not all dimensions are shared among all facts.
    So when i try to put in Answers measurements from all facts it's ok - results are retrieved.
    But when i try to add to report some Dimensions attributes which belongs to only one of the facts all facts measurements are gone except measurements for fact table to which dimension attribute is linked to.
    I think i know what is the reason but i don't know how to simply solve it :
    Below is session trace excerpt only with facts measurements :
    RqList
    Liczba Transakcji:[DAggr(Fakty - Transakcje (ZSFK).Liczba Transakcji by [ Słownik - Daty.Nr Miesiąca, Słownik - Daty.Miesiąc Rozliczenia, Słownik - Outlety.Outlet Numer (MID), Słownik - Outlety.Outlet Nazwa, Słownik - Terminale.Nr Terminala, Słownik - Daty.Rok Rozliczenia] )] as c7 GB,
    Kwota Opłaty Netto:[DAggr(Fakty - Opłaty za Terminale (CBD).Kwota Opłaty Netto by [ Słownik - Daty.Nr Miesiąca, Słownik - Daty.Miesiąc Rozliczenia, Słownik - Outlety.Outlet Numer (MID), Słownik - Outlety.Outlet Nazwa, Słownik - Terminale.Nr Terminala, Słownik - Daty.Rok Rozliczenia] )] as c11 GB,
    Below iis session trace excerpt with facts measurements and added dimension attribute:
    RqList
    Liczba Transakcji:[DAggr(Fakty - Transakcje (ZSFK).Liczba Transakcji by [ Słownik - Rodzaje Walut.KOD_WALUTY, Słownik - Daty.Nr Miesiąca, Słownik - Daty.Miesiąc Rozliczenia, Słownik - Outlety.Outlet Numer (MID), Słownik - Outlety.Outlet Nazwa, Słownik - Terminale.Nr Terminala, Słownik - Daty.Rok Rozliczenia] )] as c7 GB,
    Kwota Opłaty Netto:[DAggr(Fakty - Opłaty za Terminale (CBD).Kwota Opłaty Netto by [ Słownik - Rodzaje Walut.KOD_WALUTY, Słownik - Daty.Nr Miesiąca, Słownik - Daty.Miesiąc Rozliczenia, Słownik - Outlety.Outlet Numer (MID), Słownik - Outlety.Outlet Nazwa, Słownik - Terminale.Nr Terminala, Słownik - Daty.Rok Rozliczenia] )] as c12 GB,
    Second plan is the plan when report retrieves only results for one fact table and null's for others
    Problem is with attribute : "Słownik - Rodzaje Walut.KOD_WALUTY" which is from dimension which belongs only to one fact table.
    So other fact table are not linked to this dimension and therefore this plan cannot retrieve results for them.
    It is obvious that some of the facts cannot share some dimensions with others but i would like to join them on other common attribute
    and my question is how ?
    Thanks's in advance Arkadiusz Masny
    Edited by: Arkadiusz Masny on Dec 10, 2009 6:49 AM

    It's normal behavior. How would fact measure know the value for accurate "non-fact" dimension
    Workaround:
    First solution is:
    Add into logical source of each fact (in logical layer) tables to which belongs dimension attribute and join dimenstion to that fact.
    Second you may:
    Create fact table which join all needed dimensions with some useless fact ( i.e. count). Next you have to set option "Implicit Fact Column" in presentation catalog to use this fact table.
    I can explain it to you in Polish by mail or phone
    You bring me a next topic for my blog (in Polish) http://obiee.pl so I'll write sth about such behavior :)
    Regards

  • One sequence for multiple lookup tables?

    I am sorry if this is off-topic, however can anybody advise what is better - use one sequence for all tables (lookup tables) or to create unique sequence for each table?
    Thanks
    DanielD

    Daniel,
    After you read this (http://asktom.oracle.com/pls/ask/f?p=4950:8:::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:2985886242221,), you may be sorry you asked.
    Scott

  • One spool for several archivelink object

    Hello,
    I would like to create a single pool to print several archivelink object ?
    THanks
    Best regards

    Hi Aurélien :
      Could you explain your solution?.
      I have to create one spool for each document linked to a specific invoice and don't know how to do it.
    Best Regards,
    Carlos.

  • One order for several maintenance equipment

    Hi
    Is it possible on SAP-PM to create an order for several equipment
    Thinks

    hi
    The object list is a central part of the order. You use it to assign technical objects, notifications or objects, which are identified by a combination of material and serial numbers, to the order.
    When you make entries in the object list for an order, you are linking it to the objects you enter. When you make entries in the object list for an order, you are linking it to the objects you enter.
    Even if no reference object has been entered for the order on the header data screen, you can still assign technical objects, notifications or objects, which are identified by a combination of material and serial numbers, to the order in the object list
    Two features are available for the object list:
    An object list, in which you can enter technical objects (equipment, functional locations, assemblies) and notifications
    An object list, in which you can enter objects, which are identified by a combination of material and serial numbers, and notifications
    Which of these two versions is used in the order depends on:
    The choice of reference object in the notification/order
    The view setting for the Reference object frame in the notification/order
    If you create the order with reference to a notification, for which a reference object has been entered, the system copies the reference object from the notification as the reference object for the order. The system writes the notification number in the order header and in the object list for the order.
    You can group together several notifications that can be processed together using a "worklist for notifications" for a maintenance or service order. In this case, the notifications are also included in the object list of the order
    check
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/ae2ed74b8611d182ba0000e829fbfe/content.htm
    -ashok

  • One model for several tables

    Hello!
    I want to use one model in two tables.That's why within Model(in getModel method) I must know what table request my Model.
    How can I do that?

    Two different Table Views have data from One table in DB, but with different selection filter.
    That's why I want to use one model class with variable in it, that contain name of request TableView.

  • One payment for several invoices to one vendor

    Hi,
    I have one  question related to the payment run F110. In many cases we pay several invoices in one payment to a particular vendor. Then in reference - only one invoice number is visible. Then we receive loads of phone calls with questions about a list of invoices included in a particular payment.
    Could you please advise if there is an option to have all paid invoices visible in the payment reference field or is there a possibility of generating payment advices when the payment is generated in SAP.
    We are using paymethod H& K for payment to vendor.
    Kindly give us a solution in this regard.
    With Best Regards,
    Amit Paul

    Hi,
    We can get the details of all invoices which are paid with one payment document in tables REGUH & REGUP.
    You have built the custome payment advise Form using the above tables.
    You can display the required details in F110 frm menu select Edit -Paments -> Payment List
    Thanks,
    Vijay

  • How to use one URL for several Oracle AS?

    Hi folks,
    how do I use one URL to access several application servers (i.e. for different applications).
    Example:
    We have one URL:
    www.test.com
    In our DMZ, wie have three application servers and one web cache:
    test1.intranet.com:7777
    test2.intranet.com:7777
    test3.intranet.com:7777
    webcache.intranet.com:8000
    One application server is no problem. In Web Cache, i just map site www.test.com:443 to AS test1.intranet.com:7777.
    But what is the correct setting, to access all three Oracle AS over one URL? I tried URL PATH Prefix. Then i am able to access all three Oracle AS, but the application server does not know the Path.
    Example for mapping:
    www.test.com:443/server2 -> test2.intranet.com:7777
    When I access www.test.com:443/server2, I get redirected to the correct AS (test2.intranet.com:7777), but the Oracle AS does not know the path /server2.
    How do I have to configure the Oracle AS?
    Thanks in advance and best regards.

    I setted up a proxy and at first glance,
    it works fine. The problem are internal links. Some links redirect to the
    machine name, which is of course not accessible from outside our dmz.
    My httpd.conf entries:
    ProxyPass /test1infra/ http://test1.intranet.com:7777/
    ProxyPassReverse /test1infra/ http://test1.intranet.com:7777/
    ProxyPass /test1mid/ http://test1.intranet.com:7778/
    ProxyPassReverse /test1mid/ http://test1.intranet.com:7778/
    When I now access (for example) www.test.com/test1infra/pls/orasso I get
    redirected to www.test.com/pls/orasso, which is another Oracle AS!
    How can I prevent my OracleAS doing this? It has to "know" that all its internal urls need a url path prefix.

  • One effect for several clips

    is there a way to throw a color filter for example onto a group of several clips at once ? I know the general procedure,like when the whole group of clips are highlighted and you drop one in ,the whole group of clips light up brown but only one clip holds the actual effect menu.
    Thanks !!!!!!

    There are a few ways to do this. The simple way is to apply the filter to one clip. Open it into the viewer and change the parameters as you like. Select all the other clips and drag the filter name from the viewer onto the other clips. They all have the same setting.

  • If using one computer for several iPods/iPads etc can you have more than one iTunes account.  iPods/Pads etc have a variety of user names

    We have three of us with a selection of iPads/iPods all downloading through one desktop computer.  Can we set up more than one library on the desktop so each person only sees there only downloads/music etc.

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here... http://support.apple.com/kb/HT1495
    Create a New User Account for each User.
    Then Each user will have their own iTunes library..
    More Info Here >  cnettv.cnet.com/use-two-iphones-one-computerl

  • One SAP for several company

    We are using SAP as our ERP system. And now, we would like to add one more company into the system, Actually, the business of new comapany is totally differ to our existing business, and they are two entity. I would like to know, we use the existing to add new company or separate it into new SAP system. If add it into existing, anythings we have to concern. Thanks!

    The way you described the New company term in different posts, it's really confusing. Is this only a separate company code along with other related Org. Units? And the some extra user for that? If yes, you can go on creating them in the same client and create separate role structure (with different naming convention) for better security and assign them to the new users.
    And if it is different like: You are running one Cosmetics company through SAP and now want to implement SAP for other company, say Medicine,..... then you should forget about tampering your existing SAP Landscape. Please use new setup (hardware, OS, DB, ERP i.e. SAP etc...) for this.
    New client in the existing Boxes will become Night mare in future.
    Regards,
    Dipanjan

  • How do I Create and Manage one library for several computers

    As our family has grown over the years, we have 4 kids and 6 macs and duplicate images scattered thought all the separate computers in their own libraries. Is there a way to create and manage one central library that all computers access? That way we can reduce the headaches when we need an image and have to go to each computer and search it's library. Not to mention when we need to jump on a computer and it doesn't happen to be the one we have our library on and need to download our pictures and they end up forever lost on a different computer.

    You cannot share a library over the network, since a library needs to be on a locally mounted volume, but you can put a shared library onto a "sneaker drive" and plug it into each of your mad in turn, see Apple's support document:
    iPhoto: Sharing libraries among multiple users  http://support.apple.com/en-us/HT201517
    iPhoto does not support to merge libraries. But iPhoto Library Manager can.
    You can download it here:   http://www.fatcatsoftware.com/iplm/
    See : http://www.fatcatsoftware.com/iplm/Help/merging%20libraries.html
    Or, if you have Aperture, you can use it to merge libraries. Aperture 3.3: How to use Aperture to merge iPhoto libraries

Maybe you are looking for

  • The GPS on my iPhone 5 does not show a map of any kind?

    The GPS on my IPhone 5 does not display any map, is just gray with a red dot?

  • Lenovo A6000 keeps rebooting after upgrading to Kraft-A6000_S029_150212

    I just updated my new Lenovo A6000 smartphone to Kraft-A6000_S029_150212 version. Since then, it is continuously rebooting. It comes up, stays for 5 seconds, UI hangs and then reboots.Need urgent help on how to recover.With great difficulty, was able

  • How to use Simulate model in product configuration?

    Hi, May i know how to use (step by step) simulate model in product configuration? and what is the function of simulate model? Regards, Rhesa Syahrial

  • ActiveX in LV 6i

    I have a problem with activex in LabView 6i. When I open "Write Table to XL.vi" or one of the other examples in LabView, I recieve an error in the error indicator: "Old format or invalid type library. in Open Excel and Make Visible.vi->Write Table to

  • Servlet Access

    Hi, I want to access a servlet from an applet. I am using getCodeBase() to get the first part of the URL for the servlet. I am using Apache Tomcat as the servlet container. This uses a different port from the Web server. Is there a way I can detect t