bug修复

This commit is contained in:
chuyan 2020-03-01 15:44:23 +08:00 committed by yourtree
parent 2b2f434917
commit 838b42fa3c
2 changed files with 28 additions and 2 deletions

View File

@ -137,11 +137,10 @@ public class Activity {
//提前提醒时间 //提前提醒时间
@Column(name = "remind_time", nullable = true) @Column(name = "remind_time", nullable = true)
@Temporal(TemporalType.TIMESTAMP)
private LocalDateTime remindTime; private LocalDateTime remindTime;
//附件组(名字) //附件组(名字)
@ElementCollection(targetClass = java.lang.String.class) @ElementCollection(targetClass = String.class)
private List<String> enclosures; private List<String> enclosures;
//主要负责人 //主要负责人

View File

@ -0,0 +1,27 @@
package com.codesdream.ase.validator;
import com.codesdream.ase.model.activity.Activity;
import javafx.beans.binding.ObjectExpression;
import java.lang.reflect.Field;
public class TestNullValueValidator {
public static void main(String[] args){
Activity activity = new Activity();
TestNullValueValidator.run(activity);
}
static void run(Object object){
Field[] fields = object.getClass().getDeclaredFields();
for (Field field : fields){
String name = field.getName();
name = name.substring(0,1).toUpperCase()+name.substring(1);
String type = field.getGenericType().toString();
System.out.println("name: " + name);
System.out.println("Type: " + type);
System.out.println();
}
}
}