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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:54:18+00:00 2026-05-12T05:54:18+00:00

I am getting the following error. Not getting clue why is it happening. Also

  • 0

I am getting the following error. Not getting clue why is it happening. Also I checked DB it looks fine.

Hibernate: select customer0_.CustomerId as CustomerId0_, customer0_.CustomerAlias as Customer2_0_ from FF_REFERENCE.dbo.Customer customer0_ where customer0_.CustomerId=?

org.hibernate.exception.SQLGrammarException: could not execute query
   Caused by: java.sql.SQLException: [Macromedia][Sybase JDBC Driver]**Invalid column name: CustomerId0_**

My pojo is:

public class Customer implements java.io.Serializable {

// Fields

private String customerId;
private String customerAlias;

}

hbm is:

<hibernate-mapping>
<class name="com.pojo.reference.Customer" table="Customer" >
    <id name="customerId" column ="CustomerId" length="18" />
        <property name="customerAlias" type="java.lang.String">
            <column name="CustomerAlias" length="18" />
        </property>

The query I am using is:

public List findByProperty(String propertyName, Object value,String region) {
    try {
        String queryString = "from Customer as model where model."
                + propertyName + "= ?";
        Query queryObject = getSession().createQuery(queryString);
        queryObject.setParameter(0, value);
        return queryObject.list();
    } catch (RuntimeException re) {
            }
}

I am calling using:

custDao.findByProperty("customerId", custName, region);
  • 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-12T05:54:18+00:00Added an answer on May 12, 2026 at 5:54 am

    got the answer. the deployed war was taking hbm from the wrong place…

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

Sidebar

Related Questions

Suddenly I started getting the following error: Fatal error: Class 'Mongo' not found in
I'm running Valgrind and I'm getting the following error (this is not the only
Hi I'm getting the following error: Access restriction: The type MainFrame is not accessible
My unit test keeps getting the following error: System.InvalidOperationException: The Connection is not open.
I am getting the following error, using jQuery POST method in Firefox. Could not
I am getting the following error C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 126: The specified module could not
Hi every one I am getting the following error: The name 'ConfigurationManager' does not
In my client application, I'm getting the following error: Could not find endpoint element
I am not able to install pycurl on Windows on Python2.6. Getting following error:
i am using phpmailer and i am getting following error: Message was not sent

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.