- 浏览: 3143 次
- 性别:
- 来自: 北京
最新评论
文章列表
定义了两个类,Account 和 Department。是多对多关系,类定义如下;
@Entity
@Table(name = "ACCOUNTS")
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class Account {
private Long id;
private String loginName;
private List<Department> departments;
...
@Override
@Id
@GeneratedValue(stra ...