Hibernate: select * from ( select areaoperat0_.F001N_0003 as F1_5_, areaoperat0_.F002V_0003 as F2_5_, areaoperat0_.F003D_0003 as F3_5_, areaoperat0_.F004V_0003 as F4_5_, areaoperat0_.F005V_0003 as F5_5_, areaoperat0_.F006V_0003 as F6_5_, areaoperat0_.F007V_0003 as F7_5_, areaoperat0_.F008V_0003 as F8_5_, areaoperat0_.F009V_0003 as F9_5_, areaoperat0_.F010V_0003 as F10_5_ from TB_DQHD_0003 areaoperat0_ where areaoperat0_.F004V_0003='141' order by areaoperat0_.F005V_0003 desc ) where rownum <= ?
其中蓝色部分可以直接拷到数据库进行查询!这可是好东西
分享到:
相关推荐
BoneCP数据源记录SQl比hibernate的show sql好用.docx
虽然在hibernate中有show_sql选项,但是显示出来的语句大多类似 select * from xxx where value=? 但是有时候我们需要得到完整的SQL语句,怎么办呢?使用P6SPY就可以完成这个任务
p6spy和sqlProfiler的配合使用让你的hibernate的show_sql更好用 p6spy和sqlProfiler的配合使用让你的hibernate的show_sql更好用 p6spy和sqlProfiler的配合使用让你的hibernate的show_sql更好用
<property name="show_sql">True</property> 其他标签就删去吧! 第二步:web.xml 加入:[/b] <servlet > <servlet-name >ServletConfigurator </servlet-name > <servlet-class >org.logicalcobwebs....
<prop key="hibernate.show_sql">true <!-- 配置hibernateTemplate --> <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"> class="org....
<property name="hibernate.show_sql">true <property name="hibernate.format_sql">true <property name="hibernate.hbm2ddl.auto">update <!-- 配置C3P0的连接池 --> ...
<prop key="hibernate.show_sql">false !-- Create/update the database tables automatically when the JVM starts up <prop key="hibernate.hbm2ddl.auto">update</prop> --> !-- Turn batching off for ...
hibernate.dialect = org.hibernate.dialect.MySQLDialect //指定数据库使用的sql方言(oracle、mysql) hibernate.connection.driver_class...hibernate.show_sql=true //true表示程序运行时,会在控制台输出sql语句。
”show_sql”>true <!– SQL方言,这边设定的是MySQL –> ”dialect”>net.sf.hibernate.dialect.MySQLDialect</property> <!– 一次读的数据库记录数 –> ”jdbc.fetch_size”>50 <!– 设定对数据库进行批量...
六、 ehibernate.cfg.xml : show_sql 17 七、 hibernate.cfg.xml :format_sql 17 八、 表名和类名不同,对表名进行配置 17 九、 字段名和属性相同 17 十、 字段名和属性名不同 17 十一、 不需要(持久化)psersistence...
配置文件中的 <property name="show_sql">true</property> 是为了在控制台显示sql语句 这样hibernate框架环境就搭建好了 第三步,建好hibernate框架之后 需要我们有对应的数据库和实体类,所以我们要去创建数据库...
#hibernate.show_sql true ## format SQL in log and console hibernate.format_sql true ## add comments to the generated SQL #hibernate.use_sql_comments true ## generate statistics #hibernate....
怎样运用Hibernate hibernate.dialect=org.hibernate.dialect.SQLServerDialect hibernate.connection.driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver hibernate.connection... hibernate.show_sql=true
they map to SQL tables and columns. We explore all basic and advanced mapping options in Hibernate and Java Persistence. We show you how to deal with inheritance, collections, and complex class ...
This is a bit like the way Hibernate uses optimistic locking for versioned objects. The benefit is that lock contention is totally removed because there aren’t any locks on rows! This means that ...
<property name="show_sql">true <!-- Drop and re-create the database schema on startup --> <property name="hbm2ddl.auto">update </hibernate-configuration> 5.创建实体类 package cc.tukai....
二.创建持久化对象和映射文件 1.持久化对象创建 2.... <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/... <property name="show_sql">true 映射文件所在包/?.hbm.xml"/> </hibernate-configuration>
<prop key="hibernate.show_sql">true <prop key="hibernate.cglib.use_reflection_optimizer"> true <prop key="hibernate.cache.provider_class"> org.hibernate.cache....
经典的struts2+spring2+hibernate3编程。 实现为MySQL,带有技术说明文档,sql文档。 是学习struts2+spring2+hibernate3编程的经典案例。 核心为show.action
<prop key="hibernate.show_sql">true <prop key="hibernate.format_sql">true class="org.springframework.orm.hibernate3.HibernateTransactionManager"> ...