Added an explicit test against Hibernate 5.2.18.Final
[hibernate4-maven-plugin] / src / it / hib-test-4.3.0 / src / main / java / de / juplo / plugins / hibernate4 / tests / SimplestMavenHib4Test.java
1 package de.juplo.plugins.hibernate4.tests;
2
3 import javax.persistence.Column;
4 import javax.persistence.Entity;
5 import javax.persistence.Id;
6 import javax.persistence.Lob;
7 import javax.persistence.Table;
8
9 import org.hibernate.annotations.Index;
10 import org.hibernate.annotations.Type;
11 import org.joda.time.DateTime;
12
13 @Entity
14 @Table(name = "test_simple")
15 @org.hibernate.annotations.Table(
16         appliesTo="test_simple",
17         indexes = {
18             @Index(name="idx_test_simple_tuple", columnNames={"sources", "uuid"} ),
19         }
20 )
21 public class SimplestMavenHib4Test {
22
23     private String sources;
24
25     @Lob
26     private String content;
27
28     @Id
29     @Column (length=36)
30     private String uuid;
31
32     @Column(name = "externalid", length=148)
33     private String externalXyzId;
34
35     @Type(type = "joda")
36     private DateTime created;
37 }