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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:11:24+00:00 2026-05-27T18:11:24+00:00

Cannot view values for the fields in Hibernate Query Fetch on GAE. Query query

  • 0

Cannot view values for the fields in Hibernate Query Fetch on GAE.

Query query  = session.createSQLQuery("select s.id,e.firstName, e.middleName, e.lastName, es.title as empStatusTitle,e.transportMode as trModeId," +
        " tr.title as trMode" +
        " from SecurityPrincipals as s " +
        " left join Employee as e on e.userId=s.id " +                  
        " left join EmployeeStatus as es on e.employeeStatus = es.id " +        
        " left join TransportationModes as tr on e.transportMode = tr.id " +                    
        " where s.id= :userId").setResultTransformer(new AliasToBeanResultTransformer(EmployeeDTO.class));

query.setParameter("userId", userId);

When I call employeeDTO.getTrMode(),employeeDTO.getEmpStatusTitle got all values correctly and running properly in local machine.But when I try to deploy on GAE the value is not getting in the view.jsf but it is there when running locally.I have getters and setters for all these in EmployeeDTO.java. All others like firstName,middleName,lastName has no problem.

My employeeView.jsf is :

<h:outputText value="Transport Mode" />
<h:outputText id="transportMode" value="#{employeeView.employeeDTO.trMode}" style="font-weight:bold" />

<h:outputText value="Employee Status" />
<h:outputText id="employeeStatus" value="#{employeeView.employeeDTO.empStatusTitle}" style="font-weight:bold" />
  • 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-27T18:11:25+00:00Added an answer on May 27, 2026 at 6:11 pm

    Since it all works locally, then your code and query are probably fine. And since it does not work on GAE, then there is probably something environmental that’s different. The database is different or not configured properly. You should put some error checking code in to make sure the query is actually working.

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

Sidebar

Related Questions

I cannot change the css theme of my Drupal View. This is a screenshots
I cannot figure out how to change the title bar icon (the icon in
I cannot understand the Oracle documentation. :-( Does anybody know how to fetch multiple
Here's my query: SELECT my_view.* FROM my_view WHERE my_view.trial in (select 2 as trial_id
I have the following MySQL query: SELECT Project.*, `trk_deleted`, `trk_status`, `trk_state` FROM `project` AS
So, I have a decimalfield that can be 3 different values. In my view,
I have some input fields in my View. I want a link to be
I have an issue where I cannot seem to get the values to re-populate
Cannot dump Stack Overflow XML file into SQL Server 2008. Could you please explain
Cannot find any example on Google.

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.