`
spring028
  • 浏览: 43808 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
1 I want a package deal including airfare and hotel. 我需要一个成套服务,包括机票和住宿2 I’d like to change this ticket to the first class.我想把这张票换成头等车。 3 I’d like to reserve a sleeper to Chicago. 我要预订去芝加哥的卧铺。 4 I won’t check this baggage 这件行李我不托运。 5 I’d like to sit in the front of the plane. 6 I missed my train. 7 I ...
  我爱你并不是因为你是谁,而是因为我在你身边的时候我是谁。   I love you not for whom you are, but who I am when I'm by your side.  没有人值得你流泪,值得你流泪的人是不会让你哭的。   No person deserves your tears, and who deservers them ...
/* * Generated by MyEclipse Struts * Template path: templates/java/JavaClass.vtl */ package com.sunsoft.struts.action; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionFo ...
第一种方式:QBC查询 String name = "", info = ""; if (sub != null && sub.getSubname() != null) { name = sub.getSubname(); } if (sub != null && sub.getSubinfo() != null) { info = sub.getSubinfo(); } Criteria cr = session.createCriteria(Subject.class); cr.add(Expression.like( ...
public  List find( final  String hsql,  final   int  firstRow,  final   int  maxRow)  throws  Exception {    return  getHibernateTemplate().executeFind( new  HibernateCallback() {      public  Object doInHibernate(Session s)  throws  HibernateException, SQLException {            Query query  =  s.cre ...
<!-- applicationContext.xml --> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="dataSource" class=&quo ...
说到JasperReports,我们首先还得来学习一下Ireport;目录最新的版本为2.01、设置数据源"Data"-->"连结/资料来源"记住,在使用数据源之前,我们要先把数据库连接驱动拷贝至Ireport安装目录的lib目录下~二、设置字体"格式化"-->“报表字型"操作时系统会提示强烈建议使用style样式代替字体设置三、建立查询"Data"-->"报表查询"系统自动列出查询表的字段名称及属性,并且可以在报表中直接引用。
程序代码 <%@ page contentType="text/html;charset=GBK"%><%@ page import="java.awt.Color,org.jfree.chart.ChartFactory,org.jfree.chart.JFreeChart,org.jfree.chart.plot.PlotOrientation,org.jfree.chart.servlet.ServletUtilities,org.jfree.chart.plot.CategoryPlot,org.jfree.char ...
<!-- 配置EJB本地bean的引用 -->  <!-- 其中ref-type定义bean类型(一种是实体bean,一种是会话bean),local-home和local必须为完全限定名 -->  <ejb-local-ref>          <ejb-ref-name>ebj/Customer</ejb-ref-name>          <ejb-ref-type>Entity</ejb-ref-type>          <local-home>com.zb.CustomerHome& ...
程序代码 <%@ page contentType="text/html;charset=GBK"%><%@ page import="java.sql.*" %><%@ page import="java.io.*" %><%@ page import="org.jfree.chart.title.TextTitle" %><%@ page import="org.jfree.chart.*" %><%@ page import ...
注意: 是Query.iterate(),而不是Query.iterator(); 程序代码         Session session=HibernateSessionFactory.getSession();        List li=null;        Iterator it=null;        Date d=new Date();        System.out.print(d.toString());        Query q=session.createQuery("from TgovMaterialBak");        li ...
表中主键必须为标识列,[ID] int IDENTITY (1,1)      1.分页方案一:(利用Not In和SELECT TOP分页)    语句形式: SELECT TOP 10 * FROM TestTable WHERE (ID NOT IN           (SELECT TOP 20 id          FROM TestTable          ORDER BY id)) ORDER BY ID   SELECT TOP 页大小 * FROM TestTable WHERE (ID NOT IN           (SELECT TOP
  <table>   <logic:iterate name="list" id="a" indexId="i" offset="0" length="6" >               <bean:define id="temp" value="${i%2}"></bean:define
Global site tag (gtag.js) - Google Analytics