Hibernate基础课程(第4课):关于增加数据的内容
发布时间
阅读量:
阅读量
在数据库管理系统中,数据的创建、读取、更新与删除(即CRUD操作)构成了最为基础且频繁使用的功能。本文将重点阐述如何实现数据的新增操作。
hibernate.cfg.xml
生成如下的Hibernate配置文件
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration SYSTEM
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/hbtestdb?useSS
全部评论 (0)
还没有任何评论哟~
