package cn.bdqn.studentInfo.test;import org.hibernate.Session;import org.hibernate.SessionFactory;import o...
转载
2017-02-27 22:42:00
20阅读
2评论
package cn.bdqn.studentInfo.test;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import org.hibernate.cfg.Configuration;import org.hibernate.too
原创
2017-02-27 22:42:02
136阅读
package cn.bdqn.studentInfo.test;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import org.hibernate.cfg.Configuration;import org.hibernate.too...
原创
2017-02-27 22:42:00
79阅读
package cn.bdqn.studentInfo.entity;import java.util.HashSet;import java.util.Set;/** * 学生表的实体类 * @author Administrator * */public class Student { private Integer id; private String name; ...
原创
2017-02-27 22:36:00
131阅读
package cn.bdqn.studentInfo.entity;import java.util.HashSet;import java.util.Set;/** * 老师的实体类 * @author Ad...
转载
2017-02-27 22:38:00
28阅读
2评论
package cn.bdqn.studentInfo.entity;import java.util.HashSet;import java.util.Set;/** * 学生表的实体类 * @author A...
转载
2017-02-27 22:36:00
32阅读
2评论
package cn.bdqn.studentInfo.entity;import java.util.HashSet;import java.util.Set;/** * 老师的实体类 * @author Administrator * */public class Teacher { priva...
转载
2017-02-27 22:38:00
45阅读
2评论
package cn.bdqn.studentInfo.entity;import java.util.HashSet;import java.util.Set;/** * 学生表的实体类 * @author A...
转载
2017-02-27 22:36:00
17阅读
2评论
package cn.bdqn.studentInfo.entity;import java.util.HashSet;import java.util.Set;/** * 老师的实体类 * @author Administrator * */public class Teacher { private Integer id; private String name; p
原创
2017-02-27 22:38:13
84阅读
package cn.bdqn.studentInfo.entity;import java.util.HashSet;import java.util.Set;/** * 老师的实体类 * @author Administrator * */public class Teacher { private Integer id; private String name; p...
原创
2017-02-27 22:38:00
76阅读
package cn.bdqn.studentInfo.entity;import java.util.HashSet;import java.util.Set;/** * 学生表的实体类 * @author Administrator * */public class Student { private Integer id; private String name;
原创
2017-02-27 22:36:10
48阅读
# Java生成数据库
在开发过程中,很多时候需要使用数据库来存储和管理数据。Java作为一种强大的编程语言,提供了多种方式来生成和操作数据库。本文将介绍如何使用Java生成数据库,并提供一些示例代码供参考。
## 1. JDBC
JDBC(Java Database Connectivity)是Java提供的一套操作数据库的API。通过JDBC,我们可以使用Java代码连接到数据库,并执行
原创
2023-10-02 06:17:28
93阅读
(1)建立物理模型,建立好物理模型之后,选择【database】——【change current DBMS】:在DBMS处选择要产生的数据库的版本,点击【确定】(2)选择【database】——【generate database】:点击【应用】,【确定】就可以产生sql的数据库脚本文件了,产生的数据库脚本文件之后到sql数据库中执行就可以了如果在这个过程中报出错误:Generation aborted due to errors detected during the verification of the mod就去掉图中的【check model】前面的那个勾重新产生就可以了
转载
2012-08-10 09:17:00
388阅读
2评论
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN""http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"><!--
转载
2017-02-27 22:39:00
90阅读
2评论
org.hibernate.dialect.Oracle9Dialect jdbc:oracle:thin:@127.0.0.1:1521:orcl stude...
转载
2017-02-27 22:34:00
11阅读
2评论
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN""http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"><
原创
2017-02-27 22:39:00
86阅读
org.hibernate.dialect.Oracle9Dialect jdbc:oracle:thin:@127.0.0.1:1521:orcl stude...
转载
2017-02-27 22:34:00
8阅读
2评论
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN""http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"><
原创
2017-02-27 22:40:00
98阅读