diff --git a/samples/codes/entity/User.java b/samples/codes/entity/User.java index da2510dc..1509c8bb 100644 --- a/samples/codes/entity/User.java +++ b/samples/codes/entity/User.java @@ -1,29 +1,28 @@ package codes.entity; -import jakarta.persistence.Column; -import javax.persistence.Id; - -import com.landawn.abacus.annotation.JsonXmlConfig; -import com.landawn.abacus.annotation.NonUpdatable; -import com.landawn.abacus.annotation.ReadOnly; -import com.landawn.abacus.annotation.Table; -import com.landawn.abacus.annotation.Type; -import com.landawn.abacus.annotation.Type.EnumBy; -import com.landawn.abacus.util.NamingPolicy; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.Accessors; - -@Builder -@Data -@NoArgsConstructor -@AllArgsConstructor -@Accessors(chain = true) -@JsonXmlConfig(namingPolicy = NamingPolicy.UPPER_CASE_WITH_UNDERSCORE, ignoredFields = { "id", - "create_time" }, dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'", timeZone = "PDT", numberFormat = "#.###", enumerated = EnumBy.ORDINAL) +import jakarta.persistence.Column; +import javax.persistence.Id; + +import com.landawn.abacus.annotation.JsonXmlConfig; +import com.landawn.abacus.annotation.NonUpdatable; +import com.landawn.abacus.annotation.ReadOnly; +import com.landawn.abacus.annotation.Table; +import com.landawn.abacus.annotation.Type; +import com.landawn.abacus.annotation.Type.EnumBy; +import com.landawn.abacus.util.NamingPolicy; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +@Builder +@Data +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +@JsonXmlConfig(namingPolicy = NamingPolicy.UPPER_CASE_WITH_UNDERSCORE, ignoredFields = { "id", "create_time" }, dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'", timeZone = "PDT", numberFormat = "#.###", enumerated = EnumBy.ORDINAL) @Table("user1") public class User { diff --git a/samples/codes/entity/UserQueryAllResult.java b/samples/codes/entity/UserQueryAllResult.java index d79b2072..3fe62009 100644 --- a/samples/codes/entity/UserQueryAllResult.java +++ b/samples/codes/entity/UserQueryAllResult.java @@ -3,30 +3,29 @@ import java.util.List; import java.util.Set; -import jakarta.persistence.Column; -import javax.persistence.Id; - -import com.landawn.abacus.annotation.JsonXmlConfig; -import com.landawn.abacus.annotation.NonUpdatable; -import com.landawn.abacus.annotation.ReadOnly; -import com.landawn.abacus.annotation.Table; -import com.landawn.abacus.annotation.Type; -import com.landawn.abacus.annotation.Type.EnumBy; -import com.landawn.abacus.util.NamingPolicy; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.Accessors; - -@Builder -@Data -@NoArgsConstructor -@AllArgsConstructor -@Accessors(chain = true) -@JsonXmlConfig(namingPolicy = NamingPolicy.UPPER_CASE_WITH_UNDERSCORE, ignoredFields = { "id", - "create_time" }, dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'", timeZone = "PDT", numberFormat = "#.###", enumerated = EnumBy.ORDINAL) +import jakarta.persistence.Column; +import javax.persistence.Id; + +import com.landawn.abacus.annotation.JsonXmlConfig; +import com.landawn.abacus.annotation.NonUpdatable; +import com.landawn.abacus.annotation.ReadOnly; +import com.landawn.abacus.annotation.Table; +import com.landawn.abacus.annotation.Type; +import com.landawn.abacus.annotation.Type.EnumBy; +import com.landawn.abacus.util.NamingPolicy; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.experimental.Accessors; + +@Builder +@Data +@NoArgsConstructor +@AllArgsConstructor +@Accessors(chain = true) +@JsonXmlConfig(namingPolicy = NamingPolicy.UPPER_CASE_WITH_UNDERSCORE, ignoredFields = { "id", "create_time" }, dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'", timeZone = "PDT", numberFormat = "#.###", enumerated = EnumBy.ORDINAL) @Table("UserQueryAllResult") public class UserQueryAllResult { @@ -52,10 +51,10 @@ public class UserQueryAllResult { @Type(name = "List") private java.util.Date create_time; - // test - private List users; - - private Set userSet; // test + // test + private List users; + + private Set userSet; // test public UserQueryAllResult copy() { final UserQueryAllResult copy = new UserQueryAllResult();