@@ -0,0 +1,2175 @@
+/**%0A * Copyright (c) 2015 Chiral Behaviors, LLC, all rights reserved.%0A * %0A %0A * This file is part of Ultrastructure.%0A *%0A *  Ultrastructure is free software: you can redistribute it and/or modify%0A *  it under the terms of the GNU Affero General Public License as published by%0A *  the Free Software Foundation, either version 3 of the License, or%0A *  (at your option) any later version.%0A *%0A *  ULtrastructure is distributed in the hope that it will be useful,%0A *  but WITHOUT ANY WARRANTY; without even the implied warranty of%0A *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A *  GNU Affero General Public License for more details.%0A *%0A *  You should have received a copy of the GNU Affero General Public License%0A *  along with Ultrastructure.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage com.chiralbehaviors.CoRE;%0A%0Aimport java.io.Serializable;%0Aimport java.util.Properties;%0A%0Aimport org.hibernate.HibernateException;%0Aimport org.hibernate.MappingException;%0Aimport org.hibernate.engine.spi.SessionImplementor;%0Aimport org.hibernate.id.Configurable;%0Aimport org.hibernate.id.IdentifierGenerator;%0Aimport org.hibernate.service.ServiceRegistry;%0Aimport org.hibernate.type.Type;%0A%0Aimport com.fasterxml.uuid.Generators;%0Aimport com.fasterxml.uuid.NoArgGenerator;%0A%0A/**%0A * @author hhildebrand%0A *%0A */%0Apublic class UuidGenerator implements IdentifierGenerator, Configurable %7B%0A    public static final NoArgGenerator GENERATOR = Generators.timeBasedGenerator();%0A%0A    /* (non-Javadoc)%0A     * @see org.hibernate.id.Configurable#configure(org.hibernate.type.Type, java.util.Properties, org.hibernate.service.ServiceRegistry)%0A     */%0A    @Override%0A    public void configure(Type type, Properties params,%0A                          ServiceRegistry serviceRegistry) throws MappingException %7B%0A        // nothing to configure%0A    %7D%0A%0A    /* (non-Javadoc)%0A     * @see org.hibernate.id.IdentifierGenerator#generate(org.hibernate.engine.spi.SessionImplementor, java.lang.Object)%0A     */%0A    @Override%0A    public Serializable generate(SessionImplementor session,%0A                                 Object object) throws HibernateException %7B%0A        return GENERATOR.generate();%0A    %7D%0A%7D

Add a uuid generator when I can get it to work with the workspace magic.