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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:29:24+00:00 2026-05-23T12:29:24+00:00

I need to get the Date, DataQuantity, FeetQuantity of the ProductionbyEmployee table and based

  • 0

enter image description here

I need to get the Date, DataQuantity, FeetQuantity of the ProductionbyEmployee table and based a OperatorNum on the Employee table. the number of operations is a parameter and using NHibernate

hql query. Nhibernate 3.2

  • 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-23T12:29:25+00:00Added an answer on May 23, 2026 at 12:29 pm

    Usually, one uses an ORM in order to load and persist objects to relational databases in as transparent a way as possible. While it is possible to create projections of specific parts of the data, it seems like in your scenario you want to fetch an Employee entity with a specific OperatorNum, and then inspect some that Employee’s production metrics.

    Important to note is that HQL queries are declared against the names and property names of your domain objects, not against the database table and column names.

    If your entities and their properties are named identically to your tables and columns, it would look like this:

    // you need an ISession variable -- here let's assume it is called session
    var operatorNum = 5;
    var query = session.CreateQuery(
        @"from Employee emp where emp.OperatorNum = :operatorNum")
        .SetProperties(new { operatorNum });
    var employee = query.UniqueResult<Employee>();
    
    // you can now get the collection of production metrics in the
    // employee.ProductionbyEmployee property; note that if you have
    // not mapped this collection to be eagerly fetched, you'll get
    // a second roundtrip to the database to get the collection
    

    (I realize that this may not be exactly what you are asking for; it is difficult for me to tell what you are trying to achieve without knowing what your entities or mappings look like.)

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

Sidebar

Related Questions

I am using the Date Range Picker (http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/) plugin and need to get the
I need to get device date and time using DateField.
I need to get the closest date to current date from a MySQL table.
Alright I have a table where I need to get the relevant date from
I need to get the date based on the following condition, From the current
I need to get today's date in YYYY-MM-DD format. Any ideas? Using NOW() I'm
I need to get a date by subtracting a number from current date in
I need to get the date from the server in mm/dd/yyyy without any javascript
Question: I need to get the DATE ONLY (= date WITHOUT time) with an
Possible Duplicate: How to get current date in JavaScript I need to get todays

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.