Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 121167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:55:37+00:00 2026-05-11T03:55:37+00:00

I have: image 1:Many imageToTag Many:1 tag I want to issue a query that

  • 0

I have: ‘image’ 1:Many ‘imageToTag’ Many:1 ‘tag’

I want to issue a query that will return all images that have at least tags [a, b, c]. It’s not clear to me how one can model this in JPQL. I could build the query string dynamically but that’s bad for performance and security reasons. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:55:38+00:00Added an answer on May 11, 2026 at 3:55 am

    In PSEUDO CODE:

    SELECT * FROM IMAGES    INNER JOIN IMAGETAGS A     ON IMAGE.ID = A.IMAGEID AND A.TAGID = 'A'   INNER JOIN IMAGETAGS B     ON IMAGE.ID = B.IMAGEID AND B.TAGID = 'B'   INNER JOIN IMAGETAGS C     ON IMAGE.ID = C.IMAGEID AND C.TAGID = 'C' 

    Just guessing, but the equivalent in JPQL would be

    Select img from Image img   JOIN img.tag ta   JOIN img.tag tb   JOIN img.tag tc    WHERE ta.description = 'A' and tb.description = 'B' and tc.description = 'C' 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 74k
  • Answers 74k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Here is my set of rules If there is one… May 11, 2026 at 2:13 pm
  • added an answer I've seen something like this in the past. It's possible… May 11, 2026 at 2:13 pm
  • added an answer It's dangerous to modify Object.prototype, because it affects all objects… May 11, 2026 at 2:13 pm

Related Questions

I have image data and i want to get a sub image of that
I have an image and on it are logos (it's a map), I want
I have an image of a basic game map. Think of it as just
I have loaded image into a new, initialized Oracle ORDImage object and am processing
In a WPF page that I'm designing for my church, I have two ListBox
I have an existing PDF and I can use FdFWriter to input to text
I have a product image class. This is an object with re-use potential for
If I have a button like the one in this image : http://www.freeimagehosting.net/image.php?4cd775814c.png how

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.