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 7947691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:30:22+00:00 2026-06-04T01:30:22+00:00

From what I’ve been testing it seems that you can only use standard SQL

  • 0

From what I’ve been testing it seems that you can only use standard SQL inside a @Formula annotation. The documentation is not very descriptive about this feature (I’ve found one paragraph about it at most), so I was wondering whether HQL can be used somehow or whether there’s another feature that would let me load an object’s property with a HQL query.

  • 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-06-04T01:30:24+00:00Added an answer on June 4, 2026 at 1:30 am

    You are right . @Formula only allows to use the actual column name .

    The important characteristic of HQL is use the java property name to refer the actual column name . If you want to refer the property names when deriving your formula value , you can simply implement the logic of the formula in the getter of your mapped POJOs.

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

Sidebar

Related Questions

From the question you can probably tell that I don't know much about code!
From what I've found in C#, the Control.Invoke method requires that you use a
From epoll's man page: epoll is a variant of poll(2) that can be used
From this article I see I can use msbuild to apply configuration transformations but
From other questions I can see that locking on types is a bad idea.
From what I've read, and if I am not mistaken, it seems that any
From the Google Results page, the examples I saw were working only in IE
From my old Access days, there was a First() function that allowed you to
From the calculation returns -30. How can I remove the minus, so it just
From here: http://www.codingwithoutcomments.com/ If you do use Singletons, try to use dependency injection instead

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.