[WARN]: Using org.hibernate.id.UUIDHexGenerator which does not gen
2013-07-21 21:19
381 查看
[WARN]: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead
根据提示信息,更改主键生成策略使用 org.hibernate.id.UUIDGenerator
@Id
@Column(length = 32, nullable = false)
@GeneratedValue(generator = "uuid") //指定生成器名称
@GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator") //生成器名称,uuid生成类
根据提示信息,更改主键生成策略使用 org.hibernate.id.UUIDGenerator
@Id
@Column(length = 32, nullable = false)
@GeneratedValue(generator = "uuid") //指定生成器名称
@GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator") //生成器名称,uuid生成类
相关文章推荐
- 【hibernate】主键生成策略使用UUID报出如下警告:org.hibernate.id.UUIDHexGenerator - HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values;
- Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values;
- Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values;
- Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values;
- Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values;
- Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values;
- Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values;
- org.hibernate.MappingException: could not instantiate id generator
- 在Hibernate中配置Hilo进行数据绑定测试时出错:org.hibernate.MappingException: Could not instantiate id generator
- Hibernate中id设置<generator class="uuid.hex" />
- org.hibernate.AnnotationException: Unknown Id.generator: Teacher_GEN
- 继承类的@Transactional:org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow crea
- WARN [org.hibernate.engine.jdbc.internal.JdbcServicesImpl] - <HHH000342: Could not obtain connectio
- 继承类的@Transactional:org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
- server certificate does NOT include an ID which matches the server name问题解决
- hibernate出现:org.hibernate.PropertyNotFoundException: Could not find a getter for id in class
- 初识Hibernate:Could not instantiate id generator [entity-name=com.hibernate.e
- org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not a
- Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults
- org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not