JPA 注解使用
最近业余时间在做ejb3 由于新版本引入了注解? 刚开始很多注解不知如何用 写一个个看看帮助文档? 基本就包含关系表的映射
的一些设置 平常经常用的一些
注解常用说明
A @AssociationOverride @AssociationOverrides @AttributeOverride @AttributeOverrides B @Basic C @Column @ColumnResult D @DiscriminatorColumn @DiscriminatorValue E @Embeddable @Embedded @EmbeddedId @Entity @EntityListeners @EntityResult @Enumerated @ExcludeDefaultListeners @ExcludeSuperclassListeners F @FieldResult G @GeneratedValue I @Id @IdClass @Inheritance J @JoinColumn @JoinColumns @JoinTable L @Lob M @ManyToMany @ManyToOne @MapKey @MappedSuperclass N @NamedNativeQueries @NamedNativeQuery @NamedQueries @NamedQuery O @OneToMany @OneToOne @OrderBy P @PersistenceContext @PersistenceContexts @PersistenceProperty @PersistenceUnit @PersistenceUnits @PrimaryKeyJoinColumn @PrimaryKeyJoinColumns Q @QueryHint S @SecondaryTable @SecondaryTables @SequenceGenerator @SqlResultSetMapping @SqlResultSetMappings T @Table @TableGenerator @Temporal @Transient U @UniqueConstraint V @Version?
?