entityVO.java.vm 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. #set($voPackage=$package.Entity.replace("entity","vo"))
  18. package $!{voPackage};
  19. import $!{package.Entity}.$!{entity};
  20. #if($!{entityLombokModel})
  21. import lombok.Data;
  22. import lombok.EqualsAndHashCode;
  23. #end
  24. #if($!{swagger2})
  25. import io.swagger.annotations.ApiModel;
  26. #end
  27. /**
  28. * $!{table.comment}视图实体类
  29. *
  30. * @author $!{author}
  31. * @since $!{date}
  32. */
  33. #if($!{entityLombokModel})
  34. @Data
  35. @EqualsAndHashCode(callSuper = true)
  36. #end
  37. #if($!{swagger2})
  38. @ApiModel(value = "$!{entity}VO对象", description = #if ("$!{table.comment}"=="")"$!{entity}VO对象"#else"$!{table.comment}"#end)
  39. #end
  40. public class $!{entity}VO extends $!{entity} {
  41. private static final long serialVersionUID = 1L;
  42. }