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

  • SEARCH
  • Home
  • 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 588661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:20:31+00:00 2026-05-13T15:20:31+00:00

Is there any library or framework to make JPA queries in a less verbose

  • 0

Is there any library or framework to make JPA queries in a less verbose way such as:

User.query("age < 30")

instead of:

Query query = entityManager.createQuery("select u FROM User u WHERE age < 30");
return query.getResultList();

I suppose there is no standard way to do it with JPA. I’ve seen Hibernate Criteria API, that is not as simple as Django and forces your application to be coupled to Hibernate. I’d like to know what do you think about it and other approaches.

  • 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. Editorial Team
    Editorial Team
    2026-05-13T15:20:31+00:00Added an answer on May 13, 2026 at 3:20 pm

    Yes, a Java framework allow you to do that: Play! framework. It’s a framework similar to Django but complety written using Java. http://www.playframework.org/documentation/1.0.1/model

    For instance you can write something like:

    User.find("age< ?", 30).fetch();
    

    Moreover this is not coupled to hibernate you can use other technologies like Google App Engine datastore or Amazon Simple DB throw Siena

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any library which provide a text panel with basic formatting features. Such
Is there any way I can make it so my script will automatically close?
Is there any library in .Net to convert shapefile to SQL server table? I
Is there any library for distributed in-memory cache, distributed tasks, publish/subscribe messaging? I have
Is there any library in C for Linux to get gpu information for example
Is there any library for playing MKV (matroska multimedia container) files in Flash (AS3,
Is there any Library for .NET that returns SPARQL results in some structured List
Is there any library out there that I can use to create epub files
Is there any good library which supports WebSockets and is compatible with GWT? Ideally,
Is there any Javascript library that could force an HTML node (mostly images and

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.