你试试:
select userinfo from com.Userinfo as userinfo join com.Carinfo as carinfo where userinfo.userid=carinfo.userid
select userinfo from com.Userinfo as userinfo join com.Carinfo as carinfo where userinfo.userid=carinfo.userid
解决方案 »
- 有个小想法,Control和View进行物理分离
- [200分]求大侠那里有hibernate的详细配置和所名(最好能用呀,项目急用)!
- Struts不打印出错信息
- hibernate配置文件出错?急!
- 用hibernate的hql语句怎样对数据库中的数据进行更新
- 怎样在tomcat中部署JSP的Bean
- struts问题,强人看看咯
- 一个很十万火急得问题!!!!!!!!!!!恳求高人指点啊!
- 请高手指点Eclipse+MyEclipse怎么装插件?
- Unconnected sockets not implemented 创建Socket失败
- J2ee方面设计模式的书????哪个朋友好电子版
- 一个spring中配置hibernate问题
晕~!
不明白
你 试 试:
select userinfo from com.Userinfo as userinfo join com.Carinfo as carinfo where userinfo.userid=carinfo.userid
不 明 白 你 的 意 思,至 少 join 和 right join 是 不 一 样 的 呀
-----------------------------------------------------------------------
kaymo(throw new LowSalaryException(me)) ( ) 信 誉:100 2005-05-17 14:04:00 得 分: 0
为 什 么 用 了 O/R Mapping 还 有 那 么 多 的 join
晕~!
惭 愧,刚 接 触 hibernate ,遇 到 问 题 就 喜 欢 用 jdbc 的 老 办 法,用 对 象 的 方 法 该 怎 么 做?请 指 教。
能 给 个 例 子 或 指 点 几 篇 参 考 资 料 最好。
你的呢称不要加那两个星星了,我想引用你的回复,结果系统老是提示:请不要发表可能给我们带来伤害的言论,谢谢配合 害的我加了一堆空格,晕死
select r.name,u.name from User u left join u.roles where <条件>