@@ -0,0 +1,1071 @@
+package com.xiaoleilu.hutool.demo.db;%0D%0A%0D%0Aimport com.xiaoleilu.hutool.DateTime;%0D%0Aimport com.xiaoleilu.hutool.db.Entity;%0D%0A%0D%0A/**%0D%0A * %E5%AE%9E%E4%BD%93%E4%BD%BF%E7%94%A8%E6%A0%B7%E4%BE%8B%0D%0A * @author Looly%0D%0A *%0D%0A */%0D%0Apublic class EntityDemo %7B%0D%0A%09%0D%0A%09/**%0D%0A%09 * pojo%E7%B1%BB%0D%0A%09 * @author Looly%0D%0A%09 *%0D%0A%09 */%0D%0A%09public static class DemoPojo %7B%0D%0A%09%09private DateTime date;%0D%0A%09%09private String name;%0D%0A%09%09private int age;%0D%0A%0D%0A%09%09public DateTime getDate() %7B%0D%0A%09%09%09return date;%0D%0A%09%09%7D%0D%0A%09%09public void setDate(DateTime date) %7B%0D%0A%09%09%09this.date = date;%0D%0A%09%09%7D%0D%0A%09%09public String getName() %7B%0D%0A%09%09%09return name;%0D%0A%09%09%7D%0D%0A%09%09public void setName(String name) %7B%0D%0A%09%09%09this.name = name;%0D%0A%09%09%7D%0D%0A%09%09public int getAge() %7B%0D%0A%09%09%09return age;%0D%0A%09%09%7D%0D%0A%09%09public void setAge(int age) %7B%0D%0A%09%09%09this.age = age;%0D%0A%09%09%7D%0D%0A%09%09%0D%0A%09%09@Override%0D%0A%09%09public String toString() %7B%0D%0A%09%09%09return %22DemoPojo %5Bdate=%22 + date + %22, name=%22 + name + %22, age=%22 + age + %22%5D%22;%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09Entity entity = new Entity();%0D%0A%09%09entity%0D%0A%09%09%09.set(%22date%22, new DateTime())%0D%0A%09%09%09.set(%22name%22, %22Lucy%22)%0D%0A%09%09%09.set(%22age%22, 24);%0D%0A%0D%0A%09%09DemoPojo vo = entity.toVo(DemoPojo.class);%0D%0A%09%09System.out.println(vo);%0D%0A%09%7D%0D%0A%7D%0D%0A

Add demo for entity