the sql generated is :
Hibernate: select neax61brsi_._codequipamento, neax61brsi_.rn, neax61brsi_._coletado as column3_14_, neax61brsi_._estado as column4_14_, neax61brsi_._operacao as column5_14_, neax61brsi_._datahora as column6_14_, neax61brsi_._codusuario as column7_14_, neax61brsi_._codinstrumento as column8_14_, neax61brsi_._codscript as column9_14_, neax61brsi_.type_p as type10_14_, neax61brsi_.type_trk as type11_14_, neax61brsi_.acdx_or as acdx12_14_, neax61brsi_.type_chrg as type13_14_, neax61brsi_.blk as blk14_, neax61brsi_.rr as rr14_, neax61brsi_.type_cn as type16_14_, neax61brsi_.node as node14_, neax61brsi_.pad as pad14_, neax61brsi_.cls_rut as cls19_14_, neax61brsi_.pi as pi14_, neax61brsi_.type_sw as type21_14_, neax61brsi_.sat as sat14_, neax61brsi_.id_iwk as id23_14_, neax61brsi_.rtt as rtt14_, neax61brsi_.ani as ani14_, neax61brsi_.mltrat as mltrat14_, neax61brsi_.pdc as pdc14_, neax61brsi_.esc as esc14_, neax61brsi_.id_scr as id29_14_, neax61brsi_.kind_cme as kind30_14_, neax61brsi_.chrg_rate as chrg31_14_, neax61brsi_.mp as mp14_, neax61brsi_.orgl_no as orgl33_14_, neax61brsi_.b_sc as b34_14_, neax61brsi_.tgn as tgn14_, neax61brsi_.ovf_thr as ovf36_14_, neax61brsi_.osd as osd14_, neax61brsi_.type_slct as type38_14_, neax61brsi_.cot as cot14_, neax61brsi_.unn as unn14_, neax61brsi_.clt_supt as clt41_14_, neax61brsi_.gci as gci14_, neax61brsi_.id_cn as id43_14_, neax61brsi_.sig_snd as sig44_14_, neax61brsi_.mfc_tdm as mfc45_14_, neax61brsi_.trk_tst as trk46_14_ from NEAX61BRSIGMA_4_5_rt neax61brsi_ where neax61brsi_._codequipamento=? and neax61brsi_.rn=?
The problem is my composite-id.... hibernate does not pass the information of the composite-id object for the sql query. Exists any option for hibernate does it ? I think that is occur because hibernate tries load first the external object and after the object inside (the composite-id object ) , how can I solve it ?
Thanks in advanced and excuse-me for my bad english
|