Any specific reason why it cannot obtain the column...any configuration that I am missing ???
Now I am using a simple table BINGO...with the primary key as BINGO1......when I use a simple query it gives the following error... //Query Query q = super.entityManager.createQuery("select b from Bingo b "); //Error Caused by: java.sql.SQLException: ORA-00904: "BINGO0_"."BINGO1": invalid identifier Why does hibernate add a 0_ to the table name ? mraible wrote: > > If it's working fine with the others, maybe "model" is a keyword with > Oracle or something? > > Matt > > On 3/28/07, VJ22 <[EMAIL PROTECTED]> wrote: >> >> Hello All, >> >> Got stuck with a bit of a problem trying to use JPA......I have got a >> simple >> model class called Model which maps to an underlying table >> PWM_MODEL....My >> annotations for the ID are defined as follows: >> " >> @Id @GeneratedValue(strategy=GenerationType.AUTO) >> @Column(name="MODEL_ID") >> public Long getId(){ >> return id; >> } >> @Column(name="MODEL_CCY") >> public String getCcy(){ >> return ccy; >> } " >> >> When I try using the abstractJPATests and try to save a model I always >> get >> the same error >> >> WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 904, >> SQLState: >> 42000 >> ERROR - JDBCExceptionReporter.logExceptions(78) | ORA-00904: "ID": >> invalid >> identifier >> >> >> Can someone throw some light on this .... it seems to be working fine for >> the other Appfuse entities so am a bit confused.. >> Kindly help >> >> Rgds...Vijay >> -- >> View this message in context: >> http://www.nabble.com/JPA-Problem-tf3480046s2369.html#a9712748 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/JPA-Problem-tf3480046s2369.html#a9726789 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]