---
title: "hibernate自动生成表结构"
author: "wsqian"
date: "2010-09-21T11:14:22Z"
tags: ["Hibernate", "数据结构"]
categories: ["企业架构"]
slug: "hibernate"
draft: false
lastmod: "2010-09-21T11:14:22Z"
id: 768880
url: "https://wsqian.iteye.com/blog/768880"
---

hibernate Annotation不用SchemaExport也可以生成表呀，只要在sessionFactory配置的过程中 update 其中update表示加载hibernate自动更新数据库结构，你也可以用create,但这样你数据库中的所有数据都会被清除，估计你现在写的是none,所以不会自动生成