• 创建java工程 导入hibernate jar包 配置hibernate cfg xml配置文件 创建数据库以及表 创建实体类 符合javabean规范的 创建实体类对应的xxxx hbm xml文件 完成映射的配置 创建test方法 测