Package com.alvazan.orm.api.base.anno

Examples of com.alvazan.orm.api.base.anno.NoSqlInheritance


    //field needs a reference to the MetaClass of Account.  To solve this, it creates a shell
    //of MetaClass that will be filled in here when Account gets scanned(if it gets scanned
    //after Activity that is).  You can open call heirarchy on findOrCreateMetaClass ;).
    MetaAbstractClass classMeta = metaInfo.findOrCreate(clazz);
   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    DboTableMeta metaDbo = classMeta.getMetaDbo();

    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
View Full Code Here


    if(log.isDebugEnabled())
      log.debug("superclass with @NoSqlEntity="+theSuperclass);
    if(theSuperclass == null)
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn but as we go " +
          "up the superclass tree, none of the classes are annotated with NoSqlEntity, please add that annotation");
    NoSqlInheritance anno = theSuperclass.getAnnotation(NoSqlInheritance.class);
    if(anno == null)
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn but as we go " +
          "up the superclass tree, none of the classes are annotated with NoSqlInheritance");
    else if(!classExistsInList(anno, entityType))
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn and has a super class with NoSqlEntity and NoSqlInheritance but is not listed" +
View Full Code Here

    //field needs a reference to the MetaClass of Account.  To solve this, it creates a shell
    //of MetaClass that will be filled in here when Account gets scanned(if it gets scanned
    //after Activity that is).  You can open call heirarchy on findOrCreateMetaClass ;).
    MetaAbstractClass classMeta = metaInfo.findOrCreate(clazz);
   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
View Full Code Here

      if(log.isDebugEnabled())
        log.debug("superclass with @NoSqlEntity="+theSuperclass);
      if(theSuperclass == null)
        throw new RuntimeException("type="+field.getType()+" has a NoSqlDiscriminatorColumn but as we go " +
            "up the superclass tree, none of the classes are annotated with NoSqlEntity, please add that annotation");
      NoSqlInheritance anno = theSuperclass.getAnnotation(NoSqlInheritance.class);
      if(anno == null)
        throw new RuntimeException("type="+field.getType()+" has a NoSqlDiscriminatorColumn but as we go " +
            "up the superclass tree, none of the classes are annotated with NoSqlInheritance");
      else if(!classExistsInList(anno, field.getType()))
        throw new RuntimeException("type="+field.getType()+" has a NoSqlDiscriminatorColumn and has a super class with NoSqlEntity and NoSqlInheritance but is not listed" +
View Full Code Here

    //field needs a reference to the MetaClass of Account.  To solve this, it creates a shell
    //of MetaClass that will be filled in here when Account gets scanned(if it gets scanned
    //after Activity that is).  You can open call heirarchy on findOrCreateMetaClass ;).
    MetaAbstractClass classMeta = metaInfo.findOrCreate(clazz);
   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    DboTableMeta metaDbo = classMeta.getMetaDbo();

    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
View Full Code Here

    if(log.isDebugEnabled())
      log.debug("superclass with @NoSqlEntity="+theSuperclass);
    if(theSuperclass == null)
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn but as we go " +
          "up the superclass tree, none of the classes are annotated with NoSqlEntity, please add that annotation");
    NoSqlInheritance anno = theSuperclass.getAnnotation(NoSqlInheritance.class);
    if(anno == null)
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn but as we go " +
          "up the superclass tree, none of the classes are annotated with NoSqlInheritance");
    else if(!classExistsInList(anno, entityType))
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn and has a super class with NoSqlEntity and NoSqlInheritance but is not listed" +
View Full Code Here

    //field needs a reference to the MetaClass of Account.  To solve this, it creates a shell
    //of MetaClass that will be filled in here when Account gets scanned(if it gets scanned
    //after Activity that is).  You can open call heirarchy on findOrCreateMetaClass ;).
    MetaAbstractClass classMeta = metaInfo.findOrCreate(clazz);
   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
    } else {
      MetaClassSingle classMeta2 = (MetaClassSingle)classMeta;
View Full Code Here

    if(log.isDebugEnabled())
      log.debug("superclass with @NoSqlEntity="+theSuperclass);
    if(theSuperclass == null)
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn but as we go " +
          "up the superclass tree, none of the classes are annotated with NoSqlEntity, please add that annotation");
    NoSqlInheritance anno = theSuperclass.getAnnotation(NoSqlInheritance.class);
    if(anno == null)
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn but as we go " +
          "up the superclass tree, none of the classes are annotated with NoSqlInheritance");
    else if(!classExistsInList(anno, entityType))
      throw new RuntimeException("type="+entityType+" has a NoSqlDiscriminatorColumn and has a super class with NoSqlEntity and NoSqlInheritance but is not listed" +
View Full Code Here

      if(log.isDebugEnabled())
        log.debug("superclass with @NoSqlEntity="+theSuperclass);
      if(theSuperclass == null)
        throw new RuntimeException("type="+field.getType()+" has a NoSqlDiscriminatorColumn but as we go " +
            "up the superclass tree, none of the classes are annotated with NoSqlEntity, please add that annotation");
      NoSqlInheritance anno = theSuperclass.getAnnotation(NoSqlInheritance.class);
      if(anno == null)
        throw new RuntimeException("type="+field.getType()+" has a NoSqlDiscriminatorColumn but as we go " +
            "up the superclass tree, none of the classes are annotated with NoSqlInheritance");
      else if(!classExistsInList(anno, field.getType()))
        throw new RuntimeException("type="+field.getType()+" has a NoSqlDiscriminatorColumn and has a super class with NoSqlEntity and NoSqlInheritance but is not listed" +
View Full Code Here

    //field needs a reference to the MetaClass of Account.  To solve this, it creates a shell
    //of MetaClass that will be filled in here when Account gets scanned(if it gets scanned
    //after Activity that is).  You can open call heirarchy on findOrCreateMetaClass ;).
    MetaAbstractClass classMeta = metaInfo.findOrCreate(clazz);
   
    NoSqlInheritance annotation = clazz.getAnnotation(NoSqlInheritance.class);
    DboTableMeta metaDbo = classMeta.getMetaDbo();

    if(classMeta instanceof MetaClassInheritance) {
      MetaClassInheritance classMeta2 = (MetaClassInheritance) classMeta;
      scanMultipleClasses(annotation, classMeta2);
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.base.anno.NoSqlInheritance

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.