---
title: "hibernate的hbm配置文档"
author: "cakin24"
date: "2017-11-06T21:37:01Z"
tags: []
categories: ["编程语言"]
slug: "hibernate-hbm"
draft: false
lastmod: "2017-11-06T21:37:01Z"
id: 2398841
url: "https://cakin24.iteye.com/blog/2398841"
---

一 hbm配置文件常用设置

![](http://dl2.iteye.com/upload/attachment/0127/7123/8eeb7ae8-dad7-3373-b631-285dc5e761b9.png)  
 

![](http://dl2.iteye.com/upload/attachment/0127/7125/8bc33cc7-aab5-3865-b36e-fa430efd3ac4.png)  
 

![](http://dl2.iteye.com/upload/attachment/0127/7127/7009ff71-d82c-3b02-b2d6-30241026597c.png)  
 

 

二 主键生成策略

 

![](http://dl2.iteye.com/upload/attachment/0127/7129/48e5e4f4-e74b-331e-90e9-e914b8157262.png)