---
title: "could not interpret id generator strategy: UUID"
author: "daoshud1"
date: "2011-03-18T09:52:18Z"
tags: []
categories: ["企业架构"]
slug: "could-not-interpret-id-generator-strategy-uuid"
draft: false
lastmod: "2011-03-18T09:52:18Z"
id: 966041
url: "https://daoshud1.iteye.com/blog/966041"
---

使用hibernate时出现
could not interpret id generator strategy: UUID
在hibernate2.1中，主键生成策略中uuid分为uuid.hex和uuid.string，但是从hibernate3.0开始已经不再支持uuid.string
所以将主键生成策略改为uuid.hex 就可以了