When I try to persist this class, it gives me the following error
ORA-00904: "MODEL0_"."ID": invalid identifier
Totally Lost.....
VJ22 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#a9713472
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]