Datatype Identifier problem [message #429323] |
Sun, 19 April 2009 17:54 |
Eclipse User |
|
|
|
Originally posted by: krdbrm.gmail.com
Dear Martin Taal,
I use the Teneo for mapping an ecore Modell to the Mysql Database. this
is a model for a Project and i did not create this model and i can not
change the Model. in this modell is a id as EData Type. if i try to
create an diagram and save in Database i get following Error Messeag
wich property can i use for a resolve dies Problem.
I used some EAnnotation an DataStore-Properties,Unfortunately I was not
successful.
the Error Code:
java.lang.ClassCastException: Identifier classes must be serializable.
org.efixes.Id is not serializable. org.efixes.Id
at
org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentif ier(AbstractEntityTuplizer.java:198)
at
org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getIden tifier(EMFTuplizer.java:94)
at
org.hibernate.persister.entity.AbstractEntityPersister.getId entifier(AbstractEntityPersister.java:3591)
thank you very much for your help
best regards
Bahram
|
|
|
|
Re: Datatype Identifier problem [message #429347 is a reply to message #429324] |
Tue, 21 April 2009 07:22 |
Eclipse User |
|
|
|
Originally posted by: krdbrm.gmail.com
Hallo Martin
I add the Serializable interface to the id class and
I do not get this error message.
thank you very much for your help.
best regards
Bahram
Martin Taal schrieb:
> Hi Bahram,
> Can you change the id class (org.efixes.Id) and add the Serializable
> interface to it?
>
> Other questions inline marked with MT>>.
>
> gr. Martin
>
> Bahram Kord wrote:
>> Dear Martin Taal,
>>
>> I use the Teneo for mapping an ecore Modell to the Mysql Database.
>> this is a model for a Project and i did not create this model and i
>> can not change the Model. in this modell is a id as EData Type. if i
>> try to create an diagram and save in Database i get following Error
>> Messeag wich property can i use for a resolve dies Problem.
> MT>> I am sorry but I do not understand what you mean here.
>> I used some EAnnotation an DataStore-Properties,Unfortunately I was
>> not successful.
> MT>> What eannotation did you use?
>>
>> the Error Code:
>> java.lang.ClassCastException: Identifier classes must be serializable.
>> org.efixes.Id is not serializable. org.efixes.Id
>> at
>> org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentif ier(AbstractEntityTuplizer.java:198)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getIden tifier(EMFTuplizer.java:94)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.getId entifier(AbstractEntityPersister.java:3591)
>>
>> thank you very much for your help
>>
>> best regards
>> Bahram
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02505 seconds