Skip to content
Snippets Groups Projects
Commit 48155d0f authored by izabel's avatar izabel
Browse files

[LMS-1303] fix: displaying internal properties

SVN: 14392
parent dd31add2
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ public interface IPropertyListingQuery
* escaped.
*/
@Select(sql = "select pt.id as pt_id, pt.code as pt_code, dt.code as dt_code,"
+ " pt.label as pt_label, pt.is_managed_internally"
+ " pt.label as pt_label, pt.is_internal_namespace"
+ " from property_types pt join data_types dt on pt.daty_id=dt.id", resultSetBinding = PropertyTypeDataObjectBinding.class)
public PropertyType[] getPropertyTypes();
......
......@@ -16,14 +16,13 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.CodeConverter;
/**
* A binding for the {@link IPropertyListingQuery#getPropertyTypes()} query.
*/
public class PropertyTypeDataObjectBinding extends
NonUpdateCapableDataObjectBinding<PropertyType>
public class PropertyTypeDataObjectBinding extends NonUpdateCapableDataObjectBinding<PropertyType>
{
@Override
public void unmarshall(ResultSet row, PropertyType into) throws SQLException, EoDException
{
into.setId(row.getLong("pt_id"));
into.setInternalNamespace(row.getBoolean("is_managed_internally"));
into.setInternalNamespace(row.getBoolean("is_internal_namespace"));
into.setSimpleCode(StringEscapeUtils.escapeHtml(row.getString("pt_code")));
into.setCode(StringEscapeUtils.escapeHtml(CodeConverter.tryToBusinessLayer(into
.getSimpleCode(), into.isInternalNamespace())));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment