Here is the new status - @ManyToMany: OK - Parameterized Generators: OK but SequenceGenerator initial values are not used and TableGenerator does not strictly obey the EJB3 semantic (1 seed for all instead of 1 seed per entity) - @SecondaryTable(s) and secondaryTable="...": OK except for HHH-36 (JIRA) (ie bidir many-to-one where the column is in a secondarytable). Next on the list (top first): - Composite PK and FK - Enable Implicit JoinColumns and AssociationTable for a couple of associations - GeneratorTable - use UnionClass instead of Class for TABLE_PER_CLASS - enable referencedColumnName - enable UniqueConstraints - ... Details of supported annotations * Support for EJB3 annotations: - @Transient - @Column (not primaryKey) - @JoinColumn (not referencedColumnName, not primaryKey) - @Version - @Basic - @Entity - @Table (not uniqueConstraints) - @AccessType - @Id - @CascadeType - @FetchType - @GeneratorType (NONE, IDENTITY) ie non configurable ones - @TableGenerator (with scope visibility) - @SequenceGenerator (with scope visibility, does not support initialValue() and allocationSize()) - *not* @GeneratorTable (will have to write a new TableHiloGenerator, but it can wait) - @ManyToOne (not optional) - @OneToMany (Set and Collection, generics version or not, JoinColumn not guessed) - @OneToOne (not in conjunction with explicit join column, not optional) - @ManyToMany - @AssociationTable (Has to be on both sides) - @Inheritance - @InheritanceType (has to be defined on every classes of the hierarchy for JOINED strategy, not very clear about the TABLE_PER_CLASS strategy) - @DiscriminatorColumn - @DiscriminatorType - @InheritanceJoinColumn - @SecondaryTable (@OneToMany @JoinColumn(secondaryTable="..." does not work yet due to H3 core issue HHH-36 - @SecondaryTables -- Emmanuel Bernard [EMAIL PROTECTED] http://www.hibernate.org |
- [Hibernate] EJB3: inheritance Emmanuel Bernard
- [Hibernate] EJB3 annotations Emmanuel Bernard
- Re: [Hibernate] EJB3 annotations Gavin King