All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.dao.impl.entity.info.MappingInfo Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.dao.impl.entity.info;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Default;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Next;
import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Prev;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.lang.Lang;
import org.nutz.lang.Mirror;

public class MappingInfo extends FieldInfo {

    public PK annPK;

    public Column annColumn;

    public ColDefine annDefine;

    public Default annDefault;

    public Id annId;

    public Name annName;

    public Next annNext;

    public Prev annPrev;

    public Readonly annReadonly;

    public Comment columnComment;

    public Class getFieldTypeClass() {
        return Lang.getTypeClass(fieldType);
    }

    public Mirror getFieldTypeMirror() {
        return Mirror.me(getFieldTypeClass());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy