HHH-5806 mapping static inner class causes hsqldb tests fails
This commit is contained in:
parent
ed48037692
commit
f97d02c61b
|
@ -16,15 +16,21 @@ import javax.persistence.Entity;
|
|||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.JoinTable;
|
||||
import javax.persistence.Table;
|
||||
|
||||
public class Classes {
|
||||
|
||||
@Embeddable
|
||||
@Table(name="Edition")
|
||||
public static class Edition<T> {
|
||||
T name;
|
||||
}
|
||||
|
||||
|
||||
@Entity
|
||||
@Table(name="Book")
|
||||
public static class Book {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.AUTO)
|
||||
|
@ -35,12 +41,15 @@ public class Classes {
|
|||
}
|
||||
|
||||
@Entity
|
||||
@Table(name="PopularBook")
|
||||
public static class PopularBook {
|
||||
@Id
|
||||
@GeneratedValue(strategy=GenerationType.AUTO)
|
||||
Long id;
|
||||
|
||||
@ElementCollection
|
||||
@JoinTable(name="PopularBook_Editions",joinColumns={@JoinColumn(name="PopularBook_id")})
|
||||
|
||||
Set<Edition<String>> editions = new HashSet<Edition<String>>();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue