Issue 10641

Use ServiceTypeCode enum in Service model class instead of Strings

10641
Reporter: mdoering
Assignee: mdoering
Type: Improvement
Summary: Use ServiceTypeCode enum in Service model class instead of Strings
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-01-17 11:20:48.068
Updated: 2013-12-16 17:50:20.167
Resolved: 2012-01-18 12:26:18.044
        
Description: Service has a String type and a ServiceType serviceType property which uses Strings again to identify the service type.
There is also a newer enum ServiceTypeCode, but to convert to the enum another factory needs to be used.

The model classes would be much simpler to use if that conversion is done in the persistency layer already and the enum becomes part of the model class.
We use a similar approach in CLB with the terms table and the EnumConverters]]>
    


Author: mdoering@gbif.org
Comment: Fixed in r2021
Created: 2012-01-18 12:26:18.076
Updated: 2012-01-18 12:26:18.076