Package com.alvazan.orm.impl.meta.data

Examples of com.alvazan.orm.impl.meta.data.IdInfo


      throw new IllegalArgumentException("Field="+field+" is a primary key so it cannot have annotation="+NoSqlPartitionByThisField.class.getName());
   
    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    IdInfo info = new IdInfo();
    info.setIdMethod(idMethod);
    info.setConverter(converter);
    info.setGen(gen);
    info.setUseGenerator(idAnno.usegenerator());
    info.setMetaClass(metaClass);
    metaField.setup(t, info, field, columnName, isIndexed);
    return metaField;
  }
View Full Code Here


    if(field.isAnnotationPresent(NoSqlPartitionByThisField.class))
      throw new IllegalArgumentException("Field="+field+" is a primary key so it cannot have annotation="+NoSqlPartitionByThisField.class.getName());
   
    try {
      converter = lookupConverter(type, converter);
      IdInfo info = new IdInfo();
      info.setIdMethod(idMethod);
      info.setConverter(converter);
      info.setGen(gen);
      info.setUseGenerator(idAnno.usegenerator());
      info.setMetaClass(metaClass);
      metaField.setup(t, info, field, columnName, isIndexed);
      return metaField;
    } catch(IllegalArgumentException e)  {
      throw new IllegalArgumentException("No converter found for field='"+field.getName()+"' in class="
          +field.getDeclaringClass()+".  You need to either add on of the @*ToOne annotations, @Embedded, " +
View Full Code Here

      throw new IllegalArgumentException("Field="+field+" is a primary key so it cannot have annotation="+NoSqlPartitionByThisField.class.getName());
   
    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    IdInfo info = new IdInfo();
    info.setIdMethod(idMethod);
    info.setConverter(converter);
    info.setGen(gen);
    info.setUseGenerator(idAnno.usegenerator());
    info.setMetaClass(metaClass);
    metaField.setup(t, info, field, columnName, isIndexed);
    return metaField;
  }
View Full Code Here

      throw new IllegalArgumentException("Field="+field+" is a primary key so it cannot have annotation="+NoSqlPartitionByThisField.class.getName());
   
    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    IdInfo info = new IdInfo();
    info.setIdMethod(idMethod);
    info.setConverter(converter);
    info.setGen(gen);
    info.setUseGenerator(idAnno.usegenerator());
    info.setMetaClass(metaClass);
    metaField.setup(t, info, field, columnName, isIndexed);
    return metaField;
  }
View Full Code Here

      throw new IllegalArgumentException("Field="+field+" is a primary key so it cannot have annotation="+NoSqlPartitionByThisField.class.getName());
   
    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    IdInfo info = new IdInfo();
    info.setIdMethod(idMethod);
    info.setConverter(converter);
    info.setGen(gen);
    info.setUseGenerator(idAnno.usegenerator());
    info.setMetaClass(metaClass);
    metaField.setup(t, info, field, columnName, isIndexed);
    return metaField;
  }
View Full Code Here

      throw new IllegalArgumentException("Field="+field+" is a primary key so it cannot have annotation="+NoSqlPartitionByThisField.class.getName());
   
    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    IdInfo info = new IdInfo();
    info.setIdMethod(idMethod);
    info.setConverter(converter);
    info.setGen(gen);
    info.setUseGenerator(idAnno.usegenerator());
    info.setMetaClass(metaClass);
    metaField.setup(t, info, field, columnName, isIndexed);
    return metaField;
  }
View Full Code Here

      throw new IllegalArgumentException("Field="+field+" is a primary key so it cannot have annotation="+NoSqlPartitionByThisField.class.getName());
   
    converter = lookupConverter(field, type, converter);
    if(converter == null)
      throw throwInvalidConverter(field);
    IdInfo info = new IdInfo();
    info.setIdMethod(idMethod);
    info.setConverter(converter);
    info.setGen(gen);
    info.setUseGenerator(idAnno.usegenerator());
    info.setMetaClass(metaClass);
    metaField.setup(t, info, field, columnName, isIndexed);
    return metaField;
  }
View Full Code Here

TOP

Related Classes of com.alvazan.orm.impl.meta.data.IdInfo

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.