- 浏览: 30159 次
- 性别:
- 来自: 广州
文章列表
一个超简单的struts1例子,实现转向新页面关闭旧页面,并隐藏新页面的菜单栏
自己备份一个 :-)
附件工程 JDK1.6
编码 UTF-8
Good luck!
Today when I executed a sql script I found that there must be end with a semicolon(;) by each sql script. Or eles it would make a error like 'Errors occurred while executing SQL'
just a tip
I didn't care of the foreign key before, today I have find my problem with it.
The foreign key must be fllow some constraints.
For example, I have two tables, one named A and one named B. The B table has a column references of the column of A table, and this column in the A table must be a constraint ...
- 2009-05-27 17:30
- 浏览 787
- 评论(0)
Hibernate的一个小功能对开发人员的单元测试挺有用的:在创建SessionFactory对象的时候自动导入数据(import.sql).
大家应该都很熟悉,在classpath下面建一个import.sql语句,还有把hibernate.hbm2ddl.auto属性设置为create或create-drop即可,不过我今天最主要的是说两个步骤都做了,但还以能成功导入数据的问题,就是我们在import.sql中的SQL语句,一行必须是一个完整的SQL语句,否则就可能导入数据失败.
hibernate + import.sql
This is my first article in my ...
- 2009-05-22 18:05
- 浏览 1069
- 评论(0)