- 博客(5)
- 收藏
- 关注
原创 一对多hibernate 添加数据(二)
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN""http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"><!-- Mapping file autogenerated by MyEclipse Persiste
2014-10-15 19:15:39 629
转载 一对多··Hibernate添加数据方式(一)
[quote=引用 10 楼 u010054969 的回复:]设置inverse=”true”,由多的一段来来维护关系表以Student(学生)和Class(班级)为例,它们之间的关系为一对多的关系,即一个学生只能属于一个班级,一个班级可以包含多个学生[code=java] 学生类定义代码:Class Student{ private int id;
2014-10-15 19:14:20 585
原创 对接口的深刻理解
[main] DEBUG org.springframework.context.support.FileSystemXmlApplicationContext - Publishing event in org.springframework.context.support.FileSystemXmlApplicationContext@35960f05: org.springframework
2014-10-07 01:32:39 628
原创 使用DAO时发生空指针错误
2014-10-6 17:38:26 dao.daoImpl.CustomerDAO save严重: save failedjava.lang.NullPointerExceptionat dao.daoImpl.CustomerDAO.save(CustomerDAO.java:51)at test.CustomerDAOtest.testSave(CustomerDAOtest
2014-10-06 17:44:32 2473
原创 SQL语句错误
MySQL Error Nr.1064-You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not null, mypassword varchar
2014-10-06 12:40:53 535
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人