Project

General

Profile

« Previous | Next » 

Revision b2063ede

Added by Patrick Plitzner over 7 years ago

ref #5458 Cleanup and stability for distribution editor

  • Extract string constants for DB columns
  • renaming methods and variables
  • fix session handling for CRUD operations on NamedAreas

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/util/CdmQueryFactory.java
25 25
 */
26 26
public class CdmQueryFactory {
27 27

  
28

  
29
	public static final String RANK_COLUMN = "Rank";
30
	public static final String TAXON_COLUMN = "Taxon";
31
	
28 32
    public static final String ID = "id";
29 33
    public static final String UUID_ID = "uuid";
30 34

  
......
82 86
        		"tb.id, " +
83 87
        		"tb.uuid, " +
84 88
        		"tn.classification_id, " +
85
        		"tb.titleCache AS Taxon, " +
86
        		"dtb2.titleCache AS Rank, ";
89
        		"tb.titleCache AS "+TAXON_COLUMN+", " +
90
        		"dtb2.titleCache AS "+RANK_COLUMN+", ";
87 91

  
88 92
        int count = termList.size();
89 93
        for(String term : termList){

Also available in: Unified diff