Package javax.jdo.annotations

Examples of javax.jdo.annotations.IdentityType


        String annotationTableAttribute = annotation.table();
        if (Strings.isNullOrEmpty(annotationTableAttribute)) {
            annotationTableAttribute = cls.getSimpleName();
        }

        final IdentityType annotationIdentityType = annotation.identityType();
       
        FacetUtil.addFacet(new JdoPersistenceCapableFacetAnnotation(
                annotationTableAttribute, annotationIdentityType, processClassContext.getFacetHolder()));
        return;
    }
View Full Code Here


            public boolean visit(ObjectSpecification objSpec, ValidationFailures validationFailures) {
                final JdoPersistenceCapableFacet jpcf = objSpec.getFacet(JdoPersistenceCapableFacet.class);
                if(jpcf == null) {
                    return true;
                }
                final IdentityType identityType = jpcf.getIdentityType();
                if(identityType == IdentityType.APPLICATION) {
                    // ok
                   
                } else if(identityType == IdentityType.NONDURABLE) {
                    // ok; for use with view models (http://www.datanucleus.org/products/accessplatform_3_2/datastores/rdbms_views.html)
View Full Code Here

TOP

Related Classes of javax.jdo.annotations.IdentityType

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.