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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:29:20+00:00 2026-05-26T13:29:20+00:00

I am trying to connect Hibernate(3.2.5) with PostgreSQL 8.2., but I am getting following

  • 0

I am trying to connect Hibernate(3.2.5) with PostgreSQL 8.2., but I am getting following exception when I try to map the class Certificate with relation certificate in the hbm.xml file:

PSQLException: ERROR: relation “certificate” does not exist

The SQL for creating Certificate:

CREATE TABLE "Certificate"
(
  id bigint NOT NULL,  
  name text,  
  CONSTRAINT certificate_pk1 PRIMARY KEY (id)  
) 
WITHOUT OIDS;

The POJO clas ‘Certificate’ is:

public class Certificate implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;

private String name;

public String getName() {
    return name;
}

public void setName(String name) {
    this.name = name;
}

public Long getId() {
    return id;
}

public void setId(Long id) {
    this.id = id;
}


public String toString() {
    return "model.Certificate[id=" + id + "]";
}

}

The hibernate.cfg.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
  <session-factory>
    <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>  
    <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>  
    <property name="hibernate.connection.url">jdbc:postgresql://localhost  /Company</property>  
    <property name="hibernate.connection.username">postgres</property>  
    <property name="hibernate.connection.password">abc123</property>  
    <mapping resource="hibernate.hbm.xml"/>  
  </session-factory>  
</hibernate-configuration> 
  • 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-26T13:29:20+00:00Added an answer on May 26, 2026 at 1:29 pm

    This is the error:

    PSQLException: ERROR: relation “certificate” does not exist

    And this is your table:

    “Certificate”

    The database is searching for lower case “certificate”, you created UPPER case “Certificate”.

    Use the same casing and double quotes around all identifiers, or just use lower case to make things simple.

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

Sidebar

Related Questions

when i am trying to parse an xml, i am getting following exception :-
I am trying to connect to a webservice over ssl with a client certificate.
i am trying to learn Java, Hibernate and the MVC pattern. Following various tutorial
Trying to connect to sql server 2005 with delphi 2010 gives me the following
I am using JPA with hibernate and trying to connect to the a datasource
Am trying to connect the App Delegate to the View Controller in Xcode4, but
When trying to connect to a web service using the following $client = new
I'm trying to get an installation of webOrb 3.6.0.3 working, but am stuck getting
When trying to connect to EC2 over SSH I get the following error: joshua-scotts-macbook-pro:.ec2
Im trying to connect to the Magento 1.4.0.1 API, but until now I have

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.