Package org.nutz.dao.entity.annotation

Examples of org.nutz.dao.entity.annotation.Prev


      ef.setDefaultValue(new CharSegment(dft.value()));
    }else if(myField.getDefaultValue()!=null){//如果没有就尝试从数据库中获取
      ef.setDefaultValue(new CharSegment(myField.getDefaultValue().toString()));
    }
//    @Prev
    Prev prev = field.getAnnotation(Prev.class);
    if (null != prev) {
      ef.setBeforeInsert(FieldQuerys.eval(db, prev.value(), ef));
    }

    // @Next
    Next next = field.getAnnotation(Next.class);
    if (null != next) {
View Full Code Here

TOP

Related Classes of org.nutz.dao.entity.annotation.Prev

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.