hibernate - unidirectinal @OneToMany without join table -


i using hibernate. parent class company. company has many activities. need load activities when company loading. need save company , activities separately. in company class have:

@onetomany(fetch = fetchtype.eager, targetentity = activity.class) private set<activity> activityreuslts; 

in activity not have join company table. when try run gives

'ora-00972: identifier long' exception. 

can't this? appreciate help.

i think when use target entity gives exception since wrong mapping.

select this_.company_id y0_, this_.a ttempt_id y1_ mel_company this_  inner join mel_company_mel_company_activ ity_out_put activityre3_ on this_.company_id=activityre3_.mel_company_company_id , this_.attempt_id=activityre3_.mel_company_attempt_id   inner join mel_company_activity_out_put activityre1_  on activityre3_.activityreuslts_company_activity_re sult_id=activityre1_.company_activity_result_id. 

according there 2 joins same activityresults. 1 wrong. 'mel_company_mel_company_activity_out_put'


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -