Package org.hibernate.id

Examples of org.hibernate.id.UUIDHexGenerator


        if (key != null) {
            newStructEntry.setKey(String.valueOf(key));
        }
        else {
            UUIDHexGenerator idGenerator = new UUIDHexGenerator();
            newStructEntry.setKey(String.valueOf(idGenerator.generate((SessionImplementor) getSession(), newStructEntry)));
        }

        if (reference instanceof WGArea) {
            Area area = (Area) ((WGDocumentImpl) reference.getCore()).getEntity();
            newStructEntry.setArea(area);
View Full Code Here


        if (name != null) {
            newProfile.setName(name);
        }
        else {
            UUIDHexGenerator idGenerator = new UUIDHexGenerator();
            newProfile.setName(String.valueOf(idGenerator.generate((SessionImplementor) getSession(), newProfile)));
        }
        newProfile.setType(new Integer(type));
        newProfile.setHits(new Integer(0));
        newProfile.setSessions(new Integer(0));
        newProfile.setLanguages(new ArrayList<String>());
View Full Code Here

TOP

Related Classes of org.hibernate.id.UUIDHexGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.