HHH-5806 mapping static inner class causes hsqldb tests fails

This commit is contained in:
Strong Liu 2010-12-23 17:54:37 +08:00
parent ed48037692
commit f97d02c61b
1 changed files with 9 additions and 0 deletions

View File

@ -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>>();
}
}