/src/main/java/org/entando/entando/plugins/jacms/aps/system/init/portdb/Content.java

https://github.com/entando/entando-core-engine · Java · 114 lines · 61 code · 16 blank · 37 comment · 0 complexity · 711b3aeeb508459ef5c92a0725e8603a MD5 · raw file

  1. /*
  2. *
  3. * Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved.
  4. *
  5. * This file is part of Entando software.
  6. * Entando is a free software;
  7. * You can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; version 2.
  9. *
  10. * See the file License for the specific language governing permissions
  11. * and limitations under the License
  12. *
  13. *
  14. *
  15. * Copyright 2013 Entando S.r.l. (http://www.entando.com) All rights reserved.
  16. *
  17. */
  18. package org.entando.entando.plugins.jacms.aps.system.init.portdb;
  19. import com.j256.ormlite.field.DataType;
  20. import com.j256.ormlite.field.DatabaseField;
  21. import com.j256.ormlite.table.DatabaseTable;
  22. /**
  23. * @author E.Santoboni
  24. */
  25. @DatabaseTable(tableName = Content.TABLE_NAME)
  26. public class Content {
  27. public Content() {}
  28. @DatabaseField(columnName = "contentid",
  29. dataType = DataType.STRING,
  30. width = 16,
  31. canBeNull = false, id = true)
  32. private String _contentId;
  33. @DatabaseField(columnName = "contenttype",
  34. dataType = DataType.STRING,
  35. width = 30,
  36. canBeNull = false, index = true)
  37. private String _contentType;
  38. @DatabaseField(columnName = "descr",
  39. dataType = DataType.STRING,
  40. canBeNull = false)
  41. private String _description;
  42. @DatabaseField(columnName = "status",
  43. dataType = DataType.STRING,
  44. width = 12,
  45. canBeNull = false, index = true)
  46. private String _status;
  47. @DatabaseField(columnName = "workxml",
  48. dataType = DataType.LONG_STRING,
  49. canBeNull = false)
  50. private String _workXml;
  51. @DatabaseField(columnName = "created",
  52. dataType = DataType.STRING,
  53. width = 20,
  54. canBeNull = true)
  55. private String _created;
  56. @DatabaseField(columnName = "lastmodified",
  57. dataType = DataType.STRING,
  58. width = 20,
  59. canBeNull = true, index = true)
  60. private String _lastModified;
  61. @DatabaseField(columnName = "onlinexml",
  62. dataType = DataType.LONG_STRING,
  63. canBeNull = true)
  64. private String _onlineXml;
  65. @DatabaseField(columnName = "maingroup",
  66. dataType = DataType.STRING,
  67. width = 20,
  68. canBeNull = false, index = true)
  69. private String _mainGroup;
  70. @DatabaseField(columnName = "currentversion",
  71. dataType = DataType.STRING,
  72. width = 7,
  73. canBeNull = false)
  74. private String _currentVersion;
  75. @DatabaseField(columnName = "lasteditor",
  76. dataType = DataType.STRING,
  77. width = 40,
  78. canBeNull = true)
  79. private String _lastEditor;
  80. public static final String TABLE_NAME = "contents";
  81. }
  82. /*
  83. CREATE TABLE contents
  84. (
  85. contentid character varying(16) NOT NULL,
  86. contenttype character varying(30) NOT NULL,
  87. descr character varying(260) NOT NULL,
  88. status character varying(12) NOT NULL,
  89. workxml character varying NOT NULL,
  90. created character varying(20),
  91. lastmodified character varying(20),
  92. onlinexml character varying,
  93. maingroup character varying(20) NOT NULL,
  94. currentversion character varying(7) NOT NULL,
  95. lasteditor character varying(40),
  96. CONSTRAINT contents_pkey PRIMARY KEY (contentid )
  97. )
  98. */