DAO depends on DAO but different implementation

hi everybody!
i have a problem in my application design ....
I use DAO-Pattern to access objects which are persisted. my DAOs offers some common CRUD-operations. the bussiness-logic (session-handling, transaction-logic) is enculapsed in command-pattern. for the reason that the session-handling and transaction-logic depends on the underlying DAO implementation (transaction-handling hibernate is different to jdbc) there is a implementation dependency between DAOs and Command .... so we have the following structure ...
     DAO...
          User (create,read,update,delete)
          Groups(.....)
          Protocol(....)
     Command...
          UserAdd: start session / transaction ... user-create group-read protocol-create
--- Implementations
     DAO:
          UserHibernate
          GroupsHibernate
          Protocol-Filebased
     Command:
          UserAddHibernateproblem is, that user and groups use a hibernate-implementation and protocol a file-based implementation ... so there are mixed DAO-Implementations in the AddUserCommand.
how can i clean seperate the two implemenations from the other in the commands? because i don't wan't to have a hard-coded dependency to the file-based-protocol in the hibernate-user implementation.
my solution would be to give the user-add command an attribute protocol-dao and call only the attribute in the UserAddHibernateCommand.
but i am not very happy with this solution ... is there any better way?
i hope you understand my problem(due to my bad english gg) and you can help me.

Bill,
This is a bug in the formEditor.vm template. The editor item is not set up to be a dependent item, you can fix this by adding the #ITEM_PARTIAL_TRIGGERS() macro to the <af:panelLabelAndMessage> element:
<af:panelLabelAndMessage #ITEM_PROMPT_IN_FORM() #ITEM_RENDERED_IN_FORM()
#ITEM_PARTIAL_TRIGGERS()
Also, not that you might want to extend your expression to check for '', in addition to null, ADF Faces sometimes returns false when checkinf for an item being null,a and the checking for '' returns true.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How can I let firefox save usernames/passwords for multiple subdomains that use the same username but different passwords?

    on a particular website that has sub domains I have multiple accounts with the same name but different password. Firefox seems only able to save one of them, because they are on the same site.

    "Things"?  What things?  Apps for keeping track of when to change cat litter?  30 different versions of "twinkle, twinkle little star" played by everything from punk rockers to Gregorian chant?  Videos on the best way to make Christmas cake?

  • When importing songs of a same album but different artist iTunes will separate the artists. How can I bring all together in the same album?

    When importing songs of a same album but different artist iTunes will separate the artists. How can I bring all together in the same album?

    Generally setting a common Album Artist will fix things. For deeper problems see Grouping tracks into albums.
    tt2

  • OBIEE report based on same criteria but different view based on filter

    Hi,
    I am trying to create a report in OBIEE 11.1.1.5 where In the same report using the same criteria, I can have different views which applies different filter.
    Suppose, I have a report criteria as
    Dim1, Dim2, Measure1, Measure 2.
    I want to create two pivot view based on the same data.
    One view will be showing data Dim1="Value1". The other view is duplicate of this view but will show data Dim1="Value2".
    Is it possible in OBIEE?
    basically what I want is work on the same dataset but different representation and show them in the same report. Please share your opinion.
    Regards,
    Tanveer.

    Hi,
    You create a new dim dummy column in criteria and in presentation level create new pivot table view use this dummy dimension column and filter with dim1=value2.
    give updates on this.
    Mark if Helpful/correct.
    Thanks.

  • HT3819 How do I share my itunes library with my mother on the same computer, but different accounts?

    How do I share my itunes library with my mother on the same computer, but different accounts?
    My mother and I share a desktop computer (apple) and we have seperate itunes accounts. How do we share accounts?

    iTunes Home Sharing now works between users on same computer - https://discussions.apple.com/thread/3865597
    You could set up two completely separate libraries and share music via Home Sharing.
    iTunes: How to share music between different accounts on a single computer - http://support.apple.com/kb/HT1203 - relocating iTunes' media folder to a shared area but leaving separate library files - extra tip at https://discussions.apple.com/message/17331189
    Chris CA's instructions on sharing one iTunes music library between multiple user accounts - https://discussions.apple.com/message/8974074 - Multiple users using a single library file - similar post at: https://discussions.apple.com/thread/3753008
    Suggestion by Turingtest for multiple users and one library - http://discussions.apple.com/message/9117622 - use smart playlists and tags to isolate groupings.
    Discussions on using purchases from multiple AppleIDs in one iTunes library - https://discussions.apple.com/message/19543804

  • How can i share photos on the same mac but different users?

    how can i share photos on the same mac but different users? we have different iphoto acounts and just want to be able to look under users in the finder and view another users iphoto.

    You may try moving ur librarie to the folder /Users/shared if and link it to iphoto from there
    You may locate and link libraries from arkiv-->change library in iphoto

  • 2 iphones 1 computer. updated my wifes phone to ios 5 her phone got wiped of all apps and all my contacts are on her phone. we had been using the same apple id but different user accounts on our laptop. How do i get her phone back to normal?

    2 iphone 4, 1 computer. i upgraded to ios 5 and just updated my wifes phone as well. her phone got wiped of all apps and all my contacts were put on her phone. we had been using the same apple id but different user acct on our laptop. How do i get her phone back to normal??

    Have your wife log in to her user account on the laptop. Launch iTunes, then connect her phone to the computer with the USB cable. Sync. That should put back all apps and media. Since you already upgraded her to iOS 5 she'll have to manually enter all her settings and preferences, and organize her home screens.

  • I stopped using iCloud after another family member received all my contacts. Now I want to restart using iCloud. How do I prevent this happening again? We share the same Apple id password and credit card but different usernames.

    I stopped using iCloud after another family member received all my contacts. Now I want to restart using iCloud. How do I prevent this happening again? We share the same Apple id password and credit card but different usernames.

    If two of you shared the same contacts you were logged in with the same Apple ID. In order to avoid this you need to use different Apple IDs, and be using separate Macs or separate user accounts on the same Mac.
    One or other of you should create a new Apple ID at http://appleid.apple.com for which you will need a non-Apple email address which hasn't been associated with another Apple ID.

  • My wife and I share a computer, but different Itunes accounts. How do I stop itunes from synchronising her apps to my phone

    My wife and I share a computer, but different Itunes accounts. How do I stop itunes from synchronising her apps to my phone?

    If the music is on the same computer, import the songs to your iTunes library by dragging them into iTunes or choosing File > Add to Library (Mac) or File > Add File to Library or Add Folder to Library (Windows).  If the music is on different computers you can set up Home Sharing to copy the music from one library to the other (see http://support.apple.com/kb/HT3819 and http://support.apple.com/kb/HT4620).

  • I have an older ipod with a large itunes library and a new ipa 2. the both have the same email but different passwords.Can i sink th old ipod's library ith the new ipad's library?

    I have an older ipod with a large itunes library. I have a new ipad2. Both have the same email address but different passwords. Can I merge both itunes libraries?

    Not sure if this helps:-
    The music files, were they bought from your iTunes account or did someone gift them to you after buying from the iTunes account? If they are yours you can download them again if you clear or de-authorise the ipod, it has to be done by whoever gave you the ipod to do this (the registered  owner). If they were bought for you on another itunes account I don't think Apple let you use them as they are copyrighted and they don't belong to you, they belong to the person who bought them. If the music files where ripped from music cd's then click and drag them to a new folder on your desktop and have the person who gave you the ipod to de-authorise and unregister it. Then you re register it and put your files back from your desktop folder in your iTunes folder and synch. Hopefully that would work.  Any files which you did not buy, I would not know how get around this, best bet is to take it to you nearest Apple  Store and explain that they were gifted to you and ask how you can use them.  The best way to gift music files is to buy the gift tokens and give these. Hope above helps.

  • How can I create 2 catalogues (same design but different languages)

    Hello,
    I have to launch 2 catalogues (32 pages) in Indesign, with an equal layout but different languages. My client will need to start them both and won't wait for a agreement on a Master file. He'll update the layout all along the realisation (color, pictures and graphic design).  To avoid waisting time by correcting twice, would you have a tip to link both composition and enhance automatically the background layout and ajustements over and above the languages ?
    What would be the best method ?
    Thanks a lot for your advices !
    Caro.

    Welcome to the discussions.
    In the Accounts tab of Mail's preferences, you can set the Full Name (I don't know how it will be labelled in French - it is the 3rd field in Account Information). This is the name that will be displayed in the From column of the recipient's mail client.
    But if the mail accounts are for two different users, it would be better to set up a separate login account on the mac for each of them, and then set up the mail preferences for the separate users.
    AK

  • I would like to transfer music from my account to my wife`s on the same Mac but different users, i want her to have her own i tunes account but now that she has downloaded all of her stuff in my account , she has to "erase and sync"  how can i troublshoot

    I would like to transfer music from my account to my wife`s on the same Mac but different 2 users (hers and mine), i want her to have her own i tunes account but now that she has downloaded all of her stuff in my account , she has to "erase and sync" all of her stuff when she opens her account which has nothing in it!, how can i send stuff from my i tunes account to hers? same computer different users, how can i trouble shoot please help!!??

    how do i share then? can she upload music if we share it somehow?
    If so how??
    i am also having the same problems now with IPhoto, she has all of her/our pics in my IPhoto library.
    I have told her that now i have bought her the Ipad she would have to log into her user, the only thing is there is no music in her itunes account nor photos in her I Photo library, i have spent all day trying to find a way to "share" but no luck,
    Please help i`m going mad!
    Surely we could just share these...?
    I need step by step instructions please someone send me a link on "how to share pics and music!"

  • Is it possible to have 2 trans with the same tcode but different langs

    Dear forum members,
    I would like to know if it is possible to have in the TSTCT table u2013 two entries with the same TCODE value but different SPRAS value (the language field)
    Thanks for your help,
    Roy

    Hi Roy,
    It is possible. Just go to TSTCT table and check for the entries. On the selection screen give some Tcode (say OKEU) and execute. You can see different languages in which it is maintained.
    Regards,
    Swapna.

  • LinkedHashMap problem (Same key but different value)

    Dear Friends,
    There is problem in LinkedHashMap for same key but different values.
    I want both values of same key as Output.
    Plz help me from an example code & it's output
    LinkedHashMap<Object, LinkedList<Object>> linkhash = new LinkedHashMap<Object, LinkedList<Object>>();
    LinkedList<Object> ll6 = new LinkedList<Object>();
              LinkedList<Object> ll7 = new LinkedList<Object>();
              LinkedList<Object> ll9 = new LinkedList<Object>();
    objectName="Listitem";
              ll6.add("id\tlisti");
              ll6.add("tag\tlistcell");
              ll6.add("tag\tlistcell");
              linkhash.put(objectName, ll6);
              System.out.println("List is "+linkhash);
              objectName="Listcell";
              ll7.add("id\tlistc");
              ll7.add("label\tCEO");
              linkhash.put(objectName, ll7);
              System.out.println("List is "+linkhash);
              objectName="Listcell";
              ll9.add("id\tlistc1");
              ll9.add("label\tNKC");
              linkhash.put(objectName, ll9);
              System.out.println("List is "+linkhash);
    output is
    List is {Listitem=[id     listi, tag     listcell, tag     listcell]}
    List is {Listitem=[id     listi, tag     listcell, tag     listcell], Listcell=[id     listc, label     CEO]}
    List is {Listitem=[id     listi, tag     listcell, tag     listcell], Listcell=[id     listc1, label     NKC]}
    I want output as
    List is {Listitem=[id  listi, tag  listcell, tag  listcell],Listcell=[id   listc, label CEO], Listcell=[id     listc1, label  NKC]}
    Plz help me
    Thanks Friend
    Edited by: kkcnkc on Apr 1, 2009 6:47 AM

    Double post. Locking.

  • Payment through F-58, but different Account IDs need to assign how?

    Hi
    How to make vendor payment through different Account IDs of the same House Bank?
    When I am using F-58 T.code for making vendor payment. But only 2 Bank accounts only possible to take.
    Payment method, Currency, House Bank will be the same but 22 types of Account IDs are there.
    So, when I am assigning them in FBZP> Bank Account determination, the system is not accepting.
    What is the solution for this.
    Waiting for earliest solution
    Regards
    CHINNU

    Dear All
    Did you get any solution for this.
    Client wants to make payment daily from many bank accounts from same house bank. For this F-58 T.Code is using.
    But here, Same house bank, Same payment method, Same currency but, different account IDs.
    Waiting for earliest reply.
    Regards
    CHINNU

Maybe you are looking for

  • Photo gallery settings

    Hi All, I have a couple of quick questions about photo gallery settings: google and forum searches haven't shown up anything useful! - The photo gallery seems to be optimized for "square" photo's, whereas my DSLR produces more "rectangular" images. S

  • PO release - Wrong agent assignment issue

    Hello friends, i have a strange issue with PO release strategy . A particular PO has been assigned to release group EG and release code F2 . But F2 has no agent assignment defined . However , The PO approval is going for another agent belonging to re

  • Request Status not Activating

    Dear All,               I have created Datasource and DSO and flat file and also created DTP.  If i request perticular request id , its not activating.  request status not activating. With Regards, Baskaran.

  • HELP IN SD...URGENT..

    Hi All,             Have got an obj on SD. Its an enhancement. I need to change standard routine. I know the routine. But the thing is that where sud i write that routine after modifying the standard routine. The std routine is associated wid a std c

  • I forgot my passcode, how can i get into my iPad?

    I set a passcode and cannot seem to remember it.  How can I get into my iPad without resetting it?