-->
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: Newbie question - Hibernate Annotations 3.2.1 - Oracle 10g
PostPosted: Thu Mar 29, 2007 1:09 am 
Newbie

Joined: Thu Mar 29, 2007 12:54 am
Posts: 2
Hello,

Just started using JPA implementation of Hibernate for my project. First class - Bingo.java as my entity...Annotations defined as

// Start
@Entity
@Table(name="bingo")
public class Bingo implements Serializable{
private static final long serialVersionUID = 3690197650654067654L;
@Id
private long bingo1;
//End

When I try to do a simple save/query from my DAO class as :

// Start
Query q = super.entityManager.createQuery("select b from Bingo b ");
// End

I get the following error:

//Start
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 904, SQLState: 42000
ERROR - JDBCExceptionReporter.logExceptions(78) | ORA-00904: "BINGO0_"."BINGO1": invalid identifier
INFO - AbstractTransactionalSpringContextTests.endTransaction(284) | Rolled back transaction after test execution
//

Can anyone please help -> I am lost....Native queries work perfectly fine

Thanks in advance

Rgds..VJ


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.