-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate/HQL problem with Postgres
PostPosted: Mon Apr 20, 2015 2:59 pm 
Newbie

Joined: Mon Apr 20, 2015 2:55 pm
Posts: 1
When the entity tries to load data, I get:
Caused by: org.postgresql.util.PSQLException: ERROR: relation "biographicassertion" does not exist

The actual table name is "biographic_assertion". I can successfully use this name in the Postgres query editor, and also in the HQL query editor. I can also paste the HQL to SQL translation from Eclipse into the Postgres query editor, and it works.

The entity begins like this:
@Entity
@Table(name="biographic_assertion")
@NamedQuery(name="BiographicAssertion.findAll", query="SELECT b FROM BiographicAssertion b")
public class BiographicAssertion implements Serializable {
private static final long serialVersionUID = 1L;

@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name="biographic_assertion_id")

Perhaps this is related: When I try to create a Hibernate console that's JPA, it doesn't recognize the project as such, although the JPA facet is installed and JPA options are available on the menus.
Anyone run into this before?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.