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
|