普通的SQL如何换成Hibernate中的HQL查询语句.?
我有一条这样的普通sql语句.select*fromES_LEAVEAPPS_ADDINFO_OPTIONSADD_LEAVE_ADDINFOleftjoinES_LEA...
我有一条这样的普通sql语句.
select * from ES_LEAVEAPPS_ADDINFO_OPTIONS ADD_LEAVE_ADDINFO
left join ES_LEAVEAPPS_ADDINFO_OPT_LANG LEAVE_CONFIG
on(ADD_LEAVE_ADDINFO.LEAVEAPPS_ADDINFO_OPTIONS_ID=LEAVE_CONFIG.leaveapps_addinfo_options_id)
where ADD_LEAVE_ADDINFO.id=3
换成Hibernate中的Hql语句怎么写啊?
我换成这样.不对.
from AdditionalInfoOption Add inner join AdditionalInfoOptionLang AddLang on(Add.ID=AddLang.ID) where Add .ID=3 展开
select * from ES_LEAVEAPPS_ADDINFO_OPTIONS ADD_LEAVE_ADDINFO
left join ES_LEAVEAPPS_ADDINFO_OPT_LANG LEAVE_CONFIG
on(ADD_LEAVE_ADDINFO.LEAVEAPPS_ADDINFO_OPTIONS_ID=LEAVE_CONFIG.leaveapps_addinfo_options_id)
where ADD_LEAVE_ADDINFO.id=3
换成Hibernate中的Hql语句怎么写啊?
我换成这样.不对.
from AdditionalInfoOption Add inner join AdditionalInfoOptionLang AddLang on(Add.ID=AddLang.ID) where Add .ID=3 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询