Commit e57f6106 authored by michael.simon's avatar michael.simon
Browse files

Load Objects with properties

parent 8fd3aa84
......@@ -14,5 +14,5 @@ import edu.kit.scc.webreg.dao.BaseDao;
import edu.kit.scc.webreg.entity.as.AttributeSourceEntity;
public interface AttributeSourceDao extends BaseDao<AttributeSourceEntity, Long> {
}
}
\ No newline at end of file
......@@ -19,10 +19,8 @@ import javax.faces.bean.ViewScoped;
import javax.faces.event.ComponentSystemEvent;
import javax.inject.Inject;
import edu.kit.scc.webreg.entity.JobClassEntity;
import edu.kit.scc.webreg.entity.as.AttributeSourceEntity;
import edu.kit.scc.webreg.service.AttributeSourceService;
import edu.kit.scc.webreg.service.JobClassService;
import edu.kit.scc.webreg.util.ViewIds;
@ManagedBean
......@@ -44,7 +42,7 @@ public class EditAttributeSourceBean implements Serializable {
public void preRenderView(ComponentSystemEvent ev) {
if (entity == null) {
entity = service.findById(id);
entity = service.findByIdWithAttrs(id, "asProps");
propertyMap = new HashMap<String, String>(entity.getAsProps());
}
}
......
......@@ -34,7 +34,7 @@ public class ShowAttributeSourceBean implements Serializable {
private Long id;
public void preRenderView(ComponentSystemEvent ev) {
entity = service.findById(id);
entity = service.findByIdWithAttrs(id, "asProps");
}
public Long getId() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment