上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 42 下一页
摘要: 前面的需求分析好像是很顺利(至少是进行到现在,以后除了问题),下面我们直接开始了设计首页,没有美工怎么办?虽然会使用css和开源的jquery库,但是经过这么多年工科的洗礼,现在的审美观基本上是费了,那该怎么办呢?当时的第一个反应是:在网上找现成的模板,经过由一两天的奋战,总结出的经验是:不要再国内的网站上去找模板,好像是没什么好的?老多的东西还是download完了,当你满怀欣喜查看时,原来里边是一对垃圾。下面的几个网站是我认为比较好的几个: http://themebot.com/free-website-templates/html-templateshttp://www.opendes 阅读全文
posted @ 2010-06-15 09:59 qiang.xu 阅读(367) 评论(0) 推荐(0) 编辑
摘要: HQL Batch Update, Insert1.Batch InsertSession session = sessionFactory.openSession();Transaction tx = session.beginTransaction();for ( int i=0; i<100000; i++ ) { Customer customer = new Customer(.....); session.save(customer);}tx.commit();session.close(); 2.Batch UpdateSession session = sessi 阅读全文
posted @ 2010-06-14 17:00 qiang.xu 阅读(248) 评论(0) 推荐(0) 编辑
摘要: HQL Delete Example/////////////////////////////////////////////////////////////////////////import java.util.*;import java.sql.*;import org.hibernate.*;import org.hibernate.criterion.*;public class Main { public static void main(String[] args) { HibernateUtil.setup("create table Supplier ( id in 阅读全文
posted @ 2010-06-14 16:56 qiang.xu 阅读(282) 评论(0) 推荐(0) 编辑
摘要: Introduction to HQL1. Select statement : See this, http://blog.sina.com.cn/s/blog_65b4ed520100hbij.htmlSession session = sessionFactory.openSession();Query query = session.createQuery("from User"); List names = query.list();Iterator iterator = names.iterator();while(iterator.hasNext()) { 阅读全文
posted @ 2010-06-14 16:54 qiang.xu 阅读(156) 评论(0) 推荐(0) 编辑
摘要: How to use Hibernate in NetBean IDE?See this : http://netbeans.org/kb/docs/java/hibernate-java-se_zh_CN.html,这里使用的是mysql数据库,如何使用sql server数据库参见: http://blog.csdn.net/xuqianghit/archive/2010/06/10/5662371.aspx 阅读全文
posted @ 2010-06-14 16:42 qiang.xu 阅读(114) 评论(0) 推荐(0) 编辑
摘要: What's Hibernate? and What is the function of Hibernate?Working with object-oriented software and a relational database can be cumbersome and time consuming in today's enterprise environments. Hibernate is an Object/Relational Mapping tool for Java environments. The term Object/Relational Ma 阅读全文
posted @ 2010-06-14 16:37 qiang.xu 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 第一个独立完成的网站现在已经发布成功,写写记录,告慰一下受伤的心灵(主要不是什么高手啊,其实那个网站很小,但是在过程中还是遇到很多的问题)。最初的时候,我们去找boss去商讨这个网站需要哪些功能,令我们意想不到的是我们的boss已经把需求给我们写了一份很明确的文档,比如说是菜单中有几项,每一项下面有几个下拉的选项,然后整个网站中要包含哪些内容,比如说需要一个新闻模块,留言模块。。。当时我们就是很兴奋啊,原来需求就这么搞定了,之后只是随便说了两句,就把价钱谈好了。当时的想法很是‘激动’啊,如果都是这样的客户该有多么好啊。网站做下来才知道,软件工程的那一套并 阅读全文
posted @ 2010-06-14 09:34 qiang.xu 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 外部触发的事件和工作流在出发之后使用调用的函数是两码事。可以这样认为所谓的接口只是提供了一种的对应关系。1)首先是接口提供了能干什么?2)接口的实现类来直接调调用接口中公开的方法,其实这里调用的就是在工作流中invoke中的方法。所以将所谓的接口只是提供了一种的对应的方法。例如下面的代码:Test.csnamespaceHandleExternalEventActivityTest{//Args[Serializable]publicclassArgsTest:ExternalDataEventArgs{publicArgsTest(Guidid):base(id){}}[Serializab 阅读全文
posted @ 2010-06-12 16:38 qiang.xu 阅读(213) 评论(0) 推荐(0) 编辑
摘要: An interface can declare an event. The following example shows how to implement interface events in a class. Basically the rules are the same as when implementing any interface method or property.To implement interface events in a classDeclare the event in your class and then invoke it in the approp 阅读全文
posted @ 2010-06-12 16:26 qiang.xu 阅读(175) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Threading;using System.Windows.Forms;using System.Workflow.Runtime;using System.Workflow.Activities;namespace Microsoft.Samples.Workflow.Communication.HostCommunication{ // Class defines the message passed between the local service and the workflow [Serializable] internal c 阅读全文
posted @ 2010-06-11 21:55 qiang.xu 阅读(299) 评论(0) 推荐(0) 编辑
摘要: http://blog.ednchina.com/Crazyweek/183280/message.aspxkeil C语言与汇编语言混合编程1. C语言中嵌入汇编1、在 C 文件中要嵌入汇编代码片以如下方式加入汇编代码:#pragma ASM; Assembler Code Here#pragma ENDASM2、在 Project 窗口中包含汇编代码的 C 文件上右键,选择“Options for ...”,点击右边的“Generate Assembler SRC File”和“Assemb 阅读全文
posted @ 2010-06-11 15:31 qiang.xu 阅读(5155) 评论(0) 推荐(0) 编辑
摘要: Database-Level RolesFixed database roles are defined at the database level and exist in each database. Members of thedb_owneranddb_securityadmindatabase roles can manage fixed database role membership; however, only members of thedb_ownerdatabase role can add members to thedb_ownerfixed database rol 阅读全文
posted @ 2010-06-10 21:30 qiang.xu 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 原文地址 : http://blog.sina.com.cn/s/blog_53f1134f01008max.html1. 至微软的网站下载sqljdbc驱动文件,地址为:http://www.microsoft.com/downloads/thankyou.aspx?familyId=c47053eb-3b64-4794-950d-81e1ec91c1ba&displayLang=en下载到Microsoft SQL Server 2005 JDBC Driver 1.2,下载的是一个自解压文件sqljdbc_1.2.2828.100_enu.exe。2. 执行sqljdbc 阅读全文
posted @ 2010-06-10 21:22 qiang.xu 阅读(2441) 评论(0) 推荐(0) 编辑
摘要: 当我按照这个教程http://zh-cn.netbeans.org/kb/docs/java/gui-db.html时出现下面的错误:run:2010-6-10 20:11:54 org.jdesktop.application.Application$1 run严重: Application class carsapp.CarsApp failed to launchjavax.persistence.PersistenceException: No Persistence provider for EntityManager named car_databasePU: The follow 阅读全文
posted @ 2010-06-10 20:18 qiang.xu 阅读(1184) 评论(0) 推荐(0) 编辑
摘要: From : http://officenotes.spaces.live.com/blog/cns!43AE5D331F584382!304.entry?sa=89712578"Login failed for user 'username'. Reason: The account is disabled. (Microsoft SQL Server, Error: 18470)""Login failed for user 'username'. Reason: The account is disabled. (Micros 阅读全文
posted @ 2010-06-10 20:01 qiang.xu 阅读(638) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 42 下一页