hibernate用法注释积累

@OneToMany(mappedBy="guidPxjg",fetch = FetchType.LAZY)     //Entity pxjgjs 关联 pxjg
@Cascade(value={CascadeType.ALL})


@ManyToOne(fetch = FetchType.LAZY)

@Cascade(value={CascadeType.DELETE})  //  级联删除 



@Entity
@Table(name = "XK_BXXK_KCB_KC")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@javax.persistence.SequenceGenerator(name = "SEQ_STORE", sequenceName = "XK_BXXK_KCB_KC_SEQ", allocationSize = 1)//

@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE,generator="SEQ_STORE")


//oracle数据库中有对应的序列 实体注释  未完。。。

你可能感兴趣的:(hibernate用法注释积累)