Java 类org.hibernate.annotations.AccessType 实例源码

项目:Equella    文件:InitialiserServiceImpl.java   
private boolean isProperty(Class<?> clazz)
{
    AccessType at = clazz.getAnnotation(AccessType.class);
    return at != null && at.value().equalsIgnoreCase("property"); //$NON-NLS-1$
}
项目:citrine-scheduler    文件:Task.java   
@AccessType("field")
@ManyToMany(fetch = FetchType.EAGER, cascade = { CascadeType.PERSIST, CascadeType.MERGE }, targetEntity = fm.last.citrine.model.Task.class)
@JoinTable(name = TableConstants.TABLE_TASK_CHILD_TASK, joinColumns = { @JoinColumn(name = "task_id") }, inverseJoinColumns = { @JoinColumn(name = "child_task_id") })
public Set<Task> getChildTasks() {
  return childTasks;
}