Project

General

Profile

Revision 200b0606

ID200b06063cc751aa6050190c7ec728d77d80a928
Parent bcd18ba7
Child 40b02195

Added by Katja Luther over 2 years ago

fix eexception in user and group bulk editor

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/GroupEditorInput.java
20 20
import eu.etaxonomy.cdm.api.service.exception.ReferencedObjectUndeletableException;
21 21
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
22 22
import eu.etaxonomy.cdm.model.common.Group;
23
import eu.etaxonomy.cdm.persistence.query.OrderHint;
24
import eu.etaxonomy.cdm.persistence.query.OrderHint.SortOrder;
23 25
import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator;
24 26
import eu.etaxonomy.taxeditor.bulkeditor.input.entitycreator.GroupCreator;
25 27
import eu.etaxonomy.taxeditor.store.CdmStore;
......
79 81
	@Override
80 82
	protected List<Group> listEntities(
81 83
			IIdentifiableEntityServiceConfigurator configurator) {
84
	    configurator.setOrderHints(new OrderHint("name", SortOrder.ASCENDING).asList());
82 85
		return CdmStore.getSearchManager().findGroups(configurator);
83 86
	}
84 87

  
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/UserEditorInput.java
18 18
import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;
19 19
import eu.etaxonomy.cdm.api.service.exception.ReferencedObjectUndeletableException;
20 20
import eu.etaxonomy.cdm.model.common.User;
21
import eu.etaxonomy.cdm.persistence.query.OrderHint;
22
import eu.etaxonomy.cdm.persistence.query.OrderHint.SortOrder;
21 23
import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator;
22 24
import eu.etaxonomy.taxeditor.bulkeditor.input.entitycreator.UserCreator;
23 25
import eu.etaxonomy.taxeditor.store.CdmStore;
......
76 78
	@Override
77 79
	protected List<User> listEntities(
78 80
			IIdentifiableEntityServiceConfigurator configurator) {
81
	    configurator.setOrderHints(new OrderHint("username", SortOrder.ASCENDING).asList());
79 82
		return CdmStore.getSearchManager().findUsers(configurator);
80 83
	}
81 84

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)