Finder EJBQL Question

I have get two question about ejbql , I am newibe in it
1)can I use Object Array as my method param?!
for example
<method-params>
<method-param>java.lang.Object[]</method-param>
</method-params>
and then use it in the EJBQL - <ejb-ql>select object(o) from Pecnctemp o where o.key == ?1[0]</ejb-ql>
2) can I use HashMap as my method param?!
for example
<method-params>
<method-param>java.lang.HashMap</method-param>
</method-params>
and then use it in the EJBQL - <ejb-ql>select object(o) from Pecnctemp o where o.key == ?1.get("key")</ejb-ql>
Thanks

hi ohadas,
really i don't see wht you need to use dynamic value params. If u have these...
<query-method>
<method-name>findByMe</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
<ejb-ql>select object(o) from Pecnctemp o where o.key == ?1</ejb-ql>
then you can call to the finder using the concret value of the array
myeb.findByMe(myArray[0])
or
myeb.findByMe(myArray[1])
or......
What i saw necesary it's dynamic queries. For example, i would like to do something like this....
<query-method>
<method-name>findByMe</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
<ejb-ql>select object(o) from Pecnctemp o where ?1</ejb-ql>
and ?1 will be myColumn=myValue

Similar Messages

  • I cannot find my question from last night. I saw the instruction from jscher2000 but I find nothing like what he decribes.

    I cannot find my question from last night. I saw the instruction from jscher2000 but I find nothing like what he decribes. My question was "Firefox 22 worked on Windows 7 but 23 does not"

    hello MLP99, you can find your prior questions & answers under this link (once you're logged into support.mozilla.org with your account): https://support.mozilla.org/questions?filter=my-contributions

  • Easier way to find unanswered questions?

    How about some features to make it easier to find unanswered questions in a forum?
    Like a button that says "show only unanswered questions"?
    Another option like "show unanswered questions with 0 replies"

    Some, but not enough.
    Sometimes a question is answered but the post-er never marks it as such. That's why I'd like a filter called "Open Questions with 0 replies"
    That's why I asked if it satisfied the first part of your request. I was aware it didn't satisfy the other details you mentioned.
    You aren't the first to ask for more sophisticated filters. I have as well. I think we'll probably eventually see some of these things. The Hosts are aware of all of these requests and continue to add them to the big list of features people would like to see. Of course, for some time now they have had to concentrate on forum stability before even beginning to add more features. But I they've said in the past that they have hopes to work on these details once everything else is under control.

  • How to find unanswered questions

    Hi,
         How to find unanswered questions (posts which have 0 replies) in the forum?

    Hi,
    Go inside any one of the post.
    At the bottom you can see,
    back to thread list
    click on that.
    now you can see a filter at the top.
    Regards,

  • How do I find the question I asked on your website?

    I don't know where on your website to find the question I asked or the suggested answers!!!

    I lost my question, too. But I believe I found it. Go to Support Forum Home. (The link is on right side of web page or go directly: https://support.mozilla.com/en-US/questions ) A little ways down from the header, there is a way to sort the comments, like "Most Recent" and "Most Requested." Let your eye go further right on that same line where the filter lets you select "My Contributions." If your question was put in the Support Forum, you might be able to find it this way. Best of luck.

  • HT1491 I created my account im my iphone, and now I´m trying to buy with my ipad and the site make questions....so I want to know where do I can find this questions in the site...

    I created my account im my iphone, and now I´m trying to buy with my ipad and the site make questions....so I want to know where do I can find this questions in the site...

    I am very happy to report that my server connection tech, which I called via landline, informed me to : 1. Open Tools 2. Scan down to Clear Recent History 3. Delete All. That was it! Unbelievable! Six hours of searching through the Windows catagories. I checked the results on an internet site, and viola! It was gone! Mozilla Firefox seems to remember the usernames and passwords irregardless of the option window that asks if you if want it to remember the user and password. I finally got in touch with my friend and he said he did not answer yes to the window, even though he was aware of it. No damage. I surely do appreciate everyones' concern in this, now what seems to be, a very simple solution. Cudos to Firefox! Thank-you! P.S. I now have to enter my information at the beginning of any password protected sites...no harm done! My friend is now condemned to the 'user account' site! lol...

  • HT3951 I just can't find the question...  I need to fix the app that I downloaded & it's not completing the download even on Wi-Fi???  Please help!!,!!,!,!,!!,!,!!

    I just can't find the question...  I need to fix the apps that I downloaded &amp; it's not completing the download even on Wi-Fi???  Please help!!!!!!!!!

    iOS: About File Sharing

  • Can't find my question history, where can I find it please?

    Can't find my question history, where can I find it please? Has it been moved, I had no trouble finding it recently. I want to check back on one of my questions.thanks for help!

    You may also find these links to your own content useful, the first three will highlight threads with new activity:
    Authored Discussions
    Participated Discussions
    Following Discussions
    Recently Viewed Discussions
    tt2

  • How do I find my question?

    How do I find my question to check for replies?  I posted one and went away for the holidays... Thx much!

    Are you referring to this thread? > https://discussions.apple.com/message/23941251#23941251 If so, you can find it by going to your profile's website > https://discussions.apple.com/people/darklinglass

  • How to find old question of mine

    I have placed many question ON OTN in last one year related to Portal, But now I am not able to find any question of mine at one place. I mean, could I find all my questions and the reply that I got, at one place like in My Dashboard?
    Though in pold version I never faced such problem, But in this new version of OTN I am facing this issue.
    Regards
    -Arvind

    Perhaps I have got the answer, On click of my user Id I got the list of old question in content TAB.

  • I'm new Help user, and i just asked a question, had to go to email and confirmed email address to start the account, now how do i find the question/answer i just asked?

    I'm a new Help user, and i just asked a question, had to go to email and confirmed email address to start the account, now how do i find the question/answer i had just asked/posted?

    Thanks!!! Things are so easy when you know how.

  • Flashing Finder Icon/ Question Mark on Boot

    Today I left my 1.33ghz G4 Mac Mini turned on whilst I went to the shop.
    When I came back i found it eith a flashing finder icon/ question mark.
    I restarted it and it booted up a grey screen, then after a while the flashing finder icon/question mark.
    I have tried putting in the OSX install disc and holding down the C key to start up using the CD and nothing happen, all I get is the same grey screen and flashing icon.
    I have also tried pressing the X key, and holding it down and restarting to get up the startup disk menu, but again nothing.
    Pressing 'option' key during start up only gets me a blue background with refresh button on the left and right arrow on the right - with no Boot Up CD or HDD Icon.
    I have also tried resetting the PRAM, it resets, but after it hasn't solved my problem, as i am back to square one with the boot screen and icon.
    Any help would be appreciated.
    Thanks,
    big.bad.ben

    I would agree with DP that using a wired keyboard will give better results when holding down the C key. The timing of holding down the C key is tricky, and you might have to experiment with it.
    The question mark means that the Mini can't find a bootable disk. Usually this is because the internal hard drive has enough directory damage that it is not bootable. Usually this can be fixed by reformatting the internal drive or replacing it.
    But if you truly can't boot from the install CD, that suggests a more serious problem with the logic board or RAM memory.
    When you power-up the mini, do you get a series of beeps or light flashes? The pattern of such beeps/flashes is a diagnostic aid to determine what might be wrong. Report back with what pattern you observe.
    Be sure to give the install CD some more tries, varying the timing of holding down the C key. Usually you want to do it right after the startup chime.

  • I have a 2005 g5 2.5 2g ram will not boot up ,blue screen with folder with finder icon question mark. have tried to boot from dvd disc by holding down ckey but all i get is apple logo and fans start running really fast.have tried hard drive in identcal g5

    tried hard drive in another g5 but with the same result.can anybody suggest what might be wrong

    had the same result on other g5 blue screen finder folder with question mark. i put the hard drive in the bottom bay of my g5 after and ran disk repair said disk ok .reparaired permissions tried hard drive in top bay again but with same result.
    do i just disconnect the two connections on hard drive and then try your second suggestion?

  • Automator: Copy Finder Items Question

    Hola,
    Quick question about the Copy Finder Items action in automator: the "replace existing files" option, how is sameness determined? In other words, according to what criteria does Automator determine that two files are the same, and so eligible for replacement in the destination folder when that option is chosen? For example, would file Mydog.doc, modified 10/14/05, 230k be viewed as the same thing as Mydog.doc., modifided 2/21/06, 150k?
    Cheers,
    stu

    As far as the Finder is concerned, the comparison is based on file name only.
    It doesn't care about file size or modification date. If the name is the same the existing file will be replaced.

  • Finder window question mark

    Hello - I inadvertently slid a Skype icon to my finder window top border and when I deleted Skype from system the icon began appearing as a question mark (?) ... how do I delete the question mark from my finder window top border?
    Thanks in advance.

    thanks!!!
    I almost didn't notice it any more, and I'm glad to resolve that vague nagging question (mark)!

Maybe you are looking for