`
dellsoft
  • 浏览: 113295 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论
文章列表
http://wiki.sdn.sap.com/wiki/display/stage/Working+with+Internal+tables+.
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16354
http://www.piragua.com/2009/06/17/grails-p6spy-and-sql-profiler/ 在config文件的logj在那个加入   trace "org.hibernate.SQL", "org.hibernate.type" log4j = { // Example of changing the log pattern for the default console // appender: // //appenders { // ...
http://blog.sina.com.cn/s/blog_4758a28b0100bo25.html
  使用hibernate 的自定义主键   import org.hibernate.SessionFactory class PersonController { SessionFactory sessionFactory def index = { redirect(action:list,params:params) } // the delete, save and update actions only accept POST requests static allowedMethods = [delete:'POST', s ...
import groovy.sql.Sql; class YourController { def dataSource ; ..... def print = { ..... def sql = new Sql(dataSource); List lparams = [startDate, endDate]; def query2 = "select * from invoiceh where trx_date between ? and ? "; ...
public class CustomIdSequenceGenerator extends org.hibernate.id.SequenceGenerator{ private DecimalFormat format; public void configure(Type type, Properties params, Dialect dialect) { super.configure( type, params, dialect); String formatPattern = params.getPr ...
grailsflow 具体地址 http://my.jcatalog.com/grailsflow/login   下面说说,grailsflow的流程处理.本人对工作流不熟悉,加之grailsflow文档有限。 只是粗略的看了下 grailsflow 的代码,如发现有错误,请指正留言。     grailsflow 分以下几个方面 1 ...
在把StatusBar放到一个Panel上时,如果这个panel在ViewPort中的South ,需要把 Panel的height 设置成 0 否则在ie7中,会有一个13px的空白。 var statusBar = new Ext.Panel({ // autoHeight: true, [b] height:0,[/b] // title: 'StatusBar', region:'south', // bodySt ...
GenerateDataabase.groovy import java.lang.reflect.Method import com.pansoft.extjs.DbunitDatabaseTemplateGenerator import java.sql.Connection import java.sql.DriverManager /* * Copyright 2004-2005 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the " ...
用 poi 来导出 excel 文件 import org.codehaus.groovy.grails.commons.* import org.apache.poi.hssf.usermodel.HSSFWorkbook import org.apache.poi.hssf.usermodel.HSSFSheet import org.apache.poi.hssf.usermodel.HSSFRow import org.apache.poi.hssf.usermodel.HSSFCell import org.codehaus.groovy.grails.commons. ...
在config.groovy 下面配置 grails.war.resources = {stagingDir ->     copy(todir: "${stagingDir}/WEB-INF/classes/grails-app/yourDir") {         fileset(dir:"grails-app/YourDir")     } }
在datasource.groovy password = YourClass.decode(加密后的密码) 提前用YourClass.encode(原始密码)获得加密后的密码
http://www.zorched.net/2008/01/25/build-a-custom-validator-in-grails-with-a-plugin/
原文 http://amorproximi.blogspot.com/2008/07/grails-bootstrapping.html 择录部分, Ant.property(environment: "env") grailsHome = Ant.antProject.properties."env.GRAILS_HOME" includeTargets << new File("${grailsHome}/scripts/Bootstrap.groovy") target('default': "Wor ...
Global site tag (gtag.js) - Google Analytics