mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-12-16 05:12:00 +09:00
WIP
This commit is contained in:
@@ -4,6 +4,8 @@ import java.lang.reflect.Field;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
import tech.ailef.dbadmin.annotations.DisplayImage;
|
||||
|
||||
public class DbField {
|
||||
protected String dbName;
|
||||
|
||||
@@ -114,6 +116,10 @@ public class DbField {
|
||||
return type == DbFieldType.BYTE_ARRAY;
|
||||
}
|
||||
|
||||
public boolean isImage() {
|
||||
return field.getAnnotation(DisplayImage.class) != null;
|
||||
}
|
||||
|
||||
public String getFormat() {
|
||||
return format;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user