But I have my column as model_id........
you think tht cud be a problem too....The appfuse application does work fine
using the same convention...
benoit wrote:
>
> See your Db admin, this error come from oracle. Maybe oracle
> is configured to allow a particular naming convention like
> IDENT instead of ID....
>
> VJ22 a écrit :
>> 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
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> 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#a9715149
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]