Package com.db4o.constraints

Examples of com.db4o.constraints.UniqueFieldValueConstraint


        config = Db4oEmbedded.newConfiguration();
        config.common().activationDepth(depth);
        config.common().updateDepth(depth);
        config.common().objectClass(type).objectField(key).indexed(true);
        config.common().objectClass(ContainerArvores.class).objectField("id").indexed(true);
        config.common().add(new UniqueFieldValueConstraint(type, key));
        //   config.common().add(new UniqueFieldValueConstraint(Arvore.class, key));
//        config.common().add(new UniqueFieldValueConstraint(ContainerArvores.class, key));
        config.common().objectClass(type).cascadeOnUpdate(true);
        config.common().objectClass(type).cascadeOnActivate(true);
        config.common().objectClass(type).cascadeOnDelete(true);
View Full Code Here

TOP

Related Classes of com.db4o.constraints.UniqueFieldValueConstraint

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.