private boolean isProperty(Class<?> clazz) { AccessType at = clazz.getAnnotation(AccessType.class); return at != null && at.value().equalsIgnoreCase("property"); //$NON-NLS-1$ }
@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; }