fixed fetchtype eager bug and lazy loading exception by reloading the project idea before sending it to watsonpanel
This commit is contained in:
parent
ab5bc053b1
commit
7d01e1bbb1
src/main/java/se/su/dsv/scipro
@ -42,7 +42,7 @@ public class ProjectIdea extends DomainObject {
|
||||
)
|
||||
private Set<Employee> interestedSupervisors = new HashSet<Employee>();
|
||||
|
||||
@ManyToMany(fetch = FetchType.EAGER)
|
||||
@ManyToMany//(fetch = FetchType.EAGER)
|
||||
private List<Student> authors = new ArrayList<Student>();
|
||||
|
||||
@ManyToOne
|
||||
|
@ -79,7 +79,8 @@ public class SupervisorMyProjectIdeasPage extends AbstractSupervisorProjectIdeaP
|
||||
|
||||
@Override
|
||||
protected void onClick(IModel<ProjectIdea> clicked, AjaxRequestTarget target) {
|
||||
dialog.replace(new WatsonInfoPanel("dialogPanel", clicked.getObject()));
|
||||
ProjectIdea pi = projectIdeaService.findOne(clicked.getObject().getId());
|
||||
dialog.replace(new WatsonInfoPanel("dialogPanel", pi));
|
||||
dialog.setTitle("Project idea: " + clicked.getObject().getTitle());
|
||||
target.addComponent(dialog);
|
||||
dialog.open(target);
|
||||
|
Loading…
x
Reference in New Issue
Block a user