List of usage examples for org.hibernate.id UUIDGenerator UUIDGenerator
UUIDGenerator
From source file:org.webical.dao.hibernateImpl.EventDaoWebDavHibernateBufferedImpl.java
License:Open Source License
/** * Uses the hibernate uid generator//w w w. j a v a2s .c o m * @return a UUIDGenerator */ private UUIDGenerator getUuidGen() { if (uuidGen != null) return uuidGen; Properties uidprops = new Properties(); uidprops.setProperty("separator", "-"); uuidGen = new UUIDGenerator(); ((Configurable) uuidGen).configure(org.hibernate.type.StandardBasicTypes.STRING, uidprops, null); return uuidGen; }