Is there anybody help me in this case. I am using hibernate for select data from db, but when I check from sql debug log. I always see the update sql printed after I use "select" sql to get data from DB.
2013-08-13 13:39:08,054 DEBUG [http-0.0.0.0-8080-1-TASK]-[org.hibernate.SQL] select this_.id as id504_2_, this_.bridgedLineDialogUri as bridgedL2_504_2_, this_.bridgedLineUri as bridgedL3_504_2_, this_.currentSipSubscriberProfile as currentS4_504_2_, this_.currentSipSubscriberProfileType as currentS5_504_2_, this_.messageEventUri as messageE6_504_2_, this_.neMobjectId as neMobjec7_504_2_, this_.objectId as objectId504_2_, this_.objectType as objectType504_2_, this_.sipBridgedLineUriEnable as sipBrid10_504_2_, this_.sipDirectConnectUri as sipDire11_504_2_, this_.sipDirectConnectUriEnable as sipDire12_504_2_, this_.sipIdentityAddress as sipIden13_504_2_, this_.sipIdentityContactURI as sipIden14_504_2_, this_.sipIdentityPassword as sipIden15_504_2_, this_.sipIdentityRealm as sipIden16_504_2_, this_.sipIotParametersEnableStatus as sipIotP17_504_2_, this_.sipIotParametersPrivacy as sipIotP18_504_2_, this_.sipIotParametersRequire100Rel as sipIotP19_504_2_, this_.sipIotParametersSupport100Rel as sipIotP20_504_2_, this_.sipMessageEventUriEnable as sipMess21_504_2_, this_.sipPreferredID as sipPref22_504_2_, this_.sipPreferredIDMode as sipPref23_504_2_, this_.sipSubscriberTemplateEnable as sipSubs24_504_2_, this_.sipUsername as sipUser25_504_2_, this_.verSipSubscriberProfile_id as verSipS26_504_2_, versioneds2_.id as id507_0_, versioneds2_.configurationProfileId as configur4_507_0_, versioneds2_.description as descript2_507_0_, versioneds2_.version as version507_0_, configurat3_.id as id505_1_, configurat3_.description as descript2_505_1_, configurat3_.name as name505_1_, configurat3_.type as type505_1_, profilemob4_.VersionedSipSubscriberConfigProfile_id as Versione1_507_4_, profilemob4_.element as element4_ from Test this_ left outer join VersionedSipSubscriberConfigProfile versioneds2_ on this_.verSipSubscriberProfile_id=versioneds2_.id left outer join ConfigurationProfile configurat3_ on versioneds2_.configurationProfileId=configurat3_.id left outer join VersionedSipSubscriberConfigProfile_profileMObjectIds profilemob4_ on versioneds2_.id=profilemob4_.VersionedSipSubscriberConfigProfile_id where this_.objectId=?
2013-08-13 13:39:08,103 DEBUG [http-0.0.0.0-8080-1-TASK]-[org.hibernate.SQL] update Test set bridgedLineDialogUri=?, bridgedLineUri=?, currentSipSubscriberProfile=?, currentSipSubscriberProfileType=?, messageEventUri=?, neMobjectId=?, objectId=?, objectType=?, sipBridgedLineUriEnable=?, sipDirectConnectUri=?, sipDirectConnectUriEnable=?, sipIdentityAddress=?, sipIdentityContactURI=?, sipIdentityPassword=?, sipIdentityRealm=?, sipIotParametersEnableStatus=?, sipIotParametersPrivacy=?, sipIotParametersRequire100Rel=?, sipIotParametersSupport100Rel=?, sipMessageEventUriEnable=?, sipPreferredID=?, sipPreferredIDMode=?, sipSubscriberTemplateEnable=?, sipUsername=?, verSipSubscriberProfile_id=? where id=?
Thanks
|