How can I create a NamedQuery using a foreignkey as parameter?

I need to be able to create a named query that would be subject to action, but the ORG_ID is a foreign key in the containers and methods is a type of organizations rather than a long. This is why I could not understand how to create a namedQuery that would work. This could be my answer if you have someone who knows how to write the query.

It of what I've done so far but does not give me the results that I need...

My names table for the query, I am doing...

Organizations (onetomany)
Containers (manytoone)

In organizations...
@OneToMany (mappedBy = "organizations")
private list < container > containersList;
In containers...
@ManyToOne
@JoinColumn (name = "ORG_ID")
private organizations;

I have a query named in Organizaions to pass the org_id. It returns the list of containers that I can drag my jspx. Currently, all containers to display it. (There are 130 lines of data). I need only a subset of data based on the column of the table of containers called type_id. I need to be able to view the type_id as links, and then allow the user to click it to display the containers so that type_id (and of the Organization, it's why I try to use the containerslist off the coast of the organizations namedquery).

Thanks for your help,
Tracy

Hello

You can have something like the following:
"SELECT DISTINCT o.type containers o WHERE o.organizations.orgId =: orgId.

Kind regards

Pino

Tags: Fusion Middleware

Similar Questions

  • How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit

    Hello

    How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit?

    I'm transferring a 32-bit application on 64-bit.  In visual Studio, I added the 64-bit project configuration.  He compiled the source very well but the reports link errors:

    error LNK2019: unresolved external symbol DAQmxReadAnalogF64 referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateAIVoltageChan referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxReadDigitalLines referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDIChan referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxWriteDigitalLines referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDOChan referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj

    These, of course, are the functions OR that I use.  The NIDAQmx.lib has been added to the Input of the link property.

    Any help would be appreciated.

    Thank you

    -Neil shore

    Hi LaserShore,

    Think you that you added the 64-bit platform settings target according to this page? : http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitcore/

    Already running 32-bit application? Have you changed references to the 64-bit version?

    You use Measurement Studio? If so some features are not supported with 64 bit.

    Also when you say that you have added the NIDAQmx.lib, did you follow this KB:http://digital.ni.com/public.nsf/allkb/38F67B28D995C6958625706E000C580C

  • By using only the keyboard, how can I create an email using Outlook Express, have the files of "painting" in the body of the email

    original title: only the keyboard

    By using only the keyboard, how can I create an email using Outlook Express, have the files of 'paint' in the body of the email, also registered another Web page?

    Hi r. Gull,.

    You can view using Outlook Express keyboard shortcuts, documented in:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/mail_hotkeys.mspx?mfr=true

    I hope this helps.

  • How can I create a submenu using Muse

    How can I create a submenu with muse

    Hello

    Please see the following links:

    Submenu vertical

    Adobe - submenu - Muse submenu - Drop Down Menu - Navigation - YouTube

    Adobe Muse get started - adding a Navigation bar - YouTube

    Concerning

    Sonam

  • How can I create a function using variables TestStand and call from Meadow step Expression?

    In one sequence, I have dozens of prior Expressions, which are almost the same thing, like this...

    Locals.tagID = (Parameters.singlePhaseEnabled? ('L': "D") & Str (Locals.phase) & "006".

    .. and the only thing different is this three-digit string in the end ("006" may vary). How can I write a function that I can call from Meadow step Expression then it should look like this? ...

    Locals.tagID = MyNewFunction("006")

    You can not write custom expressions for commands.

    That being said, there are two options:

    • Create a sous-suite with a single step. Use a setting of the sequence as "function parameter.

    • Create a step type custom including a lower level module that implements the function. Add a step edit to allow the user to the steptype graciously change the setting.

    • Store the variable setting in a local global variable / file and change the value in each step. This will, at least, keep the same 'function' for each step.

    Norbert

  • How can I create greeting cards using digital photos now that Microsoft Picture It is not compatible with Windows 7 Home Premium

    My old computer has Microsoft Picture It and I was able to create greeting cards using digital photos to my computer.   My new computer has Windows 7 Home Premium edition and I can't access on my computer greeting cards or create new ones.  I downloaded Windows Live, but who does not have an option to create greeting cards.    What suggestions do you have?

    Hello

    There are many programs available online that may have similar functions as the image what it program.
    I suggest that you use your favorite search engine and looking online for a similar program.


    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • How can I create a PDF using Acrobat 7.0 in Windows 8 of a drawing on a Visio 64 - bit system

    I used to be able to create a PDF with Acrobat 7.0 to a drawing file in Visio XP. Now I'm on a 64 bit system, no Adobe printer can be installed, and it is not supported.  Help?

    On a 32-bit system, there is a solution. I don't think that it is possible to get AA7 to work on a 64 bit system (no one has reported success and only 1 suggested success with AA8). You may be able to print to a PS file, and then open that in distilling. I suspect that this is the only way and you need to find a decent printer PS driver to do so. I suspect that the driver printer (and associated AcroTray) will not work in a Win8 64 bit - Acrobat and Distiller can.

  • How can I create a group using a custom domain in Windows Live Domains of email delivery?

    I have a domain - mydomain.com, that uses Windows Live Mail to his provision of email., via Windows Live Domains.  When a visitor comes to my site, they see that they can send me an email to * address email is removed from the privacy *.  When they do, the email is sent to * address email is removed from the privacy *, * address email is removed from the privacy *, * address email is removed from the privacy * and * address email is removed from the privacy *.

    With my previous provider of e-mail, I was able to do, but the messaging system was extremely basic and I wanted to use Windows Live Mail to access other Windows Live services with a single login.  Is it possible to have the transfer of groups set up, ideally to the Center, using Windows Live Domains?  I asked the support of network in June and they said yes, but they would intensify the issue to their next line of support... and I never heard from them again.  Any help would be greatly appreciated.
    This is related to Windows Live, and unfortunately, this is the closest forum for Windows Live on the site of answers I can find...

    Hello Naytee

    Unfortunately, this isn't the community to ask questions of Windows Live. Since you are on a domain, you can ask your question on our TechNet forums. The link is below. Thank you.
    http://TechNet.Microsoft.com/en-us/Windows/cc468658.aspx
  • How can I create a new database without table using database configuration

    How can I create a new database without table using database configuration

    You can search for your "DBA 2 days" version oracle documentation for your version.  You should also read the manual of the concepts.  Create your own schema is pretty basic, all you have to do is to create a user.  Don't use dba or system for your own objects.

  • How can I create a gif image using photoshop. I mean photoshop shortcut keys and the steps for creating gif

    How can I create a gif for my blog [url removed by host] image using photoshop. I mean photoshop shortcut keys and the steps for creating gif

    CTRL + Alt + Shift + S Windows Mac CMD + Option + SHIFT + S change the image that you normally edit images.

  • How can I create a widget from Adobe Acrobat DC Pro that I use in my Web site instead of using EchoSign/DC, as I am now?

    How can I create a widget from Adobe Acrobat DC Pro that I use in my Web site instead of using EchoSign/DC, as I am now?

    Hello

    As the creation of widgets is an echosign feature and not an Acrobat feature, unfortunately, you wouldn't be able to create widgets with the Acrobat DC pro subscription. This is due to the reason why you get echosign pro subscription when you subscribe to DC, Acrobat pro, which does not support the widget.

    If in the case where you are on Echosign pro subscription, you wouldn't be able to do so because it does not support the creation of widgets. You will have to opt for a global echosign or the company's plan to create widgets.

    Or you can opt for one of the Acrobat business plans to perform this task.

    If you wish, you can connect with the support of Adobe for more information in this regard.

    http://helpx.Adobe.com/x-productkb/global/Service1.html

    Please click on the blue button "Still need help" to connect with one of the frames.

    Concerning

    Sukrit diallo

  • How can I create a site of AIF who works for mobile clients instead of use available phone of muse

    How can I create a layout of alternative office who works for mobile clients instead of use available phone of muse. Available phone simply doesn't work very well for me and my office layout works great on mobile devices with the exception of a few aesthetic problems. It would be much faster for me to fix these problems, he would to create a brand new mobile site.

    Thank you for your help

    Is there no created phone available in the same site then telephones will load office layout by default, so you don't have to create an office layout separately for the mobile version.

    If I'm missing something here, please let me know.

    Thank you

    Sanjit

  • How can I create a composite layer and which you use e control alt shift or Shift control alt e and when I do the pop deletion tool?

    How can I create a composite layer with 11 elements? How what should I do?

    How can I get an answer to my problem? I would never buy the program if I'm having this famous problem with getting help?

  • How can I create extensible components for re-use?

    How can I create a button that stretches (such as the scale-9) with the text label? I create all of my graphics in illustrator rather than photoshop to get real FXG markup instead of embed all images?

    This has been addressed in the FAQ.

    Please see if the discussion he answer your question.

    -Bear

  • How can I create a group through Outlook without the application Outlook email?

    How can I create a group by using Outlook without an application Outlook email?

    Sigmalambda wrote:

    How can I create a group by using Outlook without an application Outlook email?

    It is difficult to understand what you're trying to do. You can create a group and send an email to the group in any mail client. The recipients can use any e-mail provider or an e-mail client to receive e-mail. Please explain in more detail what you are trying to accomplish.

Maybe you are looking for