不好意思,没有详细说。我用Hibernate的HQL想合并两个查询,但是Hibernate不支持使用union不知有没有人遇过这样的问题,怎么解决他。
解决方案 »
- 新手配置spring时出错XmlBeanDefinitionStoreException,求大神解决
- 真心 不想 折腾了 谁告我 我睡了 希望明天醒来就解决了
- MyEclipse 删除了工作空间的.metadata后原来的项目不能用了
- jsp中获得用户退出的时间
- 如何用jdom生成office生成的xml文件
- MyEclipse开发CMP2.X 遇到的问题 急急急
- 求人帮忙编写一个MVC框架的会议管理系统
- Tomcat问题!
- SOS for application server
- WebLogic中怎么设置调度池所容纳的最大Bean数目?
- 怎么在java application中不能访问另一个计算机上jboss的datasource?访问ejb都没有问题呀?
- 在用IIS+RESIN3.0.8的兄弟进来
The application may concurrently access the same persistent state in two different units-of-work. However, an instance of a persistent class is never shared between two Session instances. Hence there are two different notions of identity: Database Identity
foo.getId().equals( bar.getId() ) JVM Identity
foo==bar Then for objects attached to a particular Session, the two notions are equivalent. However, while the application might concurrently access the "same" (persistent identity) business object in two different sessions, the two instances will actually be "different" (JVM identity). This approach leaves Hibernate and the database to worry about concurrency. The application never needs to synchronize on any business object, as long as it sticks to a single thread per Session or object identity (within a Session the application may safely use == to compare objects).